Skip to main content
Glama

Official Records Hub: Company, Sanctions & Financial Checks (UK, US & Global)

us_treasury_rates

Read-onlyIdempotent

Pay-per-call US Treasury data for AI agents. Get the official daily par yield curve (1 month to 30 years) for the latest day or a date you choose, the change from the previous day, labelled spreads (10y-2y, 10y-3m) and inversion flag, plus total US public debt (Debt to the Penny). Official U.S. Treasury data, public domain. Errors never charged. Use this when the user asks about US Treasury yields, the yield curve, bond rates, spreads or inversion, or the US national debt. Not for: mortgage or loan quotes, forecasts or investment advice; exchange rates (use exchange_rates). Price: $0.01 USDC per call (x402).

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

Input Schema

NameRequiredDescriptionDefault
dateNoA past date, YYYY-MM-DD (default: latest published day). Example: 2026-11-27

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses commercial traits an agent needs: $0.01 USDC per call via x402, errors never charged, and official public-domain sourcing. It also characterizes the payload (previous-day change, spreads, inversion flag), which the annotations cannot convey.

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 content is dense but front-loaded: the payload is described first, then usage routing, then exclusions, then pricing. Minor redundancy exists in repeating official/public-domain Treasury sourcing, but no sentence is 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?

For a one-optional-parameter tool with no output schema, the description covers inputs, defaults, return contents, cost, error billing, and appropriate/inappropriate use. An agent has everything needed to decide and call correctly.

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

Parameters3/5

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

Schema coverage is 100%, with the date parameter's format, default, and an example already documented in the schema. The description only restates that you may supply a date or take the latest published day, adding little beyond the structured field, so the baseline of 3 applies.

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 and enumerates what is returned: the daily par yield curve from 1 month to 30 years, day-over-day change, labelled spreads (10y-2y, 10y-3m), an inversion flag, and Debt to the Penny totals. It also explicitly separates itself from the sibling exchange_rates tool, so an agent can route without opening either schema.

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

Usage Guidelines5/5

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

It gives explicit positive triggers (US Treasury yields, yield curve, bond rates, spreads or inversion, national debt) and negative ones (mortgage or loan quotes, forecasts or investment advice), and names the alternative for exchange rates. Both when-to-use and when-not-to-use are stated rather than implied.

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