Skip to main content
Glama
iuk-ink

Binance MCP Server

MACD

indicator_macd
Read-only

Calculates MACD from Binance futures K-lines, returning MACD, signal, and histogram values for any symbol and interval. Specify symbol and interval to get technical indicator data.

Instructions

直连版:拉取 K 线后计算 MACD,返回稳定三元组序列(macd / signal / histogram)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
symbolYes
intervalYes
longPeriodNo
shortPeriodNo
signalPeriodNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes

Schema Changelog

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

  1. Changed14 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
      Removed value: -{
      -  "default": 12,
      -  "description": "快线周期",
      -  "maximum": 9007199254740991,
      -  "minimum": 2,
      -  "type": "integer"
      -}
    • removedInput schema / properties / indicatorType
      Removed value: -{
      -  "default": "EMA",
      -  "description": "平滑类型",
      -  "enum": [
      -    "EMA",
      -    "DEMA"
      -  ],
      -  "type": "string"
      -}
    • 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"
      +}
    • addedInput schema / properties / longPeriod
      Added value: +{
      +  "default": 26,
      +  "maximum": 250,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / properties / shortPeriod
      Added value: +{
      +  "default": 12,
      +  "maximum": 250,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • removedInput schema / properties / signal
      Removed value: -{
      -  "default": 9,
      -  "description": "信号线周期",
      -  "maximum": 9007199254740991,
      -  "minimum": 2,
      -  "type": "integer"
      -}
    • addedInput schema / properties / signalPeriod
      Added value: +{
      +  "default": 9,
      +  "maximum": 100,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • removedInput schema / properties / slow
      Removed value: -{
      -  "default": 26,
      -  "description": "慢线周期",
      -  "maximum": 9007199254740991,
      -  "minimum": 2,
      -  "type": "integer"
      -}
    • 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": {
      +    "data": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "histogram": {
      +            "type": "number"
      +          },
      +          "macd": {
      +            "type": "number"
      +          },
      +          "signal": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "macd",
      +          "signal",
      +          "histogram"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. Changed15 schema fields changedv2.0.3
    • changedInput schema / properties / fast / description
      Previous value: -"快线"New value: +"快线周期"
    • addedInput schema / properties / fast / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / fast / minimum
      Added value: +2
    • changedInput schema / properties / fast / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / indicatorType / default
      Added value: +"EMA"
    • changedInput schema / properties / indicatorType / enum
      Previous value: -[
      -  "EMA",
      -  "RMA",
      -  "SMA",
      -  "WMA",
      -  "WSMA"
      -]New value: +[
      +  "EMA",
      +  "DEMA"
      +]
    • changedInput schema / properties / signal / description
      Previous value: -"信号线"New value: +"信号线周期"
    • addedInput schema / properties / signal / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / signal / minimum
      Added value: +2
    • changedInput schema / properties / signal / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / slow / description
      Previous value: -"慢线"New value: +"慢线周期"
    • addedInput schema / properties / slow / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / slow / minimum
      Added value: +2
    • changedInput schema / properties / slow / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / values / description
      Previous value: -"价格数组"New value: +"价格序列(收盘价)"
  3. First observedv2.0.2

TDQS

C2.7/5.0
Behavior3/5

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

The description adds some behavioral context beyond the annotations by revealing that the tool pulls K-lines, computes MACD, and returns a stable sequence of triples. The annotations already cover read-only and open-world hints, so the burden is lower. However, it does not mention edge cases, error conditions, or how the return sequence is structured relative to time or limit.

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 a single short sentence that front-loads the core behavior (K-line fetch, MACD calculation, output shape). Every phrase earns its place, though the '直连版本' wording is fuzzy and consumes space without being fully informative.

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?

Given schema coverage of 0%, six parameters, and a sibling ecosystem full of choosing ambiguity, this description is far from complete. It provides an output shape, so the output schema can carry some burden, but it totally fails to explain parameter semantics or give usage context, making the tool under-specified for an correct invocation.

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 description coverage is 0%, and the description does not mention or explain any of the 6 parameters. Even the key MACD parameters like longPeriod, shortPeriod, and signalPeriod are omitted entirely, so the agent receives no semantic explanation for the parameters beyond raw schema defaults.

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 description states a specific verb and resource ('拉取 K 线后计算 MACD') and identifies the output as a stable triple sequence (macd / signal / histogram). '直连版' hints at a distinguishing mode and distinguishes this from combined indicator siblings like indicator_macd_rsi, though the meaning of '直连版' is not fully explained.

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?

No guidance is provided on when to use this tool instead of the many sibling indicators (e.g., indicator_macd_rsi, indicator_multi, indicator_rsi). The phrase '直连版' implies some mode difference, but it never states when an agent should choose this tool or when it should not. There is no explicit exclusions or alternatives.

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