Skip to main content
Glama
govconapi

io.github.govconapi/govconapi

Official

Search Companies

search_companies
Read-onlyIdempotent

Search U.S. federal contractors that have won at least one award by company name. Filter by NAICS or agency, then use returned UEI identifiers for company profiles, awards, peers, and compliance checks.

Instructions

Search companies that have WON at least one federal award, by name, across both SAM Award Notices and FPDS prime contracts. For ALL registered SAM firms (won an award or not), use search_entities instead.

Capture & Teaming tool, Pro only. Case-insensitive substring match on the name.

- q: name substring, min 2 chars, REQUIRED, naics/agency/naics_small only narrow an
  existing name search, they don't work standalone (for a direct UEI lookup use
  get_company_profile instead)
- naics: 6-digit code, filters to companies with 1+ award in this NAICS
- agency: top-level agency name (e.g. "DEPT OF DEFENSE"), filters to companies with
  1+ award from this agency
- naics_small: exact 6-digit NAICS code (e.g. "236220"), SBA DSBS small-business
  determination for this NAICS (Pro), pairs award history with actual eligibility,
  distinct from SAM's self-reported flag
- limit: max 100

Returns each company's `uei`, the SAME identifier every other Capture/Teaming tool
takes as `uei` (get_company_profile, get_company_awards, get_company_peers,
check_exclusion, get_company_contact). `total_value`/`total_awards` cover SAM Award
Notices only; `fpds_obligated_total`/`fpds_transaction_count` cover the broader FPDS
prime-contract activity independently, a contractor can show $0 in one and millions
in the other, check both.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNo
limitNo
naicsNo
agencyNo
offsetNo
naics_smallNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Even with annotations already indicating a safe read-only operation, the description adds substantial behavioral context: case-insensitive substring matching, min 2 chars, the distinction between SAM-only and FPDS-only metrics, and the caveat that a company can show $0 in one metric and millions in the other. It also clarifies that the returned uei is the same identifier accepted by sibling tools.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but well-structured with a brief opening paragraph and bulleted parameter notes. Every sentence adds distinct semantic value, though it is longer than average; the length is justified by the zero schema coverage and the need to explain field-level return semantics.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with six parameters and an output schema, the description covers overall scope, parameter restrictions, sibling alternatives, and return-value semantics thoroughly. The only notable gap is offset/pagination behavior, and the q-required wording creates minor schema friction. Overall, an agent has enough context to select and invoke this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden. It explains q, naics, agency, naics_small, and limit with useful details like min length and max value. However, offset is not described at all, and q being called REQUIRED conflicts with the schema's nullable/default-null declaration, even if q is semantically necessary for a meaningful search.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description states a specific verb and resource: 'Search companies that have WON at least one federal award, by name, across both SAM Award Notices and FPDS prime contracts.' It distinguishes itself from search_entities and get_company_profile, so an agent can immediately tell what this tool does and does not do.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit routing guidance: use search_entities for ALL registered SAM firms, use get_company_profile for direct UEI lookup, and clarifies that naics/agency/naics_small only narrow an existing name search rather than working standalone. Also notes the Pro-only restriction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/govconapi/govconapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server