Skip to main content
Glama

x402_usaspending_get_v1_references_naics

Retrieve NAICS industry codes and descriptions from USAspending reference data, with optional filters, to map federal spending to industry classifications.

Instructions

usaspending — USAspending API: federal agencies, budgetary resources, federal accounts and NAICS reference data. [GET /v1/references/naics] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/references/naics?filter=forest

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_usaspending_get_v1_references_naics"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavioral context that nothing else provides: this is a paid call at $0.005 USDC across four chains (eip155:8453/137/42161/480), which is important for the agent to know before invoking. It says nothing about whether the call is read-only (only implied by GET), what the response contains, result size, or failure behavior.

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?

Very short and front-loads the endpoint path and the price. The leading catalog-style blurb about agencies, budgetary resources, and federal accounts is boilerplate noise relative to this endpoint, but it costs only one clause.

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

Completeness3/5

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

For a parameterless-required GET reference lookup with no output schema and no annotations, an agent still lacks a description of the returned records (NAICS code shape, pagination, whether the full table is returned by default). The cost and path details are present, so it is adequate but not complete.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3; the four declared parameters (body, query, restart, operationId) are each documented in the schema. The description adds only the example '?filter=forest', which is genuinely useful because the schema's query object is an opaque additionalProperties map and 'filter' appears nowhere else. It still does not explain filter matching semantics (prefix, substring, code vs. title).

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

Purpose3/5

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

The description names 'NAICS reference data' as the resource and gives the concrete path [GET /v1/references/naics], so the target is identifiable. However, the opening clause lumps it together with 'federal agencies, budgetary resources, federal accounts,' which are the subjects of sibling tools, so the sentence does not isolate what this specific call returns (an industry-code lookup table).

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

Usage Guidelines2/5

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

There is no statement of when to use this endpoint versus the sibling agency/budgetary/federal-account endpoints, nor any prerequisites or exclusions. The only usage signal is the trailing example query, which shows a filter but not why or when an agent would want it.

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

Deploy Server

Other Tools