Skip to main content
Glama
Leviai-ai

publicfinance

by Leviai-ai

treasury_rates

Retrieve US Treasury interest rates including yield curve, bill rates, and long-term rates. No API key required.

Instructions

Get US Treasury interest rates including yield curve, bill rates, and long-term rates. No API key required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoYear to query (default: current year)
monthNoSpecific month (1-12) to narrow results
rate_typeNoType of rate data (default: yield_curve)
Behavior2/5

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

With no annotations, the description carries full burden. It mentions 'No API key required' but fails to disclose other behavioral traits such as rate limits, data freshness, error handling, or response structure. The tool is read-only, but this is not explicitly stated.

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?

Two sentences, front-loaded with the primary action and resource. No unnecessary words. Each sentence adds value: purpose and a key benefit (no API key).

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 tool with no output schema and three optional parameters, the description provides an adequate overview but lacks details on response format, date range limitations, or possible rate_type combinations. It is sufficient for a simple GET tool but could be more informative.

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 baseline is 3. The description adds context by listing example rate types (yield curve, bill rates, long-term rates) that map to the rate_type enum, and notes that no API key is needed, which simplifies usage. However, it does not explain the year and month parameters beyond the schema.

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 clearly states the tool retrieves US Treasury interest rates and specifies the types (yield curve, bill rates, long-term rates). This distinguishes it from sibling tools like economic_overview, which covers broader economic data.

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?

No guidance on when to use this tool versus alternatives. It does not specify prerequisites, exclusions, or compare with siblings such as economic_overview, which might be more appropriate for general economic data.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Leviai-ai/publicfinance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server