Skip to main content
Glama

usaspending-mcp-server

Get Award Federal Accounts

usaspending_get_award_federal_accounts
Read-onlyIdempotent

List the Treasury federal accounts that funded an award, with the amount obligated from each and the funding agency behind it. This is the award → appropriation link: each row returns federal_account (AGENCY-MAIN format, e.g. 080-0120) to chain into usaspending_get_federal_account for the account budget detail. The award_id must be a generated_unique_award_id — from usaspending_search_awards (generated_internal_id field) or usaspending_get_award. Distinct from usaspending_get_award account_obligations_by_defc, which breaks funding down by Disaster/Emergency Funding code rather than by account. An award_id that does not exist returns an empty list rather than an error.

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": {
      "award_id": "<award_id>"
    },
    "name": "usaspending_get_award_federal_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based)
limitNoFunding accounts per page. Default 10, at most 100 per call.
award_idYesAward generated_unique_award_id (e.g., CONT_AWD_GSFC0198106DNAS526555_8000_-NONE-_-NONE-) — use generated_internal_id from usaspending_search_awards or generated_unique_award_id from usaspending_get_award

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoA reduced limit, and recovery for an empty page, distinguished from a known zero total; absent when neither applies.
resultsNoFederal accounts funding this award
award_idNoAward ID queried
limitClampNoPresent when a count input above its per-call cap was reduced to the cap.
totalCountNoTotal number of funding accounts across all pages (when available)
current_pageNoCurrent page returned
has_next_pageNoWhether there are more pages of funding accounts
page_metadataNoPagination metadata

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum results per page (1–100)"New value: +"Funding accounts per page. Default 10, at most 100 per call."
    • removedInput schema / properties / limit / maximum
      Removed value: -100
    • addedOutput schema / properties / limitClamp
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Present when a count input above its per-call cap was reduced to the cap.",
      +  "properties": {
      +    "applied": {
      +      "description": "Value the call used: the per-call cap",
      +      "type": "number"
      +    },
      +    "field": {
      +      "description": "Input that was reduced (e.g., limit)",
      +      "type": "string"
      +    },
      +    "requested": {
      +      "description": "Value the caller sent",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "field",
      +    "requested",
      +    "applied"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Recovery for an empty page, distinguished from a known zero total; absent when results are present."New value: +"A reduced limit, and recovery for an empty page, distinguished from a known zero total; absent when neither applies."
  2. Changed1 schema field changed
    • changedOutput schema / properties / results / items / properties / funding_toptier_agency_id / description
      Previous value: -"Internal USAspending database ID of the funding toptier agency — not the 3-digit toptier code accepted by usaspending_get_agency"New value: +"Internal USAspending database ID of the funding toptier agency — distinct from the directory toptier_code accepted by usaspending_get_agency"
  3. Changed1 schema field changed
    • changedOutput schema / properties / notice / description
      Previous value: -"Recovery hint when results are empty — the award_id may not exist or may have no account linkage. Absent when results are present."New value: +"Recovery for an empty page, distinguished from a known zero total; absent when results are present."
  4. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "award_id",
      +      "results",
      +      "page_metadata",
      +      "current_page",
      +      "has_next_page"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `api_unavailable`: USAspending.gov API is unreachable or returns an error. `api_timeout`: USAspending.gov did not respond before the request deadline elapsed. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "api_unavailable",
      +            "api_timeout"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "award_id",
      -  "results",
      -  "page_metadata",
      -  "current_page",
      -  "has_next_page"
      -]
  5. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, not open-world), and the description adds real behavioral context beyond them: the row shape (federal_account in AGENCY-MAIN format, amount obligated, funding agency) and the notable edge case that a nonexistent award_id returns an empty list rather than an error. It stops short of describing pagination behavior or ordering, which is the only remaining gap.

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?

Three sentences, front-loaded with what the rows contain, then the chaining instruction, then the sibling disambiguation and the empty-list caveat. Every sentence carries distinct information — nothing restates the name or title.

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 an output schema exists, the description needn't explain return values, yet it still characterizes the row contents usefully. The ID-source prerequisite and the empty-list behavior cover the main failure modes. It could mention pagination limits for large awards, but overall it is complete enough to invoke correctly.

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 award_id, page, and limit all documented in the schema itself. The description reinforces the award_id format expectation, but adds no meaning to page/limit beyond what the schema declares (default 10, max 100). Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource — listing Treasury federal accounts that funded an award, with obligated amount and funding agency per row — and explicitly distinguishes it from usaspending_get_award's account_obligations_by_defc, which the agent could otherwise confuse it with. It also positions the tool as one link in a chain (award → appropriation), which pins down its role.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (chain an award to its funding accounts), an explicit when-not comparison against a named sibling's DEFC breakdown, and points forward to usaspending_get_federal_account for budget detail. It also names the accepted ID source (generated_internal_id from search_awards or get_award), so the agent knows the prerequisite input before calling.

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.