Search Federal Agencies
Search_Federal_Agencies returns GovTribe federal agency profiles that are tied to federal contract and grant activity.
When To Use
Typical questions this tool answers well:
What is the GovTribe ID for a specific federal agency name or acronym?
Which agencies match a topical query or phrase in agency profile content?
Which agencies should be included or excluded by explicit GovTribe ID lists?
Which agencies are similar to a known agency or related record?
How many agencies match a filter set before fetching rows?
Required Reading
Search_Query_Guide: Required before setting free-text query strings when search_mode is used.
Search_Mode_Guide: Required before choosing keyword vs semantic retrieval.
Input Contract
query: Free-text query string. See Required Reading: Search_Query_Guide.type:stringrequired:nodefault:n/a
page: 1-based page index.type:null|numberrequired:nodefault:1
per_page: Rows per page.type:null|numberrequired:nodefault:10
search_mode: Query interpretation mode. See Required Reading: Search_Mode_Guide.type:stringrequired:nodefault:keywordoptions:keyword,semantic
federal_agency_ids: Include or exclude results by GovTribe IDs.type:array<string>required:nodefault:n/a
federal_agency_ids_operator: Choose whether to include or exclude values for GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
fields_to_return: Optional field list for row payloads. If omitted andper_page > 0, rows default togovtribe_id. Forper_page: 0aggregation/meta calls, this field may be omitted. Specifyfields_to_returnwhenever the user asks for fields beyondgovtribe_id, and prefer omitting it in pure aggregation workflows.type:array<string>required:nodefault:n/aoptions:govtribe_id,govtribe_type,govtribe_url,name,alternate_name,acronym,defense_or_civilian,updated_at
Output Contract
Top-level keys:
current_page: Current page number whenper_page > 0.data: Array of result rows whenper_page > 0.from: First row position in the current page.last_page: Last page number for current filters.path: GovTribe search URL for this result set.per_page: Applied page size.to: Last row position in the current page.total: Total matched row count for current query filters.contains: Dataset label for the returned result set.search_results_id_can_generate_saved_search: Saved-search eligibility flag.search_results_id: Server-side search result identifier.view_search_results_url: URL to open this exact result set.per_page: 0behavior: response includes onlypath,total,contains,search_results_id_can_generate_saved_search,search_results_id, andview_search_results_url.
Row keys:
govtribe_idgovtribe_typegovtribe_urlnamealternate_nameacronymdefense_or_civilianupdated_at
Relationship retrieval map:
none: This resource has no relationship fields.
Usage Patterns
Pattern A: Resolve a specific agency by exact name or acronym. Tool: Search_Federal_Agencies
Pattern B: Include only a known set of agencies. Tool: Search_Federal_Agencies
Pattern C: Exclude agencies from broader matching. Tool: Search_Federal_Agencies
Pattern D: Find agencies similar to a known agency. Tool: Search_Federal_Agencies
Pattern E: Get match count and reusable result URLs before row retrieval. Tool: Search_Federal_Agencies
Then rerun with per_page > 0 and the same filters to fetch rows.
Last updated
Was this helpful?
