Skip to main content
Glama

台股題材與高股息

查詢題材股的最新收盤、漲跌幅、成交量、所屬題材與近 60 個交易日收盤

get_stock
Read-onlyIdempotent

查詢題材股的最新收盤、漲跌幅、成交量、所屬題材與近 60 個交易日收盤。

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": {
      "code": "<code>"
    },
    "name": "get_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes股票代號,例:2330

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and idempotency profile is covered. The description adds useful scope information — that the payload includes theme membership and 60 trading days of closes — but says nothing about latency, data freshness, missing-code behavior, or supported markets.

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 front-loaded sentence with no padding or repetition. It is efficient, though its content is entirely a field enumeration rather than a structured explanation of behavior.

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?

The tool is simple — one required parameter and no output schema — so the field list in the description partly compensates for the missing return-value documentation. However, units for 漲跌幅, currency, market coverage, and freshness of "latest close" remain unspecified, which are the details an agent would need to interpret results correctly.

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 100% and the code parameter even carries an example (2330), so the schema does the heavy lifting. The description contributes no additional meaning about the code format, market scope, or what happens with an unrecognized ticker.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The text identifies a query verb and enumerates the returned fields (latest close, change %, volume, theme membership, 60-day close history), so the purpose is inferable. But it is a verbatim restatement of the tool title, and it never distinguishes this tool from siblings such as get_us_stock or get_theme_stocks.

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?

There is no when-to-use guidance, no statement of prerequisites, and no exclusion or comparison against alternatives. An agent must guess whether to call get_stock, get_us_stock, or get_theme_stocks for a given request.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.