Lookup Agency
lookup_agencyResolve an agency acronym or partial name to canonical SAM.gov agency strings. Get the correct agency filter value for searching opportunities, companies, and other agency-filtered tools.
Instructions
Resolve an agency acronym or partial name to canonical SAM.gov agency strings.
SAM.gov stores agency names like "HOMELAND SECURITY, DEPARTMENT OF.FEDERAL
EMERGENCY MANAGEMENT AGENCY..." not "FEMA". Use this to find the right
substring to use as the `agency` filter on search_opportunities, search_companies,
or most other tools that take an `agency` parameter. EXCEPTION: search_forecasts'
`agency` filter uses its own natural-language agency names (e.g. "Department of
Health and Human Services"), not this SAM-hierarchy string, this tool's suggestion
will not match there.
- query: acronym (FEMA, DoD, NASA), partial name, or full agency name
Returns matching agencies grouped by canonical name with the suggested
filter value to use. `suggested_filter_value` is the CANONICAL grouping, which can
be much broader than one component of it (e.g. a sub-agency's contracting office
grouped under its parent's canonical name), if the match count looks too high, use
one of that group's own `raw_variations` entries instead for a narrower filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |