Sam Entity Search
sam_entity_searchLook up federal contractors registered in SAM.gov by business name, UEI, or CAGE code. Returns UEI, CAGE, legal and DBA name, address, NAICS and PSC codes, entity structure, registration and expiration dates, small-business/SBA certifications, and whether the entity carries an exclusion flag. Answers keyless from a local mirror of SAM.gov's public Entity Registration extract, ranking an exact UEI/CAGE/legal-name match above any fuzzy name hit and active registrations above expired ones. Every response carries a mirror field with the snapshot date and its age in days, the public entity extract is published MONTHLY, so an answer can legitimately be several weeks old; pass live:true with an API key when you need the registry as of today.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"limit": 2,
"business_name": "Lockheed Martin Corporation"
},
"name": "sam_entity_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | Force a live SAM.gov API lookup instead of the mirror. Needs _apiKey. Use only when you specifically need registrations changed since the mirror snapshot, the live entity API is capped at 10 requests/day on the shared platform key. | |
| limit | No | Number of results (1-100, default 10). | |
| naics | No | Filter by NAICS code (optional), matches the primary NAICS or any NAICS the entity lists. Not sure of the code? naics_search turns industry words into NAICS codes; naics_lookup explains one. | |
| state | No | Filter by 2-letter US state code (e.g., "VA", "CA") | |
| offset | No | Rows to skip for paging (default 0). | |
| _apiKey | No | Optional, omit it. This search answers keyless from the local snapshot of SAM.gov's public Entity Registration extract; a key is needed only for live:true. | |
| active_only | No | Only entities with an active registration (default false, expired registrations are returned but sorted below active ones). | |
| business_name | Yes | What to search for: a legal/DBA business name, or an exact UEI or CAGE code. Accepts query / q / name as aliases. | |
| small_business | No | Filter to only small business entities (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes | ||
| total_records | Yes | Total number of matching entities in SAM |