Skip to main content
Glama
Financial Modeling Prep MCP Server

Financial Modeling Prep MCP Server

getTreasuryRates

Read-onlyIdempotent

Retrieve real-time and historical Treasury rates for all maturities, with optional date filtering, to track interest-rate benchmarks and support financial analysis.

Instructions

Access real-time and historical Treasury rates for all maturities with the FMP Treasury Rates API. Track key benchmarks for interest rates across the economy.

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

Input Schema

NameRequiredDescriptionDefault
toNoOptional end date (YYYY-MM-DD)
from_dateNoOptional start date (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.9.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changedv2.6.10
    • removedInput schema / properties / from
      Removed value: -{
      -  "description": "Optional start date (YYYY-MM-DD)",
      -  "type": "string"
      -}
    • addedInput schema / properties / from_date
      Added value: +{
      +  "description": "Optional start date (YYYY-MM-DD)",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description's useful additions are that it returns both real-time and historical data across all maturities, but it says nothing about default date behavior when 'from_date'/'to' are omitted, rate limits, or freshness of 'real-time' data — meaningful gaps for a time-series endpoint.

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?

Two sentences, front-loaded with the resource and data scope. The second sentence is pure promotional filler that conveys no callable information, so the text is not fully earning its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple, fully read-only tool with two optional date params and no output schema, the definition covers the essentials of what the tool returns conceptually. It is missing the default-date behavior and a hint at the response shape (maturity buckets, date series), which an agent would need to call it confidently without arguments.

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% and both parameters are optional with format hints (YYYY-MM-DD), so schema handles the mechanics. The description adds no meaning beyond that — it never explains what happens with no dates, whether a range is inclusive of 'to', or what 'maturities' the response covers; baseline 3 applies.

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?

States a specific resource ('Treasury rates') with scope qualifiers ('real-time and historical', 'all maturities'), which is enough for an agent to distinguish it from siblings like getEconomicIndicators or getIndexQuotes. It stops short of explicitly naming a sibling, so it is clear but not fully differentiated.

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?

The only usage signal is the vague marketing line 'Track key benchmarks for interest rates across the economy', which is not a when-to-use rule. There is no mention of when to prefer this over getEconomicIndicators, getMarketRiskPremium, or index chart tools, and no prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools