Skip to main content
Glama
infoway-api

Infoway MCP Server

Official
by infoway-api

get_kline

Retrieve candlestick (OHLCV) data for stock or cryptocurrency symbols. Supports intervals from 1 minute to yearly for price trend analysis.

Instructions

Get candlestick / K-line (OHLCV) data for given symbols. Supports multiple intervals: 1m, 5m, 15m, 30m, 1h, 2h, 4h, daily, weekly, monthly, quarterly, yearly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYesComma-separated symbol codes.
market_typeNoMarket type to query.stock
kline_typeNoK-line interval: 1=1min, 2=5min, 3=15min, 4=30min, 5=1hour, 6=2hour, 7=4hour, 8=daily, 9=weekly, 10=monthly, 11=quarterly, 12=yearly.
countNoNumber of candles to return (max varies by interval).
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It does not mention side effects, error handling, rate limits, or data scope (e.g., no user filtering). It only describes basic functionality, leaving significant gaps for an agent.

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?

Two sentences front-load the purpose and list intervals without any filler. Every sentence earns its place.

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?

Adequately describes the tool's purpose and intervals, but lacks any mention of output format or error conditions. Since there is no output schema, the description should clarify the response structure.

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 coverage is 100%, but the description adds value by naming 'OHLCV' and listing interval names in a human-readable format, beyond the integer enum in kline_type.

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?

Clearly states it retrieves candlestick/K-line (OHLCV) data for given symbols, with specific interval options. This distinguishes it from sibling tools like get_company_overview or get_realtime_trade.

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 clear context by describing the type of data (candlestick) and intervals, implying use for OHLCV analysis. However, it lacks explicit when-not-to-use or alternatives, though the context is 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/infoway-api/infoway-mcp-server'

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