Skip to main content
Glama

株主優待 MCP (Yutai MCP)

calc_max_gyakuhibu

Read-onlyIdempotent

貸借値段と適用条件から最高逆日歩(上限額)を計算する。株式等とETF等は別表を使用する。株価だけを入力した場合は株式・100株単位・権利付き最終日・規制なし・1日分として計算する。通常時の日額が必要な場合はrightsPeriod="none"を指定する。フラグは計算対象日に倍率が適用される状態を指定する。貸借値段の代わりに市場株価を入力した場合は試算。返す金額は1株(ETF等は1口)あたり。実際に発生する逆日歩の予測値ではない。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "price": "<price>"
    },
    "name": "calc_max_gyakuhibu"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceYes貸借値段(円)。市場株価を使う場合は試算
rateTableNostock:株式等(REIT等を含む)、etf:ETF等。省略時stock
isRegulatedNo注意喚起・申込制限・申込停止のいずれかの倍率適用期間中。省略時false
lendingDaysNo品貸日数。省略時1。calc_datesのnegativeInterestDaysを指定できる
tradingUnitNo取引所の売買単位。注文株数とは別。stockは省略時100、etfは指定必須
rightsPeriodNonone:権利日による倍率なし、beforeExRights:権利落日6〜2営業日前、lastCumRights:権利落日の前営業日。省略時lastCumRights(4倍)
temporaryMultiplierNo臨時措置で指定された通常時基準に対する倍率。指定可能な値は4または10。他の倍率とは掛け合わせない

Output Schema

NameRequiredDescriptionDefault
multiplierYes適用倍率
dailyYenPerShareYes適用後の最高料率(円/株/日。ETF等は円/口/日)
totalYenPerShareYes品貸日数分の最高料率(円/株。ETF等は円/口)
baseDailyYenPerShareYes通常時の最高料率(倍率適用前、円/株/日。ETF等は円/口/日)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds meaningful context beyond them: the returned amount is per 1 share (or per ETF unit) and is not a forecast of actually occurring 逆日歩, plus it explains the default assumptions when only price is provided.

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 purpose is front-loaded in the first sentence, followed by compact sentences covering defaults, unit basis, and caveats. It is dense but every sentence carries relevant information.

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

Completeness4/5

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

For a 7-parameter calculation tool with an output schema and rich annotations, the description supplies the key default semantics, unit basis, and expectation caveat. Formula details are omitted, but they are not necessary for correct invocation.

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 100%, so the baseline is 3. The description adds synthesized meaning by stating the full default combination used when only price is supplied and by clarifying that flags specify whether a multiplier applies on the calculation target date.

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 and resource: calculate the maximum 逆日歩 from 貸借値段 and conditions, with separate tables for stocks and ETFs. It is clear what the tool computes, but it does not distinguish this purpose from sibling tools such as estimate_cross_fee or calc_dates.

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?

Usage context is implied through input-dependent behavior: price-only input assumes stock/100-share/lastCumRights/no regulation/1 day, and rightsPeriod="none" is recommended when a normal daily amount is needed. However, it never states when to use this tool versus the sibling tools or when not to use it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources