Skip to main content
Glama
stockmarketscan

stockmarketscan/mcp-server

Official

get_candles

Read-onlyIdempotent

Retrieve OHLCV price candles for a stock to compute indicators or check price changes over custom ranges.

Instructions

Return OHLCV price candles for a single stock. Use when you need price history to compute indicators or answer 'how much is X up this month'. time is a Unix epoch in seconds (UTC midnight for daily). Default range is 6mo. Use larger ranges like '1y' or '2y' only when the user explicitly asks for long history — max range is 20 years. Returns { symbol, interval, range, count, data: [{time, open, high, low, close, volume}] }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker
intervalNoDaily or weekly candles1d
rangeNoRange: 1d, 5d, 1y, 2y, 5y, max, or {N}mo (1-240)6mo
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint. Description adds critical details: time format ('Unix epoch in seconds, UTC midnight for daily'), default range (6mo), max range (20 years), and return structure. No contradiction with annotations.

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?

Every sentence adds value. The description is front-loaded with the main purpose, followed by usage guidance, parameter clarifications, and return format. No redundant or vague statements.

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

Completeness5/5

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

Given 3 parameters, no output schema, and a data-rich tool, the description covers purpose, usage, parameter constraints, and return shape comprehensively. Siblings are distinct, so no confusion.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage for all 3 parameters. Description adds extra context: default and max range for 'range', and explains the time format in the return data, which complements understanding of parameters. Slightly above baseline because of added constraints.

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 explicitly states 'Return OHLCV price candles for a single stock' with a clear verb and resource, and distinguishes it from sibling tools like get_stock_info or get_chart_patterns by focusing on price history.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit usage context: 'Use when you need price history to compute indicators or answer how much is X up this month.' Also advises on range selection ('Default range is 6mo', 'Use larger ranges like 1y or 2y only when the user explicitly asks for long history'). Lacks direct exclusion of alternatives but clear enough.

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/stockmarketscan/mcp-server'

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