Skip to main content
Glama

x402_usaspending_get_v1_agencies_code_budgetary_resources

Fetch a federal agency's budgetary resources by agency code from the USAspending API to review funding allocations, with optional fiscal-year filtering.

Instructions

usaspending — USAspending API: federal agencies, budgetary resources, federal accounts and NAICS reference data. [GET /v1/agencies/{code}/budgetary-resources] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/agencies/012/budgetary-resources?fy=2024

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

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
Behavior2/5

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

With no annotations, the description carries the full burden of behavior disclosure. It usefully states that the endpoint is a GET, costs $0.005 USDC, and supports several chains, but it does not describe authentication, rate limits, pagination, response shape, failure modes, or retry behavior beyond what is implied by the generic restart/operationId schema fields.

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 compact and front-loads the endpoint path after a brief API-domain phrase. The chain list and example are useful, but the broad list of unrelated API topics such as federal accounts and NAICS adds slight noise for this specific endpoint.

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?

For a paid GET endpoint with no output schema and no annotations, the description should do more to explain return values and operational behavior. It gives the endpoint, price, supported chains, and one example, but lacks response details, parameter definitions, and error/retry context needed by an agent invoking the tool.

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%, but the schema is a generic wrapper describing body, query, restart, and operationId rather than the endpoint-specific code and fy parameters. The example adds useful mapping for {code} and fy=2024, but it does not explain what fy means, whether other query parameters are allowed, or the expected agency code format beyond a single example.

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

Purpose4/5

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

The description names the exact endpoint GET /v1/agencies/{code}/budgetary-resources and shows an example, so the specific resource is identifiable. However, the opening sentence broadly lists federal agencies, budgetary resources, federal accounts, and NAICS reference data, which is broader than this endpoint and is clarified only by the bracketed path.

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?

The example implies querying budgetary resources for agency code 012 with fy=2024, but the description does not state when to use this tool instead of related siblings such as the agency detail or federal account endpoints. It also gives no explicit exclusions or prerequisites for use.

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