Skip to main content
Glama

ExchangeRebel — pay-per-call APIs for AI agents (x402 on Solana)

rates_spreads

$0.02 USDC on Solana per call — One $0.02 call returns the spreads, in percentage points, between two tenors (2s10s, 3m10y, 2s30s, 5s30s, 10s30s, 3m2y) for the requested date in the snapshot range 1990-01-02–2026-10-09; a spread is null when either tenor was not published that day. Data vintage: a fixed historical snapshot of the Daily Treasury Par Yield Curve Rates — business days 1990-01-02 through 2026-10-09, collected October 2026 from the official U.S. Department of the Treasury feed (fiscaldata.treasury.gov / home.treasury.gov), whose terms offer the data free, without restriction, for commercial redistribution. Dates after 2026-10-09 are not covered by this snapshot.

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

Input Schema

NameRequiredDescriptionDefault
dateNoBusiness day YYYY-MM-DD within 1990-01-02..2026-10-09. Default: latest date in the snapshot (2026-10-09).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the price per call, that the data is a frozen historical snapshot collected October 2026, the exact covered range, the source feed, and the null-value rule for unpublished tenors — substantial behavior context. It does not say whether an out-of-range or invalid date still incurs the $0.02 charge, which matters for a paid call flagged readOnlyHint=false and idempotentHint=false.

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 price and purpose are correctly front-loaded, but the body is a dense run-on string packing range, null rule, vintage, provenance, and licensing into one sentence. Some of that (the licensing boilerplate about commercial redistribution) could be compressed or moved without losing invocation-critical information.

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?

With one optional parameter, full schema coverage, and no output schema, the description supplies enough to call correctly: covered date range, default behavior, the tenors returned, units, and null semantics. The main residual gap is billing behavior on invalid or out-of-range dates.

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% and the single date parameter already documents the format, range, and default, so the schema carries the burden. The description reinforces the range boundary and explains the returned quantity in percentage points, but adds little parameter-specific meaning the schema lacks.

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 description states a specific verb and resource ('returns the spreads... between two tenors') and enumerates the exact tenor pairs (2s10s, 3m10y, 2s30s, 5s30s, 10s30s, 3m2y), which an agent can distinguish from a raw yield-curve fetch. It does not, however, name or contrast the siblings that are closest (rates_curve, rates_history), so the differentiation is implicit.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no pointer to the alternative tools for raw yields versus derived spreads. The only usage-adjacent statement is that spreads are null when a tenor was unpublished, which is a data rule rather than invocation guidance.

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