Skip to main content
Glama
stock-mcp-server

stock-mcp-server

by 1018053166

get_technical_indicators

Calculate MA, MACD, RSI, KDJ, and BOLL indicators for a given stock code and optional day range to support technical analysis.

Instructions

获取技术指标(MA均线、MACD、RSI、KDJ、BOLL)

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": {
      "stockCode": "<stockCode>"
    },
    "name": "get_technical_indicators"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo计算天数(默认60天)
stockCodeYes股票代码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. The indicator list hints at the return payload, but the description does not state the data source, time granularity, whether indicators are computed over the `days` window, or whether an invalid or unknown stock code yields an error or empty result.

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 parenthetical line with zero wasted words, and the resource is front-loaded. It is efficient but under-specified rather than over-written, so it earns slightly less than full marks.

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 no annotations and no output schema, the description omits what the response looks like, whether the indicator list is complete, and how `days` interacts with the returned series. An agent still needs to guess about output shape and suitable usage context.

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 coverage is 100%, with both `stockCode` and `days` (default 60, '计算天数') documented inline, so the schema already carries parameter meaning. The description adds nothing beyond naming output indicators, which is the correct baseline when the schema does the heavy lifting.

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 uses a specific verb-plus-resource phrasing ('获取技术指标') and enumerates the exact indicator families returned (MA, MACD, RSI, KDJ, BOLL), so an agent can tell what the tool produces. It stops short of differentiating itself from siblings such as get_kline or get_stock_realtime, which also return price-derived data.

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?

The description gives no when-to-use or when-not-to-use guidance and names no alternatives. Nothing indicates whether the technical indicators are computed on daily or other bars, or when an agent should pick this over get_kline.

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