SAM.gov

v0.4.1
io.github.1102tools/sam-gov-mcp Checked 9 hours ago Published 7 months ago

SAM.gov entity registration, exclusions, opportunities, contract awards.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lookup_entity_by_uei

Look up a federal entity by its Unique Entity ID (UEI). Returns the full entity record from SAM.gov Entity Management v3. The UEI is a 12-character alphanumeric identifier assigned by SAM.gov. include_sections controls response size: - entityRegistration: UEI, CAGE, name, status, activation/expiration dates (ALWAYS include) - coreData: addresses, POCs at high level, business types, hierarchy - assertions: NAICS and PSC codes (in goodsAndServices subsection) - pointsOfContact: detailed POC records (name, title, address; email/phone FOUO only) - repsAndCerts: FA…

ParameterTypeDescription
uei *string
include_sections
sam_registeredstring

lookup_entity_by_cage

Look up a federal entity by its CAGE code. CAGE (Commercial and Government Entity) codes are 5-character alphanumeric identifiers assigned by DLA. Useful when you have a CAGE but no UEI.

ParameterTypeDescription
cage_code *string
include_sections

search_entities

Search SAM.gov entities with flexible filters. All filters are AND-ed together. Returns paginated results; note that Entity Management has a HARD CAP of 10 records per page (size <= 10). For more results, increment 'page' and make multiple calls. Key filter notes: - legal_business_name does partial matching with no relevance ranking. Cannot contain & or parentheses (API strips them, returns 0 results). For exact lookup use UEI or CAGE. - primary_naics matches the entity's designated primary NAICS only. - any_naics matches any NAICS the entity has on fi…

ParameterTypeDescription
any_naics
business_type_code
free_text
include_sections
legal_business_name
pageinteger
primary_naics
psc_code
purpose_of_registration
registration_statusstring
sizeinteger
state_code

get_entity_reps_and_certs

Fetch FAR/DFARS representations and certifications for an entity by UEI. repsAndCerts is NOT included in the default response or even in includeSections=All. It must be explicitly requested. Returns the entity's responses to standard FAR 52.212-3, FAR 52.204-17, FAR 52.209-2, FAR 52.219-1, FAR 52.222-18, FAR 52.225-2, DFARS 252.204-7016, and other certification clauses. Combined with entityRegistration for identification context. Parameters: - summary_only (default True): returns a condensed view (clause ID, title, and answer summary per clause) instead…

ParameterTypeDescription
uei *string
clause_filter
summary_onlyboolean

get_entity_integrity_info

Fetch FAPIIS proceedings integrity information for an entity by UEI. integrityInformation is NOT included in the default response or even includeSections=All. Requires explicit request plus proceedingsData=Yes query parameter. Returns proceedings disclosures per FAR 52.209-7/9.

ParameterTypeDescription
uei *string

check_exclusion_by_uei

Check if an entity has any exclusion/debarment records by UEI. Returns exclusion records from the consolidated Excluded Parties List. totalRecords=0 means the entity is not currently excluded. totalRecords>0 means one or more exclusion records exist; check recordStatus='Active' on each entry to determine if the exclusion is currently in effect. This is the single most important check for FAR 9.104-1 responsibility determinations and FAR 9.405 debarment prohibitions.

ParameterTypeDescription
uei *string

search_exclusions

Search SAM.gov exclusion records with flexible filters. All filters are AND-ed. Unlike Entity Management, Exclusions uses 'size' (not 'limit') for pagination. Size can go up to 100 per page. Key filter notes: - entity_name: firm name for classification=Firm; for individuals use the full name. Cannot contain &, |, {, }, ^, backslash. - cage_code: 5-character CAGE of the excluded entity. - classification: Firm, Individual, Vessel, or Special Entity Designation. - exclusion_program: Reciprocal (cross-agency), NonProcurement, or Procurement. - excluding_agen…

ParameterTypeDescription
activation_date_range
cage_code
classification
country
entity_name
excluding_agency_code
exclusion_program
free_text
pageinteger
sizeinteger
state_province

search_opportunities

Search contract opportunities on SAM.gov. posted_from and posted_to are MANDATORY. Format is MM/DD/YYYY (not ISO 8601). The date range cannot exceed 364 days. For older notices or longer ranges, chain multiple calls with sequential date windows. Notice type codes: - p = Presolicitation - o = Solicitation - k = Combined Synopsis/Solicitation - r = Sources Sought - s = Special Notice - i = Intent to Bundle - a = Award Notice - u = Justification (J&A) - g = Sale of Surplus Property WORKING filters: title, solicitation_number, notice_id, n…

ParameterTypeDescription
posted_from *string
posted_to *string
agency_keyword
limitinteger
naics_code
notice_id
notice_type
offsetinteger
psc_code
response_deadline_from
response_deadline_to
set_aside
solicitation_number
state
title
zip_code

get_opportunity_description

Fetch the full description text for a contract opportunity by notice ID. The 'description' field in search_opportunities results is a URL, not inline text. This tool handles the second fetch to retrieve the actual HTML description. Pass the noticeId from the search results.

ParameterTypeDescription
notice_id *string

lookup_psc_code

Look up a Product/Service Code (PSC) by its code value. Returns the PSC name, full name, level 1 and level 2 category information, and includes/excludes guidance. Useful for validating PSC codes before using them as filters in other searches.

ParameterTypeDescription
code *string
active_onlystring

search_psc_free_text

Free-text search for Product/Service Codes (PSC). Searches across PSC names, descriptions, and category hierarchy. Returns matching PSC codes with full context. Useful for discovering PSCs from plain-language descriptions like 'engineering' or 'application development'.

ParameterTypeDescription
query *string
active_onlystring

search_contract_awards

Search contract award records on SAM.gov (FPDS replacement). This is the replacement for FPDS.gov (decommissioned Feb 2026). Same data, new endpoint. Uses limit/offset pagination (NOT page/size). CRITICAL date format: MM/dd/yyyy for single dates, [MM/dd/yyyy,MM/dd/yyyy] for ranges (brackets included). ISO 8601 dates are rejected. Boolean operators: use ~ for OR (e.g. naics_code="541512~541511"), use ! for NOT (e.g. extent_competed_code="!A"). Key parameters: - awardee_name: awardeeLegalBusinessName (partial match). NOT "vendorName". - awardee_uei: awarde…

ParameterTypeDescription
award_or_idv
awardee_cage_code
awardee_name
awardee_uei
contracting_department_code
contracting_office_code
contracting_subtier_code
date_signed
dollars_obligated
extent_competed_code
fiscal_year
free_text
include_sections
last_modified_date
limitinteger
modification_number
naics_code
offsetinteger
piid
psc_code
type_of_contract_pricing_code
type_of_set_aside_code

lookup_award_by_piid

Look up all contract award modifications for a single PIID. Returns all modification records for the given Procurement Instrument Identifier, sorted by modification number. This is the primary way to get the full history of a contract action. PIIDs are alphanumeric identifiers assigned by the contracting office. Format varies by agency (e.g. "GS-35F-0119Y", "W912BV22P0112", "N0003925F7516"). The search is exact match. include_sections: comma-separated list of contractId, coreData, awardDetails. Defaults to all sections if not specified. Returns normalize…

ParameterTypeDescription
piid *string
include_sections

search_deleted_awards

Search contract award records that have been deleted from FPDS/SAM.gov. Uses the same Contract Awards endpoint with deletedStatus=Y. Deleted records are removed from normal search results but remain accessible through this parameter. Useful for audit trails and historical research. Supports the same date format as search_contract_awards: MM/dd/yyyy or [MM/dd/yyyy,MM/dd/yyyy] for ranges. limit: 1-100 (default 10). offset: 0-based pagination.

ParameterTypeDescription
awardee_name
contracting_department_code
last_modified_date
limitinteger
offsetinteger
piid

vendor_responsibility_check

Composite pre-award vendor responsibility check per FAR 9.104-1. Performs TWO API calls in sequence: 1. Entity Management lookup (registration status, business types, CAGE, activation/expiration dates, exclusion flag on the entity record) 2. Exclusions lookup (active debarment/suspension records) Returns a structured summary with: - registration: full registration details or None if not registered - exclusion: exclusion record count and active exclusion details - flags: list of responsibility concern flags Flag meanings: - NOT_REGISTERED: entity ha…

ParameterTypeDescription
uei *string

search_federal_organizations

Search the SAM.gov Federal Hierarchy. Returns federal organizations (departments, agencies, sub-agencies, offices) with their FH IDs, codes, hierarchical relationships, and status. Useful for normalizing agency names to canonical FH IDs before passing them to Contract Awards, Opportunities, or Subaward searches. Filter notes: - fh_org_id: exact lookup by Federal Hierarchy organization ID (numeric). - fh_org_name: partial substring match on the organization name. - fh_org_type: case-insensitive substring filter. Live values from the API look like 'Departm…

ParameterTypeDescription
agency_code
cgac
fh_org_id
fh_org_name
fh_org_type
limitinteger
offsetinteger
status

get_organization_hierarchy

Get the immediate child organizations of a federal organization. Pass an FH org ID (use search_federal_organizations to find one) and receive the list of its direct subordinates. To traverse the full tree, call recursively on each child. Pagination uses limit (1-100) / offset.

ParameterTypeDescription
fh_org_id *
limitinteger
offsetinteger

search_acquisition_subawards

Search FFATA subcontract reports (acquisition subawards). These are subcontracts reported by prime contractors under the Federal Funding Accountability and Transparency Act. Use this to map prime contractors to their subs, see subcontract values, and identify the full distribution of a federal procurement dollar. CRITICAL: dates use ISO yyyy-MM-dd format (NOT MM/dd/yyyy like the rest of SAM.gov). Pagination uses pageNumber/pageSize (NOT limit/offset). Key filters: - prime_contract_key: business key for subawards under a prime - piid: Procurement Instrumen…

ParameterTypeDescription
agency_id
from_date
page_numberinteger
page_sizeinteger
piid
prime_award_type
prime_contract_key
referenced_idv_agency_id
referenced_idv_piid
statusstring
to_date

search_assistance_subawards

Search FFATA grant subaward reports (financial assistance subawards). These are subawards reported by prime grant recipients on cooperative agreements and grants. Use this to trace federal grant funds from prime recipient down to subrecipients. CRITICAL: dates use ISO yyyy-MM-dd format (NOT MM/dd/yyyy). Pagination uses pageNumber/pageSize. Key filters: - prime_award_key: business key identifying subawards under a prime grant - fain: Federal Award Identification Number for grants - agency_code: numeric agency identifier on the prime - from_date / to_da…

ParameterTypeDescription
agency_code
fain
from_date
page_numberinteger
page_sizeinteger
prime_award_key
statusstring
to_date