Skip to main content
Glama

ScorpTech x402 Tools

Treasury Rates

treasury_rates
Read-onlyIdempotent

US Treasury rates: the daily par yield curve (1M-30Y, from treasury.gov) with day-over-day change in bp, 2s10s spread and 3m10y inversion flag, optional TIPS real yield curve, plus Debt to the Penny (total public debt, debt held by the public, intragovernmental holdings) from the Fiscal Data API. Latest by default or as of a past date. Returns JSON with: parYieldCurve, debtToThePenny. Price: $0.01 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/treasury-rates

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_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoAs-of date YYYY-MM-DD (latest published on or before it); default latest
debtNoInclude Debt to the Penny (default true)
curveNonominal (default), real, both or none

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish read-only, open-world, idempotent, non-destructive behavior. The description adds important context beyond that: the data sources, exact returned JSON fields, per-call pricing, and an equivalent HTTPS endpoint.

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 description is dense but front-loaded, starting with what data is returned and then adding defaults, output fields, price, and endpoint. Every sentence carries useful information, though the pricing and HTTPS details could be seen as secondary for a tool-selection decision.

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?

Given the tool's complexity, the definition is complete: it describes the data domains, default behavior, return fields, payment model, and alternate access path. With annotations covering safety and schema covering all parameters, no material calling information is missing.

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 description coverage is 100%, so the schema already documents the date, debt, and curve parameters fully. The description reinforces concepts like latest-by-default and optional TIPS real yields but does not add parameter syntax or format details beyond what the schema provides.

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 the specific resource (US Treasury rates), enumerates the exact data included (par yield curve, spreads, TIPS curve, Debt to the Penny), and states the default and historical modes. An agent can immediately tell this is a read-only market-data retrieval tool rather than any arithmetic sibling.

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 clearly states that latest is the default and a past date can be supplied, and it notes optional real yields and debt inclusion. It does not name an alternative tool or when not to use this one, but for a self-contained data endpoint the usage context is sufficiently clear.

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