Skip to main content
Glama
bitbankinc

bitbank-lab-mcp

Official
by bitbankinc

get_transactions

Fetch recent or date-specific cryptocurrency trade executions, filter by price or amount, and receive matched transactions with truncation warnings.

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件)でのみ取得可能。

Input Schema

TableJSON 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 件で列挙 + 件数サマリ + 切り捨て警告 + スコープフッタ。本ツールの最重量。 - summary: 非推奨。view=full を使うこと。0.4.0 で削除予定。旧既定値で、実体は full と同じ全件列挙(挙動は完全に不変で、名前だけを階梯に合わせた)。集計のみの軽量 summary は将来別リリースで opt-in 専用として新設予定。 - items: 非推奨。view=full + format=json を使うこと。0.4.0 で削除予定。挙動は view=full + format=json と同じ(content は全件の pretty JSON のみで、件数サマリとスコープフッタは出ない)。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. 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 のみで、件数サマリとスコープフッタは出ない)。"
  2. 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"
      +]
  3. First observedv0.1.1

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden, and it delivers: filter-before-limit ordering, truncation disclosure via named meta fields (totalFetched/matched/returned/truncated/actualRange/fetchedRange) and a warning, plus the backend constraint about UTC-archives availability. The 404 behavior for a non-finalized UTC date is explicitly warned, which is exactly the kind of trap an agent needs disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured in three compact paragraphs: purpose, truncation/limit behavior, and date constraints. Every sentence earns its place, and the operational constraints are front-loaded before the backend-spec detail.

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?

For a tool with no output schema and no annotations, the description is remarkably complete: it defines the data scope, the filter/limit interplay, the truncation signaling with concrete meta field names, and the temporal constraints that prevent 404 failures. An agent has all the information needed to invoke this tool correctly and interpret its result.

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 coverage is high (89%) with strong per-parameter descriptions, so the baseline is 3. The description adds meaningful cross-parameter semantics beyond the schema: the filter-then-limit ordering invariant and the 'latest ~60 items' scope for date-omitted calls, which the schema's limit=100 default does not clarify.

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?

States a specific verb and resource ('約定履歴(transactions / recent trades)を取得') and clearly scopes the tool to execution/trade history, which distinguishes it from siblings like get_candles, get_ticker, and get_orderbook. It further differentiates its date semantics from get_candles/validate_candle_data, so an agent can pick the right tool without opening schemas.

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 specifies when each invocation is valid: date-omitted mode for the ongoing UTC day (~60 latest trades) and date-specified mode for completed UTC archive days, with the JST 09:00 availability threshold and the 404 risk for in-progress UTC dates. It also names sibling tools (get_candles/validate_candle_data) and states the date-basis difference, giving the agent actionable selection context.

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