Skip to main content
Glama

Lookup Kit

treasury_yields

Read-only

Treasury yields, US yield curve and interest rates. Daily US Treasury par yield curve rates (1 month to 30 years) from the US Treasury, for the latest business day or a given date (YYYY-MM-DD), with the 10y-2y spread. Public US government data. Price: $0.002 per call (x402, USDC on Base).

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
dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered; the description goes beyond them by disclosing the data provenance (public US government data) and, crucially, a paid invocation model ($0.002 per call via x402/USDC on Base) that the agent must know before calling. It also reveals returned content beyond the single parameter (full curve plus 10y-2y spread). It omits edge-case behavior such as what happens for a date that is not a business day or an out-of-range date.

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?

Four short sentences, front-loaded with the resource and scope, followed by source, price and format. The opening phrase 'Treasury yields, US yield curve and interest rates' is partly keyword restatement of what follows, but the rest is dense with distinct facts and nothing is padded.

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 read tool with no output schema, the description supplies everything needed: what data comes back (1mo–30y par yields plus the 10y-2y spread), the default behavior, the date format, provenance and the cost of the call. There is no meaningful gap left for an agent before invoking it.

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

Parameters5/5

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

Schema description coverage is 0% and the single `date` property carries only a regex pattern, so the description must carry the semantics — and it does, specifying the accepted format YYYY-MM-DD and, more importantly, that omitting it yields the latest business day. That is meaning the schema cannot express.

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 exact resource (daily US Treasury par yield curve rates, 1 month to 30 years, sourced from the US Treasury), the granularity (daily), the scope (latest business day or a specific date) and an extra derived value (the 10y-2y spread). No sibling in the catalog serves treasury data, and an agent can tell this apart from calculators like compound_interest or currency_convert purely from this text.

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 the two invocation modes: omit the date for the latest business day, or supply a specific date in YYYY-MM-DD. That resolves the main usage decision an agent faces (default vs explicit date). It gives no when-not-to-use guidance and no alternative tools, which is the only gap.

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