treasury_federal_net_cost

Pack: treasury-fiscal · Endpoint: https://gateway.pipeworx.io/treasury-fiscal/mcp

US federal government net cost / spending by agency (gross cost, earned revenue, net cost) from the Treasury statement_net_cost dataset. Returns recent records; optionally filter by fiscal_year.

Parameters

NameTypeRequiredDescription
fiscal_yearstringnoFour-digit fiscal year to filter by (e.g., “2024”). Omit for most recent.
limitnumbernoNumber of records to return (default 20)

Example call

Arguments

{
  "limit": 20
}

curl

curl -X POST https://gateway.pipeworx.io/treasury-fiscal/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"treasury_federal_net_cost","arguments":{"limit":20}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('treasury_federal_net_cost', {
  "limit": 20
});

More examples

{
  "fiscal_year": "2024",
  "limit": 20
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "treasury-fiscal": {
      "url": "https://gateway.pipeworx.io/treasury-fiscal/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 5, 2026