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

Windsurf · Finance

How to Use Treasury Fiscal Data published reports in Windsurf

Returns file references for official Treasury statements and reports. Use it to locate the published document for a reporting period and check its presentation alongside the table records.

Prompts to try with Treasury Fiscal Data published reports in Windsurf

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

Use Treasury Fiscal Data published reports to locate the September 2025 Monthly Treasury Statement and add the returned file references to this project's source manifest.

Treasury Fiscal Data published reportsWindsurf
Try asking
  • Use Treasury Fiscal Data published reports to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Treasury Fiscal Data published reports and tell me what changed since last week.

  • Check Treasury Fiscal Data published reports and summarize what you find in three bullet points.

  • Pull the newest data from Treasury Fiscal Data published reports and give me the result as a table.

How to set up Treasury Fiscal Data published reports in Windsurf

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

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf 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 Treasury Fiscal Data published reports

    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": "fiscaldata-treasury-gov/fiscal-data/published_reports",
        "input": {
          "dataset_id": "<dataset_id>"
        }
      }'

Then paste one of the prompts above: Windsurf finds Treasury Fiscal Data published reports on Spiral, shows the price and runs it.

Treasury Fiscal Data published reports providers and prices

Spiral runs Treasury Fiscal Data published reports through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
US Treasury Fiscal Data · Published reports
fiscaldata-treasury-gov/fiscal-data/published_reports

Settings you can ask for

Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page size1 to 100050

page_size

Every API field of US Treasury Fiscal Data · Published reports is on its tool page: open its card above.

What can you do with Treasury Fiscal Data published reports in Windsurf?

Build a federal finance dashboard with Treasury debt, cash, and budget figures tied to their reporting periods. A coding agent can use dataset descriptions, historical records, release estimates, and published statements to make the dashboard's calculations easier to inspect.

Prepare a monthly federal budget briefing

Find the Monthly Treasury Statement tables, check the expected publication date, and retrieve the newest receipts and outlays. Compare them with earlier periods and locate the official statement for the briefing's source material.

Explain changes in Treasury's cash balance

Identify the Daily Treasury Statement tables, plan checks around expected releases, and compare the newest cash balance with earlier observations. Locate the corresponding statement to examine deposits, withdrawals, and the report's notes.

Review quarterly currency reporting rates

Find Treasury's exchange-rate dataset and expected releases, retrieve the newest Canadian dollar and Mexican peso observations, and compare earlier quarters. Locate the published report while checking raw records separately for amendments omitted from the PDF.

Run an economic newsroom's release desk

Build a watchlist of Treasury datasets and expected publication times. For each release, compare the newest figures with the preceding period and locate any accompanying published statement before drafting the update.

Check a budget chart against its published statement

Retrieve the Monthly Treasury Statement records behind a chart and locate the statement for the same period. Check the units and distinguish detail rows from subtotals before recalculating the chart.

Questions about Treasury Fiscal Data published reports in Windsurf

Can Windsurf use Treasury Fiscal Data published reports?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Treasury Fiscal Data published reports like any built-in tool.

How much does Treasury Fiscal Data published reports cost in Windsurf?

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

Do I need an Alexandria account to use Treasury Fiscal Data published reports in Windsurf?

No. Spiral runs Treasury Fiscal Data published reports on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Treasury Fiscal Data published reports in Windsurf?

About two minutes: add the server, then sign in, then check it.

Does Windsurf wait while Treasury Fiscal Data published reports runs?

Treasury Fiscal Data published reports runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

How current are Treasury's national debt figures?

Debt to the Penny is updated at the end of each business day with the previous business day's data. Its latest observation is a daily accounting figure, not a continuously updated debt counter.

Are Treasury's release dates guaranteed?

Treasury describes its release calendar as estimated dates and times for upcoming releases. Use it to plan a refresh, then check whether the expected reporting period has actually appeared.

Can I reuse Fiscal Data in a commercial report or application?

Yes. Treasury explicitly permits copying, adapting, redistributing, and otherwise using the data for commercial and noncommercial purposes.

Can Fiscal Data tell me someone's tax refund or payment status?

No. Fiscal Data publishes government data and explicitly says it has no access to personal data or the ability to resolve personal inquiries.

Why might a calculated spending total disagree with a Treasury statement?

Monthly Treasury Statement tables include total and subtotal rows, so summing every row can double-count amounts. Daily Treasury Statement figures also have a specific precision limit: they are rounded to the nearest million.

Get started

Start using Treasury Fiscal Data published reports in Windsurf

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

Paste this into Windsurf:

Set up Windsurf

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