Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

get_roll_yield

Read-onlyIdempotent

Compute roll yield for any two futures contracts on a given trading day. Specify date, variety, and contract symbols; optionally provide price data to speed up calculation.

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
Behavior4/5

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

Annotations already declare read-only and non-destructive behavior. The description adds valuable context about the df parameter: it fetches data from dailyBar internally if df is None, and passing df speeds up computation. This discloses internal data fetching and performance implications, which goes beyond the annotations.

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?

The description is concise and well-structured: a short purpose statement followed by a clean parameter list. Each line is necessary and front-loaded with the core functionality. No wasted words.

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?

While the description explains inputs and purpose well, it does not mention what the function returns (e.g., a scalar, tuple, or DataFrame). With no output schema, this is a notable gap. However, given the tool's relative simplicity and strong annotations, it remains adequately complete for basic usage.

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?

Schema description coverage is 0%, so the description fully compensates by explaining every parameter: date format (YYYYMMDD), var examples (RB, AL), symbol examples (rb1810, rb1812), and df's role and optionality. This is detailed and actionable, far exceeding baseline.

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 computes roll yield for a specified trading day, either for a specified variety using main/second main contracts or for any two given contracts. This is specific and distinguishes it from siblings like get_roll_yield_bar which likely returns a time series. The purpose is unambiguous.

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 description provides no guidance on when to use this tool versus alternatives. It does not mention exclusions, prerequisites, or use cases. The only contextual hint is the performance note about passing df, which does not address tool selection.

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/kevynf/akbridge'

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