Skip to main content
Glama
haydentbs

USAspending MCP Server

by haydentbs

Aggregate USAspending By Category

usaspending_spending_by_category
Read-onlyIdempotent

Aggregate US federal spending obligations or outlays by category such as agency, recipient, or location. Apply filters to narrow results, and choose markdown or JSON output.

Instructions

Aggregate obligations/outlays by category such as awarding_agency, recipient_duns, naics, psc, federal_account, state_territory, cfda, or defc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
filtersNoUSAspending AdvancedFilterObject. Common keys include time_period, keywords, agencies, recipient_search_text, award_type_codes, award_ids, naics_codes, psc_codes, and place_of_performance_locations. Specify an explicit time_period for time-sensitive analysis.
limitNoResults per page.
pageNoPage number to return.
spending_levelNotransactions
response_formatNoOutput format: markdown for readable summaries, json for raw structured data.markdown
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, so the description is not required to repeat safety traits. It adds no further behavioral context (e.g., data freshness, rate limits), but does not contradict 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 a single sentence that is concise and front-loaded with the key verb 'Aggregate'. It could be more informative by adding a differentiating sentence, but the current structure is efficient and clear.

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?

Given the tool's complexity (6 parameters, nested filters, 3 enums for category, no output schema), the description is too minimal. It lacks details on output format, filter usage, and category semantics, leaving the agent with insufficient context for effective use.

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 67% (4/6 parameters have descriptions in schema). The tool description adds examples of category values but does not describe other parameters like spending_level, response_format, or the complex filters object. It provides marginal added value beyond the schema.

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 clearly states that the tool aggregates obligations/outlays by a specified category, listing examples. However, it does not differentiate from sibling tools like usaspending_spending_by_geography or usaspending_spending_over_time, which have similar purposes but different category scopes.

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 description provides no guidance on when to use this tool versus alternatives, nor does it mention any prerequisites or constraints. Sibling tools are listed but not referenced, leaving the agent without decision support.

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/haydentbs/usaspending-mcp-server'

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