Skip to main content
Glama

Groundsocial

US federal spending by place

economy_government_spend_get
Read-onlyIdempotent

US federal spending by state, county or country, from USAspending.

US federal award spending summed by state (default), county or country, largest first, from USAspending.gov, with population and per-capita amounts. Filter by naics, psc, keyword and the date window (defaults to the last complete fiscal year). scope place_of_performance (default) or recipient_location; award_type contracts (default), grants or all.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": "economy_government_spend_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
geoNo
pscNoProduct or service codes (1 to 4 characters), comma-separated, up to 20.
naicsNoNAICS codes (2, 4 or 6 digits), comma-separated, up to 20.
scopeNo
keywordNoFree text matched against award descriptions (3 to 120 characters).
to_dateNoYYYY-MM-DD.
from_dateNoYYYY-MM-DD, from 2007-10-01. Defaults to the last complete federal fiscal year.
award_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly/openWorld/idempotent/non-destructive, but the description adds genuinely new behavior: a cost of 1 credit per call that is refunded on failure, public-data-only scope, and that responses carry cost_credits and credits_remaining. The main remaining gap is result cardinality — nothing says how many places are returned or whether there is a row cap.

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 opening sentence front-loads the resource and grain, and the second packs defaults, filters and scope options without wasted clauses. There is mild redundancy — 'from USAspending' appears in both sentences and the first line echoes the title — but the density is otherwise appropriate for an 8-parameter tool.

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 tool with 8 optional params and no output schema, the description covers defaults, filter semantics, cost, and the notable response fields, which is close to sufficient. Missing pieces are result-set size/pagination behavior and any note on how the country geo level behaves differently, leaving a small completeness gap.

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

Parameters4/5

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

With 63% schema coverage across 8 params, the description compensates well by supplying defaults the schema omits for geo, scope and award_type, plus the fiscal-year default for from_date and the role of naics/psc/keyword as filters. It adds no syntax detail beyond the schema's own maxLength/format notes, but the default behavior it contributes is the higher-value information.

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 a specific verb and resource — federal award spending summed by state/county/country from USAspending.gov — and states the aggregation grain and sort order ('largest first'), which is enough to distinguish it from a raw-award sibling like economy_government_contracts_get. It stops short of explicitly naming the sibling it differs from, so it lands at 4 rather than 5.

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?

Useful defaults are given (geo=state, scope=place_of_performance, award_type=contracts, date window=last complete fiscal year), which tells the agent what happens if it passes nothing. However, there is no explicit statement of when to choose this aggregated view over the contracts-level tool, so the routing guidance is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.