Skip to main content
Glama
govconapi

io.github.govconapi/govconapi

Official

Find NAICS Codes

find_naics_codes
Read-onlyIdempotent

Discover NAICS codes using federal spending and small-business set-aside data when you don't know the right code. Filter by sector, keywords, market size, and competitors.

Instructions

Discover NAICS codes by current federal spending and small-business set-aside leverage, use this when you don't already know which NAICS code to look at.

Market Research tool, the entry point into the NAICS/Market Pulse tools below.

  • sector: 2-digit NAICS sector prefix (e.g. "54")

  • prefix: any-length NAICS prefix (e.g. "5415")

  • min_market: minimum FY2025+ obligated dollars

  • max_competitors: maximum distinct winning firms (a low number = a thin, less-contested market)

  • set_aside_family: total_small_business | 8a | sdvosb | wosb | hubzone | veteran | native

  • keywords: matches the NAICS description text

  • sort_by: market (size) | competitors | setaside_pct (aggregate small-business share across ALL families; when set_aside_family is also set, sorts by THAT family's own share instead, read each row's family_share_pct for the honest per-family number, populated only when set_aside_family is set)

Returns each matching code's naics_code, pass that to get_naics_market, get_naics_positioning, get_naics_simplified_acquisition, or get_naics_competition for the deeper reads below. 503 briefly if the market index is still building.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
prefixNo
sectorNo
sort_byNomarket
keywordsNo
min_marketNo
sort_orderNodesc
max_competitorsNo
set_aside_familyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description adds useful behavior: a possible 503 while the market index is building, the nuance that `setaside_pct` aggregates across ALL families, and that `family_share_pct` is populated only when `set_aside_family` is set. This gives an agent accurate expectations for transient failures and per-family sorting semantics.

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 front-loaded with purpose and usage condition, then organized into a clear bullet list of parameters. It is longer than average but the length is justified by the 0% schema coverage; every major section contributes. The sort_by bullet is a bit dense but still valuable.

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?

Given 10 parameters, no schema-level descriptions, and an output schema, the description is largely complete: it explains entry-point usage, key parameter semantics, return guidance, and a transient failure mode. It does not cover limit/offset/sort_order, but those are minor conventional parameters, so the overall picture is strong.

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?

With 0% schema description coverage, the description carries the burden and documents most parameters well: sector, prefix, min_market, max_competitors, set_aside_family, keywords, and sort_by, including valid enum values. However, `limit`, `offset`, and `sort_order` are not explained in the description, leaving a minor gap even though their names and defaults are fairly self-explanatory.

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?

The description opens with a specific verb and resource: 'Discover NAICS codes by current federal spending and small-business set-aside leverage.' It clearly positions itself as the entry point into the NAICS/Market Pulse tools and names the downstream tools, distinguishing it from siblings like get_naics_market and get_naics_competition.

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

Usage Guidelines4/5

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

It explicitly says to use this tool 'when you don't already know which NAICS code to look at,' which gives a clear condition for use. It also describes passing the resulting `naics_code` to downstream tools, but it does not explicitly state 'use get_naics_* directly if you already know the code,' so the alternative-usage guidance is strong but not fully explicit.

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

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