Skip to main content
Glama
bitbankinc

bitbank-lab-mcp

Official
by bitbankinc

prepare_depth_data

Generate order book depth data with cumulative volumes for charting. Returns bids, asks, mid, spread, and volume bands for visualization.

Instructions

[Depth Chart / Order Book / Visualization] 板の深度チャート描画の第一選択ツール。

getDepth(/depth API)を呼び出し、累積 volume の階段配列 ([price, cumulativeVolume][]) として返す。 Claude.ai の Visualizer 等クライアント側で描画可能な場合はこのツールを優先。 ファイル保存(SVG/PNG)が必要な場合は render_depth_svg を使用。

レスポンス形式: { bids: [[price, cumVolume], ...], asks: [[price, cumVolume], ...], bestBid, bestAsk, mid, spread, spreadPct, totalBidVolume, totalAskVolume, band: {pct, bidVolume, askVolume, ratio}, timestamp, isoTime }

  • bids は価格降順、asks は価格昇順

  • band は mid を中心とした ±bandPct 範囲の買い/売り量と比率(ratio = bidVolume / askVolume)

  • JPY ペアの価格は整数に丸め済み

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairNobtc_jpy
levelsNo取得する最大レベル数(片側)。10〜1000 の整数、デフォルト 200
bandPctNomid を中心とした ±range 比率。0.01 = ±1%。デフォルト 0.01
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the API call, the cumulative volume calculation, sorting order for bids/asks, band calculation, and JPY rounding—concrete behavioral specifics beyond a generic statement. Minor omission: no mention of rate limits or auth, but not expected for a data-prep 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?

The description is somewhat long but well-organized: purpose, usage, and response format are clearly sectioned. Front-loads the key usage guidance. A few redundant phrases could be trimmed, but the structure aids quick comprehension.

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

Completeness5/5

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

Given no output schema, the description compensates by fully detailing the response structure including field names, ordering, band definition, and rounding behavior. An agent has all information needed to call the tool and parse its output correctly.

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

Parameters3/5

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

Schema covers 67% of parameters with descriptions (levels, bandPct), and the description adds implicit context (JPY rounding, band ratio). However, it does not elaborate on 'pair' beyond the default, and the schema already documents bounds and defaults. The description contributes minimal additional parameter meaning.

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 states a specific purpose: prep depth data for visualization, naming the underlying API (getDepth) and the output format. It distinguishes itself from render_depth_svg and get_orderbook via explicit use-case statements.

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?

Explicitly marks itself as the first-choice tool for depth chart drawing and directs to render_depth_svg when file saving (SVG/PNG) is needed. No ambiguity remains about when to select this tool.

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/bitbankinc/bitbank-lab-mcp'

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