Skip to main content
Glama

get_trading_levels

Read-onlyIdempotent

Compute stock trading levels including counter-trend supports (e.g., moving averages, Fibonacci) and trend-following breakouts (e.g., resistance, moving average confirmation).

Instructions

計算股票的左側與右側交易價位。左側(逆勢/抄底)包含均線支撐、Fibonacci回撤等;右側(順勢/追漲)包含突破壓力、均線站上確認等

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes股票代號,例如 2330
daysNo計算用的歷史天數,預設 60
marketNo市場 TW 或 US,預設 TW
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds minimal behavioral context beyond the calculation logic, providing no extra information on performance, limits, or side effects.

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 two concise sentences, front-loaded with the key purpose, and every sentence provides meaningful information without redundancy.

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 has no output schema, so the description should ideally explain the return format. However, it explains the concepts of left and right levels, which partially compensates. It lacks detail on output structure, making it slightly incomplete.

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%, so the baseline is 3. The description adds no additional semantic meaning to the parameters beyond what is already in the schema descriptions.

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 calculates left-side and right-side trading levels, explaining the concepts of contrarian and trend-following. It uses a specific verb-resource pair and distinguishes itself from siblings like get_technical_indicators by focusing on trading levels.

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 lacks guidance on when to use this tool versus alternatives. It does not specify prerequisites, contexts, or scenarios where this tool is preferred over similar tools like get_full_stock_analysis or get_price_history.

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

Install Server

Other Tools

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/kevinlin49361128-stack/stock-analyzer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server