Spiral gives your agent every tool with one account. Browse the tools →

Grok · Finance

How to Use U.S. Treasury debt to the penny in Grok

Returns daily total federal debt, debt held by the public, and intragovernmental holdings. Use it to examine recent changes and the debt split; historical debt outstanding supplies annual history.

Prompts to try with U.S. Treasury debt to the penny in Grok

Copy an example into Grok, or ask in your own words.

Use U.S. Treasury debt to the penny to compare the first and last available observations in 2024. Show total debt and both debt components.

U.S. Treasury debt to the pennyGrok
Try asking
  • Use U.S. Treasury debt to the penny to look this up and give me the result as a table.

  • Pull the latest numbers from U.S. Treasury debt to the penny and tell me what changed since last week.

  • Check U.S. Treasury debt to the penny and summarize what you find in three bullet points.

  • Pull the newest data from U.S. Treasury debt to the penny and give me the result as a table.

How to set up U.S. Treasury debt to the penny in Grok

Pick the way that suits you. Each takes about two minutes.

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run U.S. Treasury debt to the penny

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "treasury-fiscal-data/debt/to-the-penny",
        "input": {
          "sort": "<sort>"
        }
      }'

Then paste one of the prompts above: Grok finds U.S. Treasury debt to the penny on Spiral, shows the price and runs it.

U.S. Treasury debt to the penny providers and prices

Spiral runs U.S. Treasury debt to the penny through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Treasury Fiscal Data · Debt to the penny
treasury-fiscal-data/debt/to-the-penny

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page[size]a number up to 10000100

Rows per page, 1 to 10,000. The default of 100 is fine for a summary series and far too small for a full auction history.

Page[number]a number1

Page number, 1-indexed. meta.total-pages in the response says how many there are.

Every API field of Treasury Fiscal Data · Debt to the penny is on its tool page: open its card above.

What can you do with U.S. Treasury debt to the penny in Grok?

Turn Treasury observations into a sourced explanation of federal debt or borrowing costs. Ask for a defined period and have the agent distinguish balances, rates, and expense before drawing comparisons.

Fiscal year briefing

Explain a completed fiscal year with annual debt, the daily debt split near year-end, monthly average rates, and reported interest expense.

Compare 2020 with 2024

Compare debt levels, public and intragovernmental holdings, average rates, and interest expense across the two years. Present the measures separately before discussing their relationship.

Check a national debt article

Check claims about debt growth, borrowing rates, and interest costs against Treasury observations. Match each claim to a daily, monthly, or annual reporting period.

Teach debt and borrowing costs

Build a lesson using actual Treasury figures to distinguish outstanding debt, average interest rates, and interest expense. Include the difference between total debt and debt held by the public.

Debt history with a recent close-up

Pair an annual debt chart beginning in 1790 with a daily view of 2024. Use the recent view to show changes hidden by annual observations.

Questions about U.S. Treasury debt to the penny in Grok

Can Grok use U.S. Treasury debt to the penny?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run U.S. Treasury debt to the penny like any built-in tool.

How much does U.S. Treasury debt to the penny cost in Grok?

$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

Do I need an Alexandria account to use U.S. Treasury debt to the penny in Grok?

No. Spiral runs U.S. Treasury debt to the penny on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up U.S. Treasury debt to the penny in Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while U.S. Treasury debt to the penny runs?

U.S. Treasury debt to the penny runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

Where does Treasury's debt data come from?

Fiscal Data draws from government operational systems, including debt management and summary debt accounting systems. Its coverage is public government finances; it does not provide personal financial records.

What reporting intervals do these Treasury datasets cover?

Debt to the Penny provides daily observations, historical debt outstanding summarizes fiscal years, and average interest rates provides monthly figures. Interest expense supplies both monthly and fiscal year-to-date amounts.

How far back can I compare federal debt?

Historical debt outstanding covers fiscal years from 1789 onward. It supplies total debt without the public-versus-intragovernmental breakdown available in Debt to the Penny.

Do Treasury's combined average rates include every security type?

The combined rates for total marketable, total nonmarketable, and total interest-bearing debt exclude TIPS and Floating Rate Notes. Keep that coverage boundary visible when discussing the government's average borrowing rate.

Does reported interest expense mean cash paid during the month?

Treasury describes its interest information for outstanding interest-bearing securities as calculated using modified accrual accounting. Avoid labeling every reported expense amount as a cash payment.

Get started

Start using U.S. Treasury debt to the penny in Grok

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok:

Set up Grok

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options