# Search Federal Contract Vehicles

`Search_Federal_Contract_Vehicles` returns the top layer of GovTribe's federal contract hierarchy: master contract vehicles that group child IDVs and downstream task-order activity.

## When To Use

Typical questions this tool answers well:

* Which master vehicles match a vehicle name, acronym, topic, or solicitation thread?
* Which vehicle families (`Master IDIQ`, `Master GWAC`, `Master GSA Schedule`, `Master BPA`) are in scope for a market segment?
* Which vehicles are linked to a known federal meta opportunity or similar historic item?
* Which vehicles are associated with a specific funding agency or vendor?
* What are the award dates, last-date-to-order windows, and shared ceilings for matching vehicles?

## Required Reading

1. [Search\_Mode\_And\_Query\_Guide](/user-guide/mcp/guides/search_mode_and_query_guide.md): Required before setting free-text query strings and choosing keyword vs semantic retrieval.
2. [Date\_Filtering\_Guide](/user-guide/mcp/guides/date_filtering_guide.md): Required before setting date window filters.

## Output Contract

* Top-level keys:
  * `current_page`: Current page number when `per_page > 0`.
  * `data`: Array of result rows when `per_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.
* Row keys:
  * `govtribe_id`
  * `govtribe_ai_summary`
  * `govtribe_type`
  * `govtribe_url`
  * `award_date`
  * `contract_type`
  * `descriptions`
  * `last_date_to_order`
  * `name`
  * `set_aside_type`
  * `shared_ceiling`
  * `updated_at`
  * `originating_federal_meta_opportunity_id`
  * `originating_federal_contract_opportunity`
  * `federal_agency`
  * `federal_contract_awards`
* `originating_federal_meta_opportunity_id` is a top-level scalar notice-thread identifier on vehicle rows. Use its value with `federal_meta_opportunity_ids` when calling `Search_Federal_Contract_Opportunities`.
* Relationship retrieval map:
  * `federal_agency`
    * `resource_type`: `federal_agency`
    * `tool`: `Search_Federal_Agencies`
    * `filter`: `federal_agency_ids`
    * `nested_keys`: `govtribe_id`, `govtribe_type`, `govtribe_url`, `name`
  * `federal_contract_awards`
    * `resource_type`: `federal_contract_award`
    * `tool`: `Search_Federal_Contract_Awards`
    * `filter`: `federal_contract_award_ids`
    * `nested_keys`: `govtribe_id`, `govtribe_type`, `govtribe_url`, `name`
  * `originating_federal_contract_opportunity`
    * `resource_type`: `federal_contract_opportunity`
    * `tool`: `Search_Federal_Contract_Opportunities`
    * `filter`: `federal_contract_opportunity_ids`
    * `nested_keys`: `govtribe_id`, `govtribe_type`, `govtribe_url`, `name`

## Usage Patterns

Pattern A: Locate a specific master vehicle by acronym/name. Tool: `Search_Federal_Contract_Vehicles`

```json
{
  "query": "\"OASIS\"",
  "search_mode": "keyword",
  "fields_to_return": [
    "govtribe_id"
  ],
  "page": 1,
  "per_page": 10,
  "sort": {
    "key": "awardDate",
    "direction": "desc"
  }
}
```

Pattern B: Vehicle-level incumbent signals for a known opportunity thread. Tool: `Search_Federal_Contract_Vehicles`

```json
{
  "search_mode": "keyword",
  "fields_to_return": [
    "govtribe_id"
  ],
  "federal_meta_opportunity_ids": [
    "<FEDERAL_META_OPPORTUNITY_ID>"
  ],
  "federal_meta_opportunity_ids_operator": "in",
  "page": 1,
  "per_page": 25,
  "sort": {
    "key": "_score",
    "direction": "desc"
  }
}
```

Pattern C: Find vehicles similar to a known IDV. Tool: `Search_Federal_Contract_Vehicles`

```json
{
  "search_mode": "semantic",
  "fields_to_return": [
    "govtribe_id"
  ],
  "similar_filter": {
    "govtribe_type": "federal_contract_idv",
    "govtribe_id": "<FEDERAL_CONTRACT_IDV_ID>"
  },
  "page": 1,
  "per_page": 20
}
```

Pattern D: Filter master vehicles by type and funding agency. Tool: `Search_Federal_Contract_Vehicles`

```json
{
  "search_mode": "keyword",
  "fields_to_return": [
    "govtribe_id"
  ],
  "federal_contract_vehicle_types": [
    "Master GWAC",
    "Master IDIQ"
  ],
  "federal_contract_vehicle_types_operator": "in",
  "funding_federal_agency_ids": [
    "<FUNDING_FEDERAL_AGENCY_ID>"
  ],
  "funding_federal_agency_ids_operator": "in",
  "page": 1,
  "per_page": 50,
  "sort": {
    "key": "lastDateToOrder",
    "direction": "asc"
  }
}
```

Pattern E: Count-only scoping pass before row retrieval. Tool: `Search_Federal_Contract_Vehicles`

```json
{
  "query": "cloud modernization",
  "search_mode": "semantic",
  "federal_contract_vehicle_types": [
    "Master GWAC"
  ],
  "federal_contract_vehicle_types_operator": "in",
  "per_page": 0
}
```

Then rerun with `per_page > 0` and the same filters to fetch rows for analysis.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.govtribe.com/user-guide/mcp/tools/search-federal-contract-vehicles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
