Skip to main content
Glama
iuk-ink

Binance MCP Server

RSI 背离检测

indicator_divergence
Read-only

Identify bullish and bearish price-RSI divergences on Binance futures by comparing extreme values across lookback windows, returning divergence type and all extremum details.

Instructions

直连版:拉取 K 线后检测价格与 RSI 的顶背离 / 底背离(前后半窗极值对比),返回背离类型与全部极值明细。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
symbolYes
intervalYes
lookbackNo背离检测分析窗口(K 线根数)
rsiPeriodNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rsiYes
typeYes
priceYes
windowYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed10 schema fields changedv3.0.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 / interval
      Added value: +{
      +  "enum": [
      +    "1m",
      +    "3m",
      +    "5m",
      +    "15m",
      +    "30m",
      +    "1h",
      +    "2h",
      +    "4h",
      +    "6h",
      +    "8h",
      +    "12h",
      +    "1d",
      +    "3d",
      +    "1w",
      +    "1M"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 200,
      +  "maximum": 1500,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • changedInput schema / properties / lookback / description
      Previous value: -"分析窗口大小(等分为左右两半各 10 根)"New value: +"背离检测分析窗口(K 线根数)"
    • removedInput schema / properties / rsiPeriod / description
      Removed value: -"RSI 周期"
    • changedInput schema / properties / rsiPeriod / maximum
      Previous value: -9007199254740991New value: +250
    • addedInput schema / properties / symbol
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / values
      Removed value: -{
      -  "description": "价格序列(收盘价)",
      -  "items": {
      -    "type": "number"
      -  },
      -  "minItems": 1,
      -  "type": "array"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "values"
      -]New value: +[
      +  "symbol",
      +  "interval"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "price": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "high1": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "index": {
      +              "type": "number"
      +            },
      +            "value": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "index",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "high2": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "index": {
      +              "type": "number"
      +            },
      +            "value": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "index",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "low1": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "index": {
      +              "type": "number"
      +            },
      +            "value": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "index",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "low2": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "index": {
      +              "type": "number"
      +            },
      +            "value": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "index",
      +            "value"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "high1",
      +        "high2",
      +        "low1",
      +        "low2"
      +      ],
      +      "type": "object"
      +    },
      +    "rsi": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "atHigh1": {
      +          "type": "number"
      +        },
      +        "atHigh2": {
      +          "type": "number"
      +        },
      +        "atLow1": {
      +          "type": "number"
      +        },
      +        "atLow2": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "atHigh1",
      +        "atHigh2",
      +        "atLow1",
      +        "atLow2"
      +      ],
      +      "type": "object"
      +    },
      +    "type": {
      +      "enum": [
      +        "bearish",
      +        "bullish",
      +        "both",
      +        "none"
      +      ],
      +      "type": "string"
      +    },
      +    "window": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "window",
      +    "price",
      +    "rsi"
      +  ],
      +  "type": "object"
      +}
  2. Addedv2.0.3

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds meaningful behavioral detail beyond that: it internally pulls K-lines ('拉取 K线后检测') and explains the half-window extreme-comparison algorithm, so the agent knows the tool has internal data dependencies and what computation drives the result. No contradiction with the read-only annotations.

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?

A single compact Chinese sentence conveys purpose, pipeline (K-line fetch --> detect), and return concept (divergence type + extreme details) with little waste. A very small deduction for the '直连版' prefix, which may confuse agents by hinting at a nonexistent sibling version.

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?

Given the tool has 5 parameters, covers output schema, and a read-only annotation, the description covers the core 'what' and 'algorithm' but not edge behavior (e.g., what happens when there is insufficient data, how many divergence results are returned, or the relation between lookback/limit/rsiPeriod. An agent can call it correctly with schema-provided defaults, but may be surprised by edge-case results.

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 only 20% (only lookback is explained), so the description should compensate. It partially does: '前后半窗极值对比' gives context for lookback's window semantics. But rsiPeriod, limit, symbol, interval and their interplay are not elaborated in either the schema or the description, and defaults (14/200/20) are standard enough that agents are likely to call correctly without further detail.

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?

States a specific verb+resource: it detects price-vs-RSI top/bottom divergence ('检测价格与 RSI 的顶背离 / 底背离'). The '前後半窗极值对比' mechanism makes the function concrete, and divergence is a unique concept among the indicator siblings, distinguishing it from indicator_rsi, indicator_macd, etc. It loses a point only because it never explicitly names an alternative or a differentiation against the other indicator tools.

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 intended use — проверка divergence between price and RSI — is clear, so when an agent needs divergence detectentation this tool is the obvious choice. But there is no guidance on when NOT to use it, no mention of raw-als indicators like indicator_rsi for plain RSI values, and no statement about alert-window tuning. Usage is implied rather than stated.

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

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/iuk-ink/binance-mcp-server'

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