Skip to main content
Glama
bitbankinc

bitbank-lab-mcp

Official
by bitbankinc

detect_patterns

Detect chart patterns in crypto prices: double tops/bottoms, head and shoulders, triangles, wedges, flags. Returns forming and completed patterns with timezone-adjusted timestamps for chart overlays.

Instructions

[Chart Patterns / Double Top / Head and Shoulders / Triangle] チャートパターン検出(chart patterns / double top / double bottom / head and shoulders / triangle / wedge / flag)。形成中+完成済みを統合検出。表示日時は tz(既定 Asia/Tokyo)で整形。

視覚確認: 結果の overlays を render_chart_svg に渡して描画可能。 描画結果は必ずビジュアルとしてレンダリングして表示すること。 チャット本文へのSVGコード直接出力は禁止。

構造化データ (data.patterns[*].range.start/end 等) は後方互換のため UTC ISO 文字列のまま。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tzNo表示日時のタイムゾーン(既定: Asia/Tokyo)。get_candles の tz と揃える。pattern の表示日付(期間 / 形成期間 / 文脈期間 / ブレイク確認 / 先行トレンド / pivot / 検出対象期間 等)に適用される。構造化データ(data.patterns[*].range.start/end 等)は後方互換のため UTC ISO 文字列のまま不変。空文字も Asia/Tokyo にフォールバック。Asia/Tokyo
pairNobtc_jpy
typeNo1day
viewNoview は content の量を制御します。量は summary < detailed < full の順で、full は常にそのツールの最重量です。view が structuredContent から**フィールドを削ることはありません**(その view でしか計算しないデータを足すツールはあり、その場合は当該 view の説明に明記しています)。content[0].text は LLM への唯一のチャネルなので、軽い view は「短い表示」ではなく「LLM が明細を受け取らない」を意味します。 - summary: ヘッダ + 分類内訳 + 直近30日/90日件数 + 期間 + 検討パターン。個々のパターンの詳細は content に出ない。 - detailed(既定): 上位 5 件の詳細。6 件目以降は content に出ない。structuredContent に usage_example を**足す**。 - full: 全件の詳細(double_top / double_bottom では山谷 3 点の pivot 行も出る)。本ツールの最重量。 - debug(**階梯外**): swings / candidates のみ。**検出パターンは content に出ない**——出力を置換する view なので full の上位集合ではない。structuredContent に data.candidates を**足す**。detailed
limitNo
patternsNoPatterns to detect. Recommended params (guideline): - double_top/double_bottom: default (swingDepth=7, tolerancePct=0.04, minBarsBetweenSwings=5) - triple_top/triple_bottom: tolerancePct≈0.05 - triangle_*: tolerancePct≈0.06 - pennant: swingDepth≈5, minBarsBetweenSwings≈3 Aliases: 'flag' → bull_flag + bear_flag, 'pennant' → bull/bear pennant, 'triangle' → asc/desc/sym.
swingDepthNo
tolerancePctNo
includeFormingNo形成中パターンを含める
includeInvalidNo無効化済みパターンを含める
includeCompletedNo完成済みパターンを含める
currentRelevanceDaysNo
minBarsBetweenSwingsNo
requireCurrentInPatternNo
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that display times are formatted in tz (default Asia/Tokyo) while structured data remains UTC ISO for backward compatibility, and it sets an explicit rule to render results visually and avoid direct SVG output. However, it does not state whether the tool is read-only, rate limits, or other side effects. It provides some useful behavior but not a complete safety profile.

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 well-structured: it opens with the tool's purpose and pattern list, then the forming/completed unification, tz note, visual rendering rules, and data format. It is concise and front-loaded, with each sentence contributing. No significant fluff or redundancy.

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

Completeness2/5

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

For a tool with 14 parameters, no output schema, and low parameter coverage, the description is not sufficiently complete. It mentions the overlays for rendering but does not explain the full response structure, how parameters affect detection, or the meaning of pattern types in detail. An agent would struggle to correctly choose detection parameters without further information. The description leaves critical gaps.

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 coverage is only 43%, so the description must compensate for undocumented parameters. It explains the tz parameter's effect on display formatting and the UTC preservation of structured data, but does not clarify key detection parameters like swingDepth, tolerancePct, minBarsBetweenSwings, or the interplay between includeForming/includeCompleted. The patterns parameter has guidelines in the schema, but the description adds little beyond the schema. It fails to help with most parameters.

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 clearly identifies the tool as chart pattern detection, listing specific pattern types (double top, head and shoulders, triangle, wedge, flag). It distinguishes itself from siblings by focusing on chart patterns rather than candlestick patterns (analyze_candle_patterns) or other analysis. The verb 'detect' and resource 'chart patterns' are explicit and specific.

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

Usage Guidelines3/5

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

The description gives some usage context: it detects both forming and completed patterns, and instructs passing overlays to render_chart_svg for visual confirmation. However, it does not explicitly state when to use this tool versus alternatives, nor does it provide exclusions (e.g., 'for candlestick patterns use analyze_candle_patterns'). The guidance is implicit but not comprehensive.

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