Skip to main content
Glama
jarvislee90s-dot

local-datasource

query_global_rates

Fetch global rates data for backtesting and save it as a CSV file. Supports US Treasury yields, Fed funds, dollar index, and VIX.

Instructions

Query global rates for backtesting. Output is written to file_path as CSV. kind=us_treasury: 美债收益率(2/5/10/30Y 及 10Y-2Y 利差,1990 起;tenure 选期限,短端期限仅近 1000 交易日). kind=fed_rate: 美联储 EFFR 日频有效联邦基金利率(纽约联储 API,2000-07 起). kind=dxy: 美元指数(东财失败自动回退 Yahoo). kind=vix: VIX 波动率指数(CBOE 直连,1990 起).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesQuery type
tenureNoTreasury tenure (us_treasury only, default all)
end_dateNoEnd date YYYY-MM-DD
file_pathYesOutput CSV file path
start_dateNoStart date YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses output to CSV, data sources (New York Fed, CBOE, etc.), fallback behavior (东财失败自动回退 Yahoo), and constraints (短端期限仅近 1000 交易日), providing rich behavioral transparency.

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?

The description is compact but dense, with each kind explained in a structured manner. It is slightly verbose due to the level of detail, but every sentence carries useful information, so it remains efficient.

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?

The description covers all kinds, data sources, fallback logic, date ranges, and tenure constraints. It also mentions the output format (CSV). For a tool with this complexity, the description is complete and leaves no critical gaps for an agent to configure calls correctly.

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?

The description adds significant meaning beyond the schema. It explains each kind's data content, start dates, tenure options, and specific constraints (e.g., short-end tenures limited to ~1000 trading days). This goes well beyond the schema's basic field descriptions.

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's purpose: 'Query global rates for backtesting.' It specifies the resource (global rates) and the action (query), and the breakdown by kind (us_treasury, fed_rate, dxy, vix) distinguishes it from sibling tools like query_bond or query_fx.

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

Usage Guidelines3/5

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

The description implies usage for backtesting and details data sources and constraints, but it does not explicitly contrast with alternative tools or state when not to use this tool. The guidance is implied rather than explicit.

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

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/jarvislee90s-dot/local-datasource'

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