Skip to main content
Glama

x402_usaspending_get_v1_toptier_agencies

Retrieves the top-tier federal agencies from USAspending so you can identify agencies and support federal spending analysis.

Instructions

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

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_toptier_agencies"
  }
}

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.7/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 genuinely useful behavior beyond the schema: the call is metered at $0.005 USDC and settleable on four named chains, which is material for an agent deciding to invoke. It still omits response shape, pagination, and whether the endpoint is unauthenticated read-only, and it does not explain the retry/idempotency contract implied by the `restart`/`operationId` parameters.

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

Conciseness3/5

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

The definition is short and front-loads the service name, path, and price, which is good structure. But the opening sentence enumerates unrelated parts of the USAspending surface (budgetary resources, federal accounts, NAICS) that add no information for this specific endpoint and push the actual endpoint meaning to a bracketed tag.

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

Completeness2/5

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

With no annotations, no output schema, and a nested generic object parameter set, the description needed to compensate for what structured fields do not say. It does not indicate what a top-tier agency record contains, whether results are paginated or complete, or how the paid-call/retry semantics interact with `restart` — significant gaps for a paid read endpoint.

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% and all four parameters are generic transport wrappers (body, query, restart, operationId) rather than endpoint-specific inputs, so the baseline of 3 applies. The description contributes nothing about how query filters map to this endpoint, and the `Example: /v1/toptier-agencies` line illustrates the path, not any parameter usage.

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 bracketed path `[GET /v1/toptier-agencies]` and the name identify the resource (top-tier federal agencies) and the verb (GET), so the basic action is inferable. However, the prose sentence is a domain-level catalog blurb ('federal agencies, budgetary resources, federal accounts and NAICS reference data') rather than a statement of what this endpoint specifically returns, and it never distinguishes it from the sibling `get_v1_agencies_code`, which is the natural confusion point.

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 call this versus the code-level agencies endpoint or the budgetary-resources/federal-account siblings. The only usage-adjacent content is the price and supported chains, which tells the agent what it costs but not when to choose 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