Skip to main content
Glama
bitbank-lab-mcp

bitbank-lab-mcp

Official
by bitbankinc

analyze_sma_snapshot

Calculate SMA snapshot values for a crypto pair, detect golden/dead crosses, and report bullish, bearish, or mixed alignment using configurable periods.

Instructions

[SMA / Moving Average / Golden Cross] SMA(simple moving average / golden cross / dead cross)の数値スナップショット。最新値・クロス検出・整列状態(bullish/bearish/mixed)。periods は任意の周期を指定できる(既定: 25/75/200)。

⚠️ 最新値のみ。時系列チャート描画 → prepare_chart_data(indicators: ["SMA_25","SMA_75"] 等)。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_sma_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairNobtc_jpy
typeNo1day
limitNo
periodsNoSMA の周期(本数、1〜365)。どの周期も取得した足から計算する。足が周期より少ないと値は null になり warnings に出る。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.7.0
    • addedInput schema / properties / periods / description
      Added value: +"SMA の周期(本数、1〜365)。どの周期も取得した足から計算する。足が周期より少ないと値は null になり warnings に出る。"
    • addedInput schema / properties / periods / items / exclusiveMinimum
      Added value: +0
    • changedInput schema / properties / periods / items / maximum
      Previous value: -9007199254740991New value: +365
    • removedInput schema / properties / periods / items / minimum
      Removed value: --9007199254740991
  2. Changed1 schema field changedv0.4.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important behavior: this returns only the newest snapshot, not a series, and it reports cross and alignment states. It does not state the read-only nature explicitly, nor anything about rate limits, error handling, or what warnings accompany nulls (that detail lives only in the schema). Adequate but not rich for an unannotated tool.

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?

Tight, front-loaded, and the warning line with the redirect to prepare_chart_data is placed at the end where a reader will see it. Minor waste in the redundant bilingual tag header (SMA / Moving Average / Golden Cross) and the parenthetical Japanese/English duplication of the same terms.

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 4-parameter tool with no annotations and no output schema, the description covers the return concept and the snapshot-only constraint well. What is missing: the meaning of pair/type/limit, how the returned object is shaped, and any note on the warnings field referenced by the schema. Callable, but the agent must guess at three of four parameters.

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

Parameters2/5

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

Schema description coverage is only 25%, so the description needs to compensate, and it largely does not. Its one parameter remark ('periods accepts arbitrary cycles, default 25/75/200') repeats what the schema already documents, while pair, type, and limit are left unexplained in both places. The agent gets no help on timeframe or candle-count choices from the description.

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 names a specific resource (SMA numerical snapshot) and enumerates exactly what it returns: latest value, cross detection (golden/dead cross), and alignment state (bullish/bearish/mixed). The bracketed tag line and the SMA-specific naming make it distinguishable from the EMA/Ichimoku/stochastic siblings without opening their schemas.

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

Usage Guidelines4/5

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

It gives an explicit when-not rule with a named alternative: 'latest values only' and, for time-series chart drawing, use prepare_chart_data with indicators like SMA_25/SMA_75. That is real routing guidance. It stops short of 5 because it says nothing about choosing this over analyze_mtf_sma, which the SMA prefix alone implies but does not clarify.

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