Skip to main content
Glama
cliwant

mcp-sam-gov

by cliwant

usas_naics_hierarchy

Read-only

Explore the NAICS hierarchy from 2-digit sectors to 6-digit codes, with active contract counts per code. Drill down by specifying a code to see its direct children and market scope.

Instructions

Navigate the NAICS hierarchy (2→4→6 digit) + active-contract count per code. No naicsFilter ⇒ the top-level 2-digit sectors. With naicsFilter= ⇒ that node is in parent and its DIRECT children are in hierarchy (drill into any row where hasChildren:true by re-calling with its code). A 6-digit leaf returns hierarchy:[] with the node in parent (found:true); a nonexistent code returns hierarchy:[] with parent:null (found:false). Use to explore market scope (e.g. what's under NAICS 54 = Professional, Scientific, and Technical Services).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
naicsFilterNoFilter to a specific NAICS code subtree, e.g. '541512'
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint. The description adds behavioral context beyond annotations: it details the response structure (parent, hierarchy), active-contract count per code, and edge cases (nonexistent code returns parent:null, found:false). No contradiction with annotations.

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 concise and well-structured, with a clear flow from purpose to behavior to edge cases to example. It is slightly dense but efficient, earning a 4 for being informative without redundancy.

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 the single parameter and no output schema, the description is highly complete. It covers all input scenarios and edge cases. While it implicitly describes the response structure, it could explicitly mention the fields in hierarchy objects (code, title, contractCount, hasChildren) for full completeness.

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

Parameters5/5

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

Schema has one parameter with 100% description coverage. The description adds significant meaning: it explains how the parameter affects behavior (no filter vs. filter), and what the response contains for each case. This goes well beyond the schema description.

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 clearly states the tool's purpose: navigate the NAICS hierarchy (2→4→6 digit) with active-contract counts per code. It distinguishes from sibling tools like usas_autocomplete_naics by specifying hierarchy navigation and contract counts.

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?

The description explains when to use the tool: to explore market scope, e.g., what's under NAICS 54. It provides precise usage guidance: no filter returns top-level sectors; with filter returns parent and direct children; includes drill-down instructions for hasChildren:true.

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

Install Server

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/cliwant/mcp-sam-gov'

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