Search Government Files
Search_Government_Files is the GovTribe MCP search tool for government-provided files tied to federal and state/local contracting and grant workflows; if content beyond content_snippet is needed, call Documentation with article_name="Vector_Store_Content_Retrieval_Guide", then use Add_To_Vector_Store and Search_Vector_Store.
When To Use
Typical questions this tool answers well:
Which government files mention a phrase, concept, or requirement in the file corpus?
Which files are attached to a known federal contract opportunity, federal grant opportunity, IDV, state/local opportunity, agency, state, or jurisdiction?
Which files include specific points of contact and should be reviewed first?
Which file set should be staged into a vector store for follow-on semantic file chunk retrieval?
How can I return search metadata only (
per_page: 0) versus document rows (per_page > 0)?
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.
Location_Filtering_Guide: Required before setting location filters.
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_contract_idv_ids: Filter by federal contract IDVs. Use GovTribe IDs.type:array<string>required:nodefault:n/a
federal_contract_idv_ids_operator: Choose whether to include or exclude values for Federal Contract IDV GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
federal_contract_opportunity_ids: Filter by federal contract opportunities. Use GovTribe IDs.type:array<string>required:nodefault:n/a
federal_contract_opportunity_ids_operator: Choose whether to include or exclude values for Federal Contract Opportunity GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
federal_grant_opportunity_ids: Filter by federal grant opportunities. Use GovTribe IDs.type:array<string>required:nodefault:n/a
federal_grant_opportunity_ids_operator: Choose whether to include or exclude values for Federal Grant Opportunity GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
jurisdiction_ids: Filter by jurisdictions. Use GovTribe IDs or FIPS codes. See Required Reading: Location_Filtering_Guide.type:array<string>required:nodefault:n/a
jurisdiction_ids_operator: Choose whether to include or exclude values for Jurisdiction IDs (GovTribe or FIPS code).type:null|stringrequired:nodefault:inoptions:in,not_in
state_local_contract_opportunity_ids: Filter by state and local contract opportunities. Use GovTribe IDs.type:array<string>required:nodefault:n/a
state_local_contract_opportunity_ids_operator: Choose whether to include or exclude values for State and Local Contract Opportunity GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
state_ids: Filter by states. Use GovTribe IDs or USPS state codes. See Required Reading: Location_Filtering_Guide.type:array<string>required:nodefault:n/a
state_ids_operator: Choose whether to include or exclude values for State IDs (GovTribe or USPS code).type:null|stringrequired:nodefault:inoptions:in,not_in
contact_ids: Filter by points of contact. Use GovTribe IDs.type:array<string>required:nodefault:n/a
contact_ids_operator: Choose whether to include or exclude values for Contact GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
federal_agency_ids: Filter by federal agencies. Use GovTribe IDs.type:array<string>required:nodefault:n/a
federal_agency_ids_operator: Choose whether to include or exclude values for Federal Agency GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
similar_filter: Find similar to the provided govtribe_type + govtribe_id.type:null|objectrequired:nodefault:n/ashape:{ govtribe_type: string, govtribe_id: string }
government_file_ids: Include or exclude results by GovTribe IDs.type:array<string>required:nodefault:n/a
government_file_ids_operator: Choose whether to include or exclude values for GovTribe IDs.type:null|stringrequired:nodefault:inoptions:in,not_in
sort: Sort configuration.type:objectrequired:nodefault:n/ashape:{ key?: null|string, direction?: null|string }options:key:postedDate,_score;direction:asc,desc
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_ai_summary,govtribe_type,govtribe_url,name,download_url,size,posted_date,content_snippet,updated_at,parent_record,found_in_file_contacts
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.When
per_page: 0, responses are metadata-only and includepath,total,contains,search_results_id_can_generate_saved_search,search_results_id, andview_search_results_url.
Row keys:
govtribe_idgovtribe_ai_summarygovtribe_typegovtribe_urlnamedownload_urlsizeposted_datecontent_snippetupdated_atparent_recordfound_in_file_contacts
Relationship retrieval map:
found_in_file_contactsresource_type:contacttool:Search_Contactsfilter:contact_idsnested_keys:govtribe_id,govtribe_type,name,email,govtribe_url
parent_recordresource_type:federal_contract_idvtool:Search_Federal_Contract_IDVsfilter:federal_contract_i_d_v_idsnested_keys:govtribe_id,govtribe_type,govtribe_url,nameresource_type:federal_contract_opportunitytool:Search_Federal_Contract_Opportunitiesfilter:federal_contract_opportunity_idsnested_keys:govtribe_id,govtribe_type,govtribe_url,nameresource_type:federal_grant_opportunitytool:Search_Federal_Grant_Opportunitiesfilter:federal_grant_opportunity_idsnested_keys:govtribe_id,govtribe_type,govtribe_url,nameresource_type:state_local_contract_opportunitytool:Search_State_And_Local_Contract_Opportunitiesfilter:state_and_local_contract_opportunity_idsnested_keys:govtribe_id,govtribe_type,govtribe_url,name
Usage Patterns
Pattern A: Keyword lookup for exact phrases in government-file corpus, scoped by federal opportunity IDs. Tool: Search_Government_Files
Pattern B: Semantic discovery for conceptually related files, filtered by agency and state. Tool: Search_Government_Files
Pattern C: Retrieve files tied to a known IDV, then expand extracted contacts via Search_Contacts. Tool: Search_Government_Files
Pattern D: Metadata-only call to get result-count/search-result identifiers without row payload. Tool: Search_Government_Files
Last updated
Was this helpful?
