Skip to main content
Glama
lzinga

US Government Open Data MCP

usa_spending_by_agency

Read-only

Retrieve total federal spending broken down by awarding agency to identify which agencies are spending the most.

Instructions

Get total federal spending broken down by awarding agency. Shows which agencies are spending the most.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fiscal_yearNoFiscal year (default: current)
stateNoTwo-letter state code, e.g. 'CA', 'TX'
keywordNoKeyword to filter spending
award_typeNoAward type filter
limitNoNumber of agencies (default: 20)
Behavior3/5

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

Annotations already declare readOnlyHint: true, so the description adds limited behavior context beyond confirming it is a read operation. It does not discuss defaults, pagination, or ordering beyond 'spending the most'.

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?

The description is two short sentences, front-loading the purpose with no extraneous words. It is efficiently structured.

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

Completeness4/5

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

For a straightforward aggregation tool with no required parameters, the description conveys the main output (agency spending ranking) and implies a filtered view. It lacks mention of return format or default limit but is reasonably complete for its simplicity.

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 coverage is 100% with descriptions for all 5 parameters. The description adds no parameter-level detail beyond what the schema provides, resulting in baseline score.

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 retrieves total federal spending broken down by awarding agency, and explicitly mentions it shows which agencies are spending the most, effectively distinguishing it from sibling tools like usa_spending_by_award or usa_spending_by_recipient.

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 the tool is for agency-level spending aggregation but provides no explicit guidance on when to use it versus alternatives or any exclusions. It is adequate but lacks direct direction.

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/lzinga/us-gov-open-data-mcp'

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