Skip to main content
Glama
Capture MCP Server

Capture MCP Server

by blen-labs

Get USASpending Spending By Category

get_usaspending_spending_by_category
Read-onlyIdempotent

Retrieve spending breakdowns by award category—contracts, grants, loans, and more—for a specified federal agency and fiscal year.

Instructions

Get spending breakdown by award category (contracts, grants, loans, etc.) for an agency and fiscal year.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agency_code": "<agency_code>"
    },
    "name": "get_usaspending_spending_by_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
agency_codeYes3-digit agency code (e.g., '075' for HHS)
fiscal_yearNoFiscal year (default: 2024)

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the tool could not do what was asked: a message, or an object with a stable `code` (bad_request, not_found, upstream_error, ...) and a `message`. The call is then marked isError.
warningsNoCaveats about this result, for example a filter the upstream did not honor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.0.2
    • changedInput schema / properties / fiscal_year / description
      Previous value: -"Fiscal year (e.g., 2024)"New value: +"Fiscal year (default: 2024)"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "description": "Present when the tool could not do what was asked: a message, or an object with a stable `code` (bad_request, not_found, upstream_error, ...) and a `message`. The call is then marked isError.",
      +      "oneOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "warnings": {
      +      "description": "Caveats about this result, for example a filter the upstream did not honor.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds little beyond that — it does not say how the breakdown is grouped or ordered, whether categories with zero spending appear, or anything about aggregation behavior for a live federal data source.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity leaves room for one more clarifying clause without becoming bloated.

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 two-parameter read-only aggregation with full schema coverage and an output schema to describe return values, the description covers the what and the scope adequately. Only edge-case behavior (missing/invalid agency code, category set boundaries) is unaddressed.

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 100%, so agency_code (3-digit, with an HHS example) and fiscal_year (default 2024) are already documented. The description only echoes 'agency and fiscal year' without adding format, valid-range, or defaulting semantics beyond the schema; baseline 3 applies.

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 ('Get spending breakdown by award category') and enumerates the grouping dimension (contracts, grants, loans), which separates it from sibling aggregations like budgetary resources or award search. It stops short of explicitly contrasting with those siblings, but the resource is unambiguous.

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?

Scoping to 'an agency and fiscal year' implies when this tool applies, but there is no explicit when-to-use guidance, no exclusion of the sibling aggregate/listing tools, and no note on prerequisites such as knowing a valid agency code. Usage must be inferred.

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