Skip to main content
Glama
bitbank-lab-mcp

bitbank-lab-mcp

Official
by bitbankinc

analyze_ema_snapshot

Calculates current EMA values, alignment, crossovers, and slope for a crypto pair and timeframe to assess trend direction and momentum from snapshot data.

Instructions

[EMA / Exponential Moving Average] EMA(exponential moving average / trend / slope)の最新値・整列・クロス・傾きを返す(既定: 12/26/50/200)。

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

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_ema_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairNobtc_jpy
typeNo1day
limitNo
periodsNoEMA の周期(本数、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: +"EMA の周期(本数、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.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the most important behavioral constraint — "⚠️ 最新値のみ" (latest value only, no history) — which prevents misuse. It says nothing about the response shape, the presence of a warnings field, auth/rate-limit needs, or what happens when the candle count is below a period (that detail lives only in the periods schema).

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?

Two compact lines, front-loaded with the bracketed indicator tag and outputs, then the warning and the alternative. The bilingual restatement (EMA / Exponential Moving Average / トレンド / slope) is slightly redundant but cheap, and nothing is padded.

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 four-parameter read-only snapshot tool with no output schema and no annotations, the description covers what is returned and the key limitation (latest only), which is the minimum an agent needs. It still leaves the response structure (how alignment/cross/slope are represented, warnings) and the pair/timeframe parameters undefined.

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% (only periods is documented), so the description needs to compensate and largely does not. It restates the default periods 12/26/50/200, which the schema already supplies as a default, and says nothing about pair or type (timeframe) semantics or valid usage. The one genuinely added nuance, null results when candles < period, is placed in the schema, not 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 first line names a specific resource (EMA) and enumerates the exact outputs: latest value, alignment (整列), cross (クロス), slope (傾き), with the default periods spelled out. It also names the sibling it is not (prepare_chart_data for time-series charting), so an agent can distinguish it without opening any schema.

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

Usage Guidelines5/5

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

Explicit when-to-use and when-not-to-use are both present: use this for snapshot EMA readings, and route to prepare_chart_data with indicators: ["EMA_12","EMA_26"] when a time-series chart is needed. The exclusion is stated with a concrete alternative invocation, leaving nothing to inference.

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