Docs/Sources/National Debt Grounding Data

National Debt Grounding Data

US National Debt Tracker

OperationalCredits 2 per callp50 1548msFinance

Overview

The collector calls the Treasury's Debt to the Penny dataset every day at 11am and stores one record per Treasury record date, the business days on which the figures are published. `totalDebt` is total public debt outstanding, `publicDebt` is debt held by the public, `intragovernmentalDebt` is debt held by government accounts, and `publicDebtRatio` is publicDebt as a percent of totalDebt, rounded to two decimals.

`perCapita` divides the total by a fixed US population of 335,000,000, which is also what `population` returns, so it is an estimate that does not track census changes. `perHousehold` divides the total by that population over 2.5 people per household.

`date` takes YYYY-MM-DD. When the date has no record, the API searches back up to ten days and returns the nearest earlier one; `date` echoes what you asked for and `recordDate` shows the record actually used. Without `date` you get the newest record.

With `changes=true`, `previousDebt` and `previousDate` are the record before the returned one. `change30d` and `change1y` compare with the record 30 and 365 days back, or the nearest before each. `averageDailyChange30d` divides `change30d` by the calendar days between the two records, so weekends spread the growth instead of inflating it. Dollar changes are rounded to cents; any comparison whose record is missing is null.

Live Test National Debt Grounding Data Source →

The tool

Once your client is connected to the VerveContext server, this appears in its tool list as NationalDebtGroundingData. It is read-only and open-world — it fetches and never mutates anything on your side — so most clients call it without asking you to confirm.

Tool call
{
  "name": "NationalDebtGroundingData",
  "arguments": {}
}

Connecting

One server URL covers every source in the catalog, including this one. Authorization is OAuth: the client opens a browser once, and there is no key to paste into a config file.

{
  "mcpServers": {
    "vervecontext": {
      "url": "https://api.vervecontext.com/v1/mcp"
    }
  }
}

Per-client setup — Claude, Cursor, VS Code, ChatGPT — is on the MCP setup page.

Arguments

These are the properties on the tool's inputSchema, so a well-behaved client validates them before the call is made. Premium arguments are accepted on every plan but only take effect on plans that include them.

ArgumentTypeDescription
dateOptionalstringOptional date in YYYY-MM-DD format for historical lookup. Omit for current data.
date
changesOptionalbooleanInclude the previous record's total and the growth over 1 day, 30 days and 1 year

What the model gets back

The result carries a structuredContent object matching the tool's declared outputSchema, so a client reads fields without parsing prose. status is "ok" and error is null on success; a null field means the value was not available for that input, not that the call failed.

Result
{
  "status": "ok",
  "error": null,
  "data": {
    "date": "2026-10-26",
    "recordDate": "2026-10-26",
    "totalDebt": 40528358939415.85,
    "totalDebtFormatted": "$40.53 trillion",
    "publicDebt": 32635294814294.48,
    "publicDebtFormatted": "$32.64 trillion",
    "intragovernmentalDebt": 7893064125121.37,
    "intragovernmentalDebtFormatted": "$7.89 trillion",
    "perCapita": 120980,
    "perCapitaFormatted": "$120,980",
    "population": 335000000,
    "publicDebtRatio": 80.52,
    "perHousehold": 302450.44,
    "perHouseholdFormatted": "$302,450",
    "previousDebt": 40463151897249.19,
    "previousDate": "2026-10-23",
    "change1d": 65207042166.66,
    "change30d": 431180819664.95,
    "change1y": 2519332979958.45,
    "changePercent1y": 6.6282,
    "averageDailyChange30d": 13909058698.87
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
datestring2026-10-26Date of the national debt data (YYYY-MM-DD format)
recordDatestring2026-10-26Treasury record date the figures come from (YYYY-MM-DD); the nearest prior business day when the requested date has no record
totalDebtnumber40528358939415.85Total US national debt in dollars
totalDebtFormattedstring$40.53 trillionTotal debt formatted as readable currency string
publicDebtnumber32635294814294.48US debt held by the public in dollars
publicDebtFormattedstring$32.64 trillionPublic debt formatted as readable currency string
intragovernmentalDebtPremiumnumber7893064125121.37Intragovernmental debt holdings in dollars
intragovernmentalDebtFormattedPremiumstring$7.89 trillionIntragovernmental debt formatted as currency string
perCapitaPremiumnumber120980Estimated national debt per person in dollars
perCapitaFormattedPremiumstring$120,980Per capita debt formatted as currency string
populationnumber335000000US population used for per capita calculations
publicDebtRationumber80.52Public debt as percentage of total debt
perHouseholdPremiumnumber302450.44Estimated national debt per household in dollars
perHouseholdFormattedPremiumstring$302,450Per household debt formatted as currency string
previousDebtnumber40463151897249.19Total public debt on the previous Treasury record (with changes=true)
previousDatestring2026-10-23Date of the previous Treasury record (YYYY-MM-DD) (with changes=true)
change1dPremiumnumber65207042166.66Change in total debt from the previous record, in US dollars (with changes=true)
change30dPremiumnumber431180819664.95Change in total debt from the record 30 days earlier (or the nearest before it), in US dollars (with changes=true)
change1yPremiumnumber2519332979958.45Change in total debt from the record one year earlier (or the nearest before it), in US dollars (with changes=true)
changePercent1yPremiumnumber6.6282Percent change in total debt over one year (with changes=true)
averageDailyChange30dPremiumnumber13909058698.87Average change in total debt per calendar day over the last 30 days, in US dollars (with changes=true)

Why ground on it

A model can produce something that looks like this answer from its training data, and be confidently out of date or simply wrong. This source returns the current value in a shape you can check, which is the difference between an answer you can cite and one you have to hedge.

Point an evaluation at recordDate: it is the field most worth pinning a claim to, and it is either present and current or absent — never plausibly invented.

Failure modes

Errors come back as tool errors carrying a sentence the model can act on, not a bare status code. Error handling covers the full list.

StatusWhat it means
400 / 422The arguments did not validate. The message names the offending one.
401The OAuth session is invalid or expired — reconnect the server.
403Blocked by a key restriction or an IP allow-list. Never a bad identity.
404This source is not part of VerveContext. Check the catalog.
429Out of credits, or a brief rate limit. The message tells them apart.

A call costs 2 credits each time the tool actually runs; a model that reasons about the tool without calling it costs nothing.

Use cases

Financial Dashboards
Display real-time national debt figures on financial dashboards and economic monitoring tools
Economic Research
Analyze historical debt trends for economic research and policy analysis
Educational Tools
Build educational applications showing government debt and per-capita calculations
News Applications
Provide up-to-date debt figures for news and media applications

Other ways to use National Debt Grounding Data

Set up National Debt Grounding Data on VerveContext, or reach the same source a different way. Your VerveContext account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →

More in Finance:

Was this page helpful?