Skip to main content
Glama

US national debt, Treasury data: total public debt outstanding at the latest record date and its change

econ_national_debt
Read-only

US national debt from the Treasury's Debt to the Penny dataset: total public debt outstanding, debt held by the public and intragovernmental holdings (USD) at the latest record date, the change over 1 day, 30 days and 1 year, and a daily history (1-365 days). US federal data, public domain; the snapshot's record date is in the answer. Use when an agent needs the latest US federal debt record, its trend, or a daily series for a chart or brief. Example: days=30. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "econ_national_debt"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays of daily history to return, 1-365 (default 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / days / maximum
      Previous value: -9007199254740991New value: +365
    • changedInput schema / properties / days / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag readOnlyHint=true and destructiveHint=false, but the description adds genuinely non-inferable context: the upstream dataset, public-domain provenance, that the record date is echoed in the answer, and the billing model ($0.01/call via x402 USDC or card key, first 10 free, failed calls free, repeats not free). The per-call charge also explains why idempotentHint=false despite it being a pure read — an important reconciliation the agent would otherwise miss.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition opens with the data source and payload, then usage, then commercial terms — a sensible front-loaded ordering with no wasted sentences. The pricing tail is dense and slightly promotional, but it carries actionable behavior (cost per call, free failures) rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must carry the return contract, and it does: all three debt figures, three horizons of change, optional daily series, and where the record date appears. For a single-optional-parameter read tool, an agent has everything needed to call it correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the days parameter already documents its 1-365 range and default of 30, so the baseline is 3. The description earns an extra point by stating what the parameter governs semantically ('a daily history (1-365 days)') and by supplying a worked example (days=30), which clarifies that it controls history depth rather than the snapshot itself.

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?

The description names a specific resource (Treasury Debt to the Penny total public debt outstanding) and enumerates exactly what is returned: total outstanding, debt held by the public, intragovernmental holdings, changes over 1/30/365 days, and an optional daily history. The sibling list contains other econ_* indicators (GDP, inflation, unemployment), and the debt-specific framing separates it cleanly without needing to name them.

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

Usage Guidelines4/5

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

It gives an explicit when-to-use clause: 'Use when an agent needs the latest US federal debt record, its trend, or a daily series for a chart or brief,' plus a concrete example (days=30). What's missing is any negative guidance or a stated boundary against adjacent indicators, so an agent is left to infer that econ_gdp or econ_inflation are not substitutes.

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.

Resources