Skip to main content
Glama

Federal spending rollups

spending_by_category
Read-onlyIdempotent

Aggregate federal contract spending by NAICS, PSC, recipient, or awarding agency over a date range, optionally filtered by keywords/NAICS/agency - market sizing in one call ("top contractors in NAICS 541512 last year", "which agencies buy the most cybersecurity"). Keyless.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoTop N (default 10)
categoryYes
end_dateNoYYYY-MM-DD (default: today)
keywordsNo
start_dateNoYYYY-MM-DD (default: 1 year ago)
agency_nameNo
naics_codesNo

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, idempotent, and non-destructive behavior. The description adds 'Keyless' (no authentication) and clarifies that a single call returns aggregation rollups, which goes beyond the structured annotations without contradicting them.

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 sentences with practical examples, front-loading the core aggregation behavior. Every phrase earns its place, with no filler or redundant repetition of schema details.

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?

Given 7 parameters, no output schema, and strong annotations, the description covers primary use cases and key filters. It lacks explicit return shape (though 'rollups' and 'top N' imply grouped totals) and filter interaction rules, but is sufficiently complete for typical market-sizing queries.

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?

Schema description coverage is only 43%, so the description compensates by mapping category to NAICS/PSC/recipient/awarding agency and mentioning filter options (keywords, NAICS, agency). It adds meaning to parameters that lack schema descriptions, though it does not specify filter combination logic.

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 federal contract spending by NAICS, PSC, recipient, or awarding agency over a date range. It distinguishes itself from siblings like search_awards by framing it as 'market sizing in one call' with concrete examples.

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

Usage Guidelines4/5

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

The tool provides clear context for when to use it, such as 'top contractors in NAICS 541512 last year' and 'which agencies buy the most cybersecurity', indicating market-sizing scenarios. However, it does not explicitly name alternatives or state when not to use this tool versus search_awards.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: two are code/name resolvers, two are searchers (awards vs opportunities), one fetches award details, one looks up entities, and one aggregates spending. No two tools overlap in function, and descriptions reinforce the boundaries.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (find_agency, find_naics, get_award, lookup_entity, search_awards, search_opportunities, spending_by_category). The use of 'lookup' instead of 'find' is a minor stylistic variation but does not break the overall pattern.

Tool Count5/5

Seven tools is well-scoped for a federal market intelligence server, covering the essential operations of entity resolution, searching, detail retrieval, and aggregation without unnecessary bloat. Each tool earns its place.

Completeness4/5

The tool set provides strong coverage of the federal market research workflow: resolving agencies and NAICS codes, searching opportunities and awards, retrieving award details, vetting entities, and aggregating spending. The only notable gap is the absence of a dedicated 'get_opportunity' tool to mirror 'get_award' for retrieving full opportunity details.

Resources