Skip to main content
Glama

treasury_yields

U.S. Treasury yield curve: every tenor from 1 month to 30 years for the latest day or any date since 1990, with the 2s10s spread. Paid via x402 ($0.001 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).

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

Input Schema

NameRequiredDescriptionDefault
dateNoOptional date YYYY-MM-DD (since 1990-01-02). Default: latest business day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it discloses the x402 payment model, price, accepted networks, per-call charging, free-trial quota, header/automatic trial behavior, and that invalid input is rejected without payment. It also mentions returned metadata (asOf and source), which helps the agent understand the response.

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 first sentence front-loads the dataset, coverage, and included spread, while later sentences cover payment and trial rules without filler. The nested payment-network parenthetical is dense, but every clause conveys operationally relevant information.

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 retrieval tool with no annotations or output schema, the description covers purpose, date scope, returned spread and metadata, payment mechanics, and trial limits. Nothing material is missing for an agent to invoke it 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%, so the date parameter's format, default, and lower bound are already documented in the input schema. The description adds little beyond that and slightly differs by saying "latest day" while the schema says "latest business day," so the baseline 3 is appropriate.

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 opening sentence names the exact resource (U.S. Treasury yield curve), maturity coverage (1 month to 30 years), date scope (latest day or since 1990), and the included 2s10s spread. An agent can identify the dataset and its output scope immediately.

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?

The description explains that the tool returns the latest day by default or a historical date since 1990, giving clear context for when to supply the optional date. It does not name an alternative sibling, but no comparable Treasury-yield tool appears in the provided sibling list, so this is a minor omission.

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