Skip to content
Eden Engine

U.S. Federal Agency Budget, Obligations and Outlays by Fiscal Year

usaspending/agency-budget-by-year

One U.S. federal agency's budgetary resources, total obligated and total outlayed for each fiscal year from 2017 on, plus its cumulative obligations at each reporting period of each year, from USAspending.gov. Takes the agency's top-tier code (097 Defense, 075 HHS, 036 Veterans Affairs, 080 NASA, 012 Agriculture, 1601 Labor). A U.S. fiscal year N runs 1 October of N-1 to 30 September of N. Budgetary resources are what the agency could spend, obligated is what it committed, outlayed is cash paid; the response's total_budgetary_resources is the whole government's figure, not the agency's. The latest year is incomplete and the year after it is empty. Data is the U.S. Treasury's USAspending.gov (Bureau of the Fiscal Service).

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.

Data source

USAspending.gov

Data from USAspending.gov, U.S. Department of the Treasury, Bureau of the Fiscal Service (usaspending.gov), available for commercial and non-commercial use per usaspending.gov/about.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "usaspending/agency-budget-by-year" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "usaspending/agency-budget-by-year" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "usaspending/agency-budget-by-year", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "usaspending/agency-budget-by-year", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 20, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "toptier_code"
  ],
  "properties": {
    "toptier_code": {
      "type": "string",
      "pattern": "^[0-9]{3,4}$",
      "description": "The agency's top-tier code, three or four digits with leading zeros kept, for example 097 (Department of Defense), 075 (Health and Human Services), 036 (Veterans Affairs), 080 (NASA), 012 (Agriculture), 070 (Homeland Security), 020 (Treasury), 069 (Transportation), 1601 (Labor). The Awarding Agency Code field of usaspending/contract-awards and usaspending/grant-awards is this code. A code no agency holds is a validation error."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "toptier_code",
    "agency_data_by_year"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Notices from USAspending; empty in normal operation."
    },
    "toptier_code": {
      "type": "string",
      "description": "The agency code asked for."
    },
    "agency_data_by_year": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "fiscal_year"
        ],
        "properties": {
          "fiscal_year": {
            "type": "integer",
            "description": "The U.S. federal fiscal year, which ends 30 September of that year."
          },
          "agency_total_outlayed": {
            "type": [
              "number",
              "null"
            ],
            "description": "Dollars the agency paid out that year, including payments on obligations from earlier years, so it can exceed the obligated figure. Can be negative."
          },
          "agency_total_obligated": {
            "type": [
              "number",
              "null"
            ],
            "description": "Dollars the agency committed by contract, grant or order that year, cumulative to the latest period reported. Can be negative."
          },
          "total_budgetary_resources": {
            "type": [
              "number",
              "null"
            ],
            "description": "The whole U.S. government's budgetary resources for the year, identical for every agency. It is NOT this agency's budget; use agency_budgetary_resources."
          },
          "agency_budgetary_resources": {
            "type": [
              "number",
              "null"
            ],
            "description": "Dollars the agency had authority to spend that year (appropriations, carried-over balances and collections). Can be negative. null when the agency has no data for the year."
          },
          "agency_obligation_by_period": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "period",
                "obligated"
              ],
              "properties": {
                "period": {
                  "type": "integer",
                  "description": "Federal fiscal month: 1 is October, 12 is September. Fiscal years through 2021 report quarterly (3, 6, 9, 12); 2022 onward report monthly (2 to 12)."
                },
                "obligated": {
                  "type": "number",
                  "description": "Dollars obligated from 1 October through the end of that period. Cumulative, so the last period equals agency_total_obligated; it can still fall after a deobligation."
                }
              },
              "additionalProperties": true
            },
            "description": "Cumulative obligations since the start of the fiscal year, at each reporting period. Empty for a year with no data."
          }
        },
        "additionalProperties": true
      },
      "description": "One row per fiscal year, newest first, eleven rows (2017 through the year after the current one). A year with no submitted data has null amounts and an empty period list."
    }
  },
  "description": "USAspending's response: the agency's code and one row per fiscal year, newest first.",
  "additionalProperties": true
}