get_national_debt
Pack: treasury · Endpoint: https://gateway.pipeworx.io/treasury/mcp
Get the current US national debt (debt to the penny). Returns the most recent total public debt outstanding figure from the US Treasury.
Example call
Arguments
{}
curl
curl -X POST https://gateway.pipeworx.io/treasury/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_national_debt","arguments":{}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_national_debt', {});
Response shape
Always returns: record_date, total_public_debt, debt_held_by_public, intragovernmental_holdings
| Field | Type | Description |
|---|---|---|
record_date | string | Date of the debt record (YYYY-MM-DD format) |
total_public_debt | string | Total public debt outstanding in dollars |
debt_held_by_public | string | Debt held by the public in dollars |
intragovernmental_holdings | string | Intragovernmental debt holdings in dollars |
Full JSON Schema
{
"type": "object",
"properties": {
"record_date": {
"type": "string",
"description": "Date of the debt record (YYYY-MM-DD format)"
},
"total_public_debt": {
"type": "string",
"description": "Total public debt outstanding in dollars"
},
"debt_held_by_public": {
"type": "string",
"description": "Debt held by the public in dollars"
},
"intragovernmental_holdings": {
"type": "string",
"description": "Intragovernmental debt holdings in dollars"
}
},
"required": [
"record_date",
"total_public_debt",
"debt_held_by_public",
"intragovernmental_holdings"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"treasury": {
"url": "https://gateway.pipeworx.io/treasury/mcp"
}
}
}
See Getting Started for client-specific install steps.