Skip to main content
Glama
Binance MCP Server

Binance MCP Server

MACD + RSI 组合

indicator_macd_rsi
Read-only

Compute latest MACD and RSI values from Binance futures K-lines for any symbol and interval, returning full indicator data without subjective signals.

Instructions

直连版:拉取 K 线后同时计算 MACD 与 RSI 最新值,返回完整数据(不输出主观信号)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>",
      "interval": "<interval>"
    },
    "name": "indicator_macd_rsi"
  }
}

Input Schema

NameRequiredDescriptionDefault
fastNo
slowNo
limitNo
signalNo
symbolYes
intervalYes
rsiPeriodNo

Output Schema

NameRequiredDescriptionDefault
rsiYes
macdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 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"
    • removedInput schema / properties / fast / description
      Removed value: -"MACD 快线周期"
    • changedInput schema / properties / fast / maximum
      Previous value: -9007199254740991New value: +250
    • 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"
      +}
    • removedInput schema / properties / rsiPeriod / description
      Removed value: -"RSI 周期"
    • changedInput schema / properties / rsiPeriod / maximum
      Previous value: -9007199254740991New value: +250
    • removedInput schema / properties / signal / description
      Removed value: -"MACD 信号线周期"
    • changedInput schema / properties / signal / maximum
      Previous value: -9007199254740991New value: +100
    • removedInput schema / properties / slow / description
      Removed value: -"MACD 慢线周期"
    • changedInput schema / properties / slow / 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": {
      +    "macd": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "histogram": {
      +          "type": "number"
      +        },
      +        "macd": {
      +          "type": "number"
      +        },
      +        "signal": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "macd",
      +        "signal",
      +        "histogram"
      +      ],
      +      "type": "object"
      +    },
      +    "rsi": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "macd",
      +    "rsi"
      +  ],
      +  "type": "object"
      +}
  2. Addedv2.0.3

TDQS

B3.2/5.0
Behavior4/5

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

annotations 已提供 readOnlyHint=true 和 openWorldHint=true;描述额外说明该工具会先拉取 K 线再计算指标并返回完整数据,且不会产生主观信号,这增加了对调用行为和输出边界的透明性。

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?

描述只有一句话,结构紧凑且信息密度高:先讲数据来源,再讲计算内容,再讲返回方式,最后标注边界。没有冗余或重复 schema 已有默认值的信息。

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?

有输出 schema 和 readOnly annotations 的情况下,工具行为的核心部分得到覆盖;但该工具参数较多,且描述既未解释参数语义,也未提供使用边界或替代工具指引,整体上下文仍不够完整。

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

Parameters1/5

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

schema 参数覆盖率为 0%,描述也没有说明 fast、slow、signal、rsiPeriod、limit 等参数的含义或默认值关系。对于 7 个参数的组合指标工具,参数语义完全缺失,描述本身无法帮助 Agent 理解除符号和时间周期外的输入。

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?

描述明确说明了工具动作:拉取 K 线后计算 MACD 与 RSI 的最新值,并指出返回完整数据、不输出主观信号。结合工具名“MACD + RSI 组合”可以看出它区别于单独计算 MACD 或 RSI 的兄弟工具,但没有显式点名区分边界。

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

Usage Guidelines2/5

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

描述中没有给出“何时应该使用本工具、何时应改用 indicator_macd/indicator_rsi/indicator_multi”等指引。“不输出主观信号”只是对输出的限制,不是调用时机的指导。

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