Skip to main content
Glama
haydentbs

USAspending MCP Server

by haydentbs

Aggregate USAspending By Geography

usaspending_spending_by_geography
Read-onlyIdempotent

Aggregate federal spending by state, county, congressional district, or country using place of performance or recipient location. Filter by time period and other criteria to analyze spending distribution.

Instructions

Aggregate spending by state, county, congressional district, or country using place of performance or recipient location.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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.
scopeNoplace_of_performance
geo_layerNostate
geo_layer_filtersNo
spending_levelNotransactions
response_formatNoOutput format: markdown for readable summaries, json for raw structured data.markdown
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the description does not need to repeat them. The description adds context about aggregation but no extra behavioral details. No contradiction.

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

Conciseness5/5

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

A single, clear sentence with no fluff. Title and description are front-loaded and efficient.

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?

No output schema exists, yet the description does not explain the output format or structure. The response_format parameter hints at options but is not described. The tool has 6 parameters and nested filters, but the description only gives a high-level overview.

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

Parameters2/5

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

Schema coverage is low (33%), but the description adds no explanations for the 4 parameters with enums (scope, geo_layer, spending_level, geo_layer_filters). Only filters and response_format have schema descriptions.

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 aggregates spending by geography (state, county, district, country) using place of performance or recipient location. It effectively distinguishes from sibling tools like spending_by_category and spending_over_time.

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

Usage Guidelines3/5

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

The description implies usage for geographic aggregation but provides no explicit guidance on when to use this tool versus alternatives, nor any prerequisites or limitations.

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