Skip to main content
Glama

Horizon Pulse

Treasury Debt Payment Quote

treasury_debt_quote
Read-onlyIdempotent

Returns the payment terms for https://horizonpulse.dev/api/treasury/debt (base $0.01; USDC on Base or Polygon); this tool never runs the check or pays. Pay the 402 over HTTP with x402 v2: GET with no parameters. U.S. Treasury debt to the penny: total, held by the public, and intragovernmental, with the 1-day, 30-day and 1-year change, plus the Daily Treasury Statement Treasury General Account (TGA) operating-cash balance and its daily change. No parameters. Source: api.fiscaldata.treasury.gov. debtUsd is USD. cashUsdMillions is millions of USD. Not a forecast. USDC on Base or Polygon. On USDC on Base, errors are not charged, apart from the exceptions noted on a route. On USDC on Solana, and RLUSD on the XRP Ledger, a refused or failed request may still be charged. On Polygon (native USDC), a request is settled only when it succeeds (HTTP status below 400), apart from the exceptions noted on a route. Calls that fail on Polygon are not charged.

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": "treasury_debt_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, and the description adds genuinely new context: the $0.01 base price, the accepted payment rails, and per-chain charging semantics for failed or refused requests. That settlement/charge asymmetry (Base vs Polygon vs Solana/XRPL) is real behavioral detail an agent cannot get from structured fields. It is somewhat repetitive and the rail list drifts (Solana/RLUSD mentioned though Base/Polygon were declared as the rails), costing it a point.

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

Conciseness3/5

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

The purpose and price are front-loaded well, but the text repeats itself: 'USDC on Base or Polygon' and 'No parameters' each appear twice, and the final three sentences re-explain charging policy with overlapping wording. It is informative but noticeably padded for a zero-parameter quote tool.

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

Completeness4/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 describing the payload (total, public, intragovernmental debt, 1-day/30-day/1-year changes, TGA balance) plus units is the right compensation and makes the tool callable with correct expectations. Source attribution and the 'not a forecast' caveat round it out; only the exact 402/x402 handshake format is left implicit.

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?

With zero parameters and 100% schema coverage, the baseline is 4, and the description is consistent with that, twice confirming 'no parameters' and that the request is a GET. It also adds unit semantics for the returned values (debtUsd in USD, cashUsdMillions in millions), which is meaning beyond the empty input schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states the specific verb and resource: it returns x402 payment terms for the treasury/debt endpoint and explicitly does not run the check or pay. The data it covers (U.S. Treasury debt totals plus TGA balance) distinguishes it from siblings like treasury_auctions_quote and treasury_yield_curve_quote. The long payload listing slightly blurs whether the tool returns the data or only the payment terms, keeping it out of 5 territory.

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

Usage Guidelines3/5

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

It implies usage by stating 'Pay the 402 over HTTP with x402 v2: GET with no parameters' and that the tool never executes the payment, so the agent can infer this is a pre-payment quote step. However, it never explicitly says when to choose this over a sibling like `http` or over calling the endpoint directly, and gives no exclusions or prerequisites for the payable flow.

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.