Skip to main content
Glama
bitbank-lab-mcp

bitbank-lab-mcp

Official
by bitbankinc

get_transactions

Fetch recent or date-specific crypto trade history, filter executions by price and amount, and return up to a set limit with clear truncation metadata.

Instructions

[Transactions / Trades] 市場の約定履歴(transactions / recent trades)を取得。直近60件 or 日付指定。金額・価格でフィルタ可能(フィルタは limit の前に適用され、条件に合致した約定を最大 limit 件返す)。

limit による切り捨てが起きた場合は meta(totalFetched / matched / returned / truncated / actualRange / fetchedRange)と warning で明示される。

制約(bitbank 側仕様): date 指定(YYYYMMDD)は UTC 暦日アーカイブで、当該 UTC 日の完了後(JST 09:00 以降)にのみ公開される。進行中の UTC 日を指定すると 404。当日分の約定は date 省略(latest, 直近約60件)でのみ取得可能。

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": "get_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYYMMDD。**UTC 暦日**として解釈します(bitbank の約定アーカイブ /transactions/{YYYYMMDD} が UTC 暦日単位のため)。get_candles / validate_candle_data の date が tz 引数の暦日(既定 Asia/Tokyo)である点と基準が異なります。当該 UTC 日の完了後(JST 09:00 以降)に公開されるため、進行中の UTC 日を指定すると 404。省略時は latest(直近約60件)。
pairNobtc_jpy
viewNoview は content の量を制御します。量は summary < detailed < full の順で、full は常にそのツールの最重量です。view が structuredContent から**フィールドを削ることはありません**(その view でしか計算しないデータを足すツールはあり、その場合は当該 view の説明に明記しています)。content[0].text は LLM への唯一のチャネルなので、軽い view は「短い表示」ではなく「LLM が明細を受け取らない」を意味します。 - full(既定): 返却した全約定を 1 行 1 件で列挙 + 件数サマリ + 切り捨て警告 + スコープフッタ。本ツールの最重量。full
limitNo返却件数の上限。フィルタ適用後の件数に対して効き、超過分は最新側を残して切り捨て(meta.truncated / warning で明示)
formatNocontent の形式。text(既定): 散文 / json: pretty JSON。json は機械可読性のために**トークンを払う**オプションで、同じデータでも text より必ず多くなります(削減オプションではありません)。量は format ではなく view と limit が決めます。text
maxPriceNo約定価格の上限(limit 適用前にフィルタ)
minPriceNo約定価格の下限(limit 適用前にフィルタ)
maxAmountNo約定数量の上限(limit 適用前にフィルタ)
minAmountNo約定数量の下限(limit 適用前にフィルタ)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.7.0
    • changedInput schema / properties / view / description
      Previous value: -"view は content の量を制御します。量は summary < detailed < full の順で、full は常にそのツールの最重量です。view が structuredContent から**フィールドを削ることはありません**(その view でしか計算しないデータを足すツールはあり、その場合は当該 view の説明に明記しています)。content[0].text は LLM への唯一のチャネルなので、軽い view は「短い表示」ではなく「LLM が明細を受け取らない」を意味します。\n- full(既定): 返却した全約定を 1 行 1 件で列挙 + 件数サマリ + 切り捨て警告 + スコープフッタ。本ツールの最重量。\n- summary: 非推奨。view=full を使うこと。0.4.0 で削除予定。旧既定値で、実体は full と同じ全件列挙(挙動は完全に不変で、名前だけを階梯に合わせた)。集計のみの軽量 summary は将来別リリースで opt-in 専用として新設予定。\n- items: 非推奨。view=full + format=json を使うこと。0.4.0 で削除予定。挙動は view=full + format=json と同じ(content は全件の pretty JSON のみで、件数サマリとスコープフッタは出ない)。"New value: +"view は content の量を制御します。量は summary < detailed < full の順で、full は常にそのツールの最重量です。view が structuredContent から**フィールドを削ることはありません**(その view でしか計算しないデータを足すツールはあり、その場合は当該 view の説明に明記しています)。content[0].text は LLM への唯一のチャネルなので、軽い view は「短い表示」ではなく「LLM が明細を受け取らない」を意味します。\n- full(既定): 返却した全約定を 1 行 1 件で列挙 + 件数サマリ + 切り捨て警告 + スコープフッタ。本ツールの最重量。"
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "full",
      -  "summary",
      -  "items"
      -]New value: +[
      +  "full"
      +]
  2. Changed7 schema fields changedv0.5.0
    • changedInput schema / properties / date / description
      Previous value: -"YYYYMMDD; omit for latest"New value: +"YYYYMMDD。**UTC 暦日**として解釈します(bitbank の約定アーカイブ /transactions/{YYYYMMDD} が UTC 暦日単位のため)。get_candles / validate_candle_data の date が tz 引数の暦日(既定 Asia/Tokyo)である点と基準が異なります。当該 UTC 日の完了後(JST 09:00 以降)に公開されるため、進行中の UTC 日を指定すると 404。省略時は latest(直近約60件)。"
    • addedInput schema / properties / limit / description
      Added value: +"返却件数の上限。フィルタ適用後の件数に対して効き、超過分は最新側を残して切り捨て(meta.truncated / warning で明示)"
    • addedInput schema / properties / maxAmount / description
      Added value: +"約定数量の上限(limit 適用前にフィルタ)"
    • addedInput schema / properties / maxPrice / description
      Added value: +"約定価格の上限(limit 適用前にフィルタ)"
    • addedInput schema / properties / minAmount / description
      Added value: +"約定数量の下限(limit 適用前にフィルタ)"
    • addedInput schema / properties / minPrice / description
      Added value: +"約定価格の下限(limit 適用前にフィルタ)"
    • changedInput schema / properties / view / description
      Previous value: -"view は content の量を制御します。量は summary < detailed < full の順で、full は常にそのツールの最重量です。view が structuredContent から**フィールドを削ることはありません**(その view でしか計算しないデータを足すツールはあり、その場合は当該 view の説明に明記しています)。content[0].text は LLM への唯一のチャネルなので、軽い view は「短い表示」ではなく「LLM が明細を受け取らない」を意味します。\n- full(既定): 返却した全約定を 1 行 1 件で列挙 + 件数サマリ + 切り捨て警告 + スコープフッタ。本ツールの最重量。\n- summary: 非推奨。view=full を使うこと。0.6.0 で削除予定。旧既定値で、実体は full と同じ全件列挙(挙動は完全に不変で、名前だけを階梯に合わせた)。集計のみの軽量 summary は将来別リリースで opt-in 専用として新設予定。\n- items: 非推奨。view=full + format=json を使うこと。0.6.0 で削除予定。挙動は view=full + format=json と同じ(content は全件の pretty JSON のみで、件数サマリとスコープフッタは出ない)。"New value: +"view は content の量を制御します。量は summary < detailed < full の順で、full は常にそのツールの最重量です。view が structuredContent から**フィールドを削ることはありません**(その view でしか計算しないデータを足すツールはあり、その場合は当該 view の説明に明記しています)。content[0].text は LLM への唯一のチャネルなので、軽い view は「短い表示」ではなく「LLM が明細を受け取らない」を意味します。\n- full(既定): 返却した全約定を 1 行 1 件で列挙 + 件数サマリ + 切り捨て警告 + スコープフッタ。本ツールの最重量。\n- summary: 非推奨。view=full を使うこと。0.4.0 で削除予定。旧既定値で、実体は full と同じ全件列挙(挙動は完全に不変で、名前だけを階梯に合わせた)。集計のみの軽量 summary は将来別リリースで opt-in 専用として新設予定。\n- items: 非推奨。view=full + format=json を使うこと。0.4.0 で削除予定。挙動は view=full + format=json と同じ(content は全件の pretty JSON のみで、件数サマリとスコープフッタは出ない)。"
  3. Changed5 schema fields 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"
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "text",
      +  "description": "content の形式。text(既定): 散文 / json: pretty JSON。json は機械可読性のために**トークンを払う**オプションで、同じデータでも text より必ず多くなります(削減オプションではありません)。量は format ではなく view と limit が決めます。",
      +  "enum": [
      +    "text",
      +    "json"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / view / default
      Previous value: -"summary"New value: +"full"
    • addedInput schema / properties / view / description
      Added value: +"view は content の量を制御します。量は summary < detailed < full の順で、full は常にそのツールの最重量です。view が structuredContent から**フィールドを削ることはありません**(その view でしか計算しないデータを足すツールはあり、その場合は当該 view の説明に明記しています)。content[0].text は LLM への唯一のチャネルなので、軽い view は「短い表示」ではなく「LLM が明細を受け取らない」を意味します。\n- full(既定): 返却した全約定を 1 行 1 件で列挙 + 件数サマリ + 切り捨て警告 + スコープフッタ。本ツールの最重量。\n- summary: 非推奨。view=full を使うこと。0.6.0 で削除予定。旧既定値で、実体は full と同じ全件列挙(挙動は完全に不変で、名前だけを階梯に合わせた)。集計のみの軽量 summary は将来別リリースで opt-in 専用として新設予定。\n- items: 非推奨。view=full + format=json を使うこと。0.6.0 で削除予定。挙動は view=full + format=json と同じ(content は全件の pretty JSON のみで、件数サマリとスコープフッタは出ない)。"
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "summary",
      -  "items"
      -]New value: +[
      +  "full",
      +  "summary",
      +  "items"
      +]
  4. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: filter-before-limit ordering, truncation surfaced through meta (totalFetched/matched/returned/truncated/actualRange/fetchedRange) plus a warning, and a concrete 404 failure mode for in-progress UTC days. Gaps remain on rate limits and whether the archive endpoint differs in latency/completeness from the LIVE feed.

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?

It is front-loaded with a bracketed category and purpose sentence, then behavior, then hard constraints — a sensible ordering. Some sentences duplicate the schema's own wording (UTC date semantics, limit truncation), which costs tokens without adding new 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 9-parameter, no-output-schema read tool, the description covers purpose, filtering order, truncation metadata, and the date availability constraint — enough to call it correctly and to interpret a truncated result. Without an output schema, a brief note on the shape of each trade entry would have closed the last gap.

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 description coverage is 89%, so the parameters are already documented individually. The description adds the interaction semantics (filters apply before limit, capped at limit matching trades, newest side retained on truncation), which is genuinely useful, but the UTC-calendar-day explanation and the filter behavior largely restate the schema text.

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 opening tag plus a specific verb and resource ("市場の約定履歴(transactions / recent trades)を取得") states exactly what is returned, and it names the retrieval modes (latest ~60 vs. date-specified). It is clearly distinguishable from candle, ticker, and orderbook siblings by resource, though it never explicitly contrasts itself with any of them.

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 clear operative conditions: omit date for the current day's trades, and date only works for completed UTC days (404 otherwise). It also explains that price/amount filters apply before limit. It stops short of naming an alternative tool for adjacent needs, so it is context-rich but not fully prescriptive about when-not-to-use.

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