Skip to main content
Glama
iuk-ink

Binance MCP Server

简单移动平均

indicator_sma
Read-only

Calculates a simple moving average from Binance K-line data, returning a stable SMA series to help identify trends and support technical analysis.

Instructions

直连版:拉取 K 线后计算简单移动平均,返回稳定 SMA 序列(period 为周期)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
periodNo
symbolYes
intervalYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes

Schema Changelog

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

  1. Changed12 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 / interval / description
      Removed value: -"计算周期"
    • addedInput schema / properties / interval / enum
      Added value: +[
      +  "1m",
      +  "3m",
      +  "5m",
      +  "15m",
      +  "30m",
      +  "1h",
      +  "2h",
      +  "4h",
      +  "6h",
      +  "8h",
      +  "12h",
      +  "1d",
      +  "3d",
      +  "1w",
      +  "1M"
      +]
    • removedInput schema / properties / interval / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / interval / minimum
      Removed value: -2
    • changedInput schema / properties / interval / type
      Previous value: -"integer"New value: +"string"
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 200,
      +  "maximum": 1500,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / properties / period
      Added value: +{
      +  "default": 20,
      +  "maximum": 500,
      +  "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",
      -  "interval"
      -]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": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv2.0.3
    • addedInput schema / properties / interval / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / interval / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / values / description
      Previous value: -"价格数组"New value: +"价格序列(收盘价)"
  3. First observedv2.0.2

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already mark the tool as read-only, so the description's main job is to explain how it behaves beyond safety. It does this by disclosing that the tool itself pulls K-line data before computing the SMA, and returns a stable SMA series. This is meaningful behavioral context, though it could say more about caching or how missing data is handled.

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 a single, front-loaded sentence that directly explains the calculation pipeline and output. There is no filler, repetition, or unnecessary qualification; every clause contributes useful information.

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

Completeness4/5

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

For a simple indicator tool with read-only annotations and an output schema already present, the description is mostly complete. The main gap is the missing explanation of the 'limit' parameter and how the pull length influences the returned SMA series, which is important for a correct invocation.

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 description coverage is 0%, so the description must compensate for parameter meanings. It only clarifies that 'period' is the cycle length; it does not explain what 'limit' means, how 'interval' relates to the K-line fetch, or what constraints affect the output series. The parameter semantics are far from fully covered.

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 states the tool's action and resource: pulling K-lines and calculating a simple moving average. It also mentions the return value ('稳定 SMA 序列') and the meaning of period. This sharply distinguishes indicator_sma from siblings like indicator_ema, indicator_rsi, or indicator_macd.

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 implies usage: when a simple moving average over K-lines is needed, this tool should be used. However, it provides no explicit when/when-not guidance or alternatives, and the term '直连版' hints at a particular mode without fully explaining it.

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