Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

get_roll_yield

Read-onlyIdempotent

Calculate roll yield for a given trading date and futures variety (main and sub-main) or any two contracts.

Instructions

指定交易日指定品种(主力和次主力)或任意两个合约的展期收益率 Parameters

date: string 某一天日期 format: YYYYMMDD var: string 合约品种如 RB、AL 等 symbol1: string 合约 1 如 rb1810 symbol2: string 合约 2 如 rb1812 df: DataFrame或None 从dailyBar得到合约价格,如果为空就在函数内部抓dailyBar,直接喂给数据可以让计算加快

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dfNo
varNoBB
dateNo
symbol1No
symbol2No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so the safety profile is covered. The description adds real behavioral context beyond them: the df parameter is optional, data is fetched from dailyBar internally when df is null, and pre-feeding data speeds up computation. Return format and rate limits are still unstated, keeping it short of a 5.

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?

Front-loaded purpose sentence followed by a clean parameter list; there is little waste. Slightly awkward that the parameters block is embedded in the description rather than the schema, but the structure itself is efficient and readable.

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 5-param tool with no output schema, the description covers purpose and each parameter, which is reasonable. It is incomplete on the return value and, more importantly, on how it differs from the sibling get_roll_yield_bar, which an agent needs to select correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden and largely does so, documenting all five parameters with types, formats (date as YYYYMMDD), and examples (variety RB/AL, contracts rb1810/rb1812). Minor gaps remain: it doesn't reconcile the schema default var='BB' with its own RB/AL examples, and symbol1/symbol2 vs. variety-selection interplay is only loosely defined.

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 gives a specific verb+resource: computing the 展期收益率 (roll yield) for a specified trading date and variety (main + secondary main) or for any two contracts. It is clear what the tool returns, but it never differentiates itself from the near-identical sibling get_roll_yield_bar, so an agent cannot route between them from the text alone.

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?

It implies the two invocation modes (by variety with 主力和次主力, or by an explicit pair symbol1/symbol2), which is useful usage context. However it names no alternative tool and gives no when-not-to-use guidance, leaving the choice against get_roll_yield_bar to inference.

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