Skip to main content
Glama

Treasury Par Yield Curve

treasury_par_yield_curve
Read-onlyIdempotent

The full US Treasury daily par yield curve (also called the Treasury yield curve) for ONE date, every published maturity from 1-month through 30-year in a single call. Sourced from the Federal Reserve Bank of St. Louis (FRED)'s DGS* constant-maturity series, matching the US Treasury's own daily par yield curve rates. Use this (not fred_get_series) whenever the question wants more than one maturity at once: "treasury yield curve", "par yield curve", "full yield curve today/on ", "treasury rates across maturities". Pass date (YYYY-MM-DD) for a specific day; if that date has no published rate (a weekend or federal holiday), the curve as of the nearest PRIOR business day is returned instead, and the response says so (used_prior_business_day_fallback). Omit date for the most recently published curve. For a single maturity's own history over time, use fred_get_series with the matching DGS series id instead (e.g. DGS10 for the 10-year).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "date": "2024-07-01"
    },
    "name": "treasury_par_yield_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe date to get the par yield curve for, YYYY-MM-DD. Omit for the most recently published curve. If the date falls on a weekend or federal holiday (no published rate), the nearest PRIOR business day's curve is returned instead.
_apiKeyYesFRED API key

Output Schema

NameRequiredDescriptionDefault
noteNoPresent only when one or more maturities had no published rate as of date_used.
curveYesMaturity key -> percent (null if that maturity has no observation for date_used). Keys: 1mo, 3mo, 6mo, 1yr, 2yr, 3yr, 5yr, 7yr, 10yr, 20yr, 30yr.
sourceYesPublisher and dataset, Federal Reserve Bank of St. Louis (FRED), US Treasury daily par yield curve rates.
date_usedYesThe actual trading date the curve is as of (may differ from requested_date on a weekend/holiday).
statementYesHuman-readable summary of the curve, naming the date used and every maturity.
data_as_ofYesSame as date_used, the freshness date of this curve.
maturitiesYesOne entry per maturity, with the underlying FRED series id.
requested_dateYesThe `date` argument as passed, or null if omitted.
used_prior_business_day_fallbackYesTrue when requested_date had no published rate and the nearest prior business day was used instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / data_as_of / description
      Previous value: -"Same as date_used — the freshness date of this curve."New value: +"Same as date_used, the freshness date of this curve."
    • changedOutput schema / properties / source / description
      Previous value: -"Publisher and dataset — Federal Reserve Bank of St. Louis (FRED), US Treasury daily par yield curve rates."New value: +"Publisher and dataset, Federal Reserve Bank of St. Louis (FRED), US Treasury daily par yield curve rates."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, and the description adds real behavioral context on top: the data source (FRED DGS* constant-maturity series), the weekend/holiday fallback to the nearest PRIOR business day, and the exact response flag `used_prior_business_day_fallback` that signals it. This is material information an agent cannot get from annotations.

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?

Scope, source, and the sibling exclusion are front-loaded, and the query-phrase examples help an agent match user intent. It is somewhat long and repeats the prior-business-day fallback already stated in the schema, but no sentence is filler.

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?

An output schema exists, so return values needn't be explained, and the description still names the one response field an agent must interpret. For a two-parameter, single-date fetch tool the definition covers source, scope, fallback semantics, and routing completely.

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 `date` parameter's format, the omit-for-latest behavior, and the fallback rule are already documented in the schema. The description restates these rather than adding new meaning (no guidance on key requirements or date-range limits beyond what the schema says). Baseline 3 applies.

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 uses a specific verb+resource framing ('full US Treasury daily par yield curve ... for ONE date, every published maturity from 1-month through 30-year') and explicitly names the sibling it is not (fred_get_series). An agent can distinguish the curve tool from the single-series tool without opening either schema.

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

Usage Guidelines5/5

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

It gives both sides of the routing decision: use this tool when the question wants more than one maturity at once (with concrete phrasings like 'par yield curve' or 'full yield curve today'), and use fred_get_series with a DGS id when only one maturity's history is wanted. Exclusions and alternatives are explicit.

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.