Skip to main content
Glama

Get Treasury rate history

get_treasury_rate_history
Read-onlyIdempotent

Get a history of U.S. Treasury yields between two dates: the nominal curve (par yield, zero rate and forward rate at each maturity), the short-end money-market curve, or the TIPS real curve, one row per trading day. Use this for 'how have rates moved' questions. Coverage starts 2008-09-02. Keep ranges tight — a decade is thousands of rows.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "get_treasury_rate_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd date, YYYY-MM-DD.
fromYesStart date, YYYY-MM-DD. Not before 2008-09-02.
curveNoWhich curve. Defaults to "zero", the nominal curve, whose rows carry par_yield, zero_rate and forward_rate. "money_market" covers below one year; "real" is TIPS and its yields sit above inflation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / curve / description
      Previous value: -"Which curve. Defaults to \"zero\" (nominal spot). \"money_market\" covers below one year; \"real\" is TIPS and its yields sit above inflation."New value: +"Which curve. Defaults to \"zero\", the nominal curve, whose rows carry par_yield, zero_rate and forward_rate. \"money_market\" covers below one year; \"real\" is TIPS and its yields sit above inflation."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, non-destructive, and closed-world behavior. The description adds useful behavioral context beyond that: coverage starts 2008-09-02, output is one row per trading day, and long ranges produce thousands of rows.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three tight sentences, front-loaded with the core action and followed by usage guidance and a practical range warning. Every sentence contributes useful information without repetition.

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 no output schema, the description does a good job explaining output granularity, curve variants, coverage start, and range-size implications. It is largely complete for calling the tool correctly, though it does not detail return-field structure or pagination behavior.

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 baseline is 3; the schema already documents from, to, and curve including the enum meanings. The description reinforces curve composition and date coverage, but does not add much parameter-level meaning beyond what the schema supplies.

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: retrieve historical U.S. Treasury yields between two dates, with detail on nominal, money-market, and TIPS real curves. It is clear what the tool returns, but it does not explicitly distinguish itself from the sibling get_treasury_curve tool by name or behavior.

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 gives a clear usage cue with "Use this for 'how have rates moved' questions" and warns to keep ranges tight because a decade is thousands of rows. It does not state when not to use it or name a preferred alternative for current-curve queries.

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.