Skip to main content
Glama
shigechika

jquants-mcp

by shigechika

get_candlestick_data

Read-onlyIdempotent

Fetch Japanese stock candlestick OHLCV and technical indicators as JSON arrays, ready for chart rendering in Plotly or Recharts.

Instructions

Return candlestick OHLCV + indicator data as JSON (ローソク足データJSON). All plans.

Use for ローソク足・株価チャート・React artifact チャート queries (JSON format). Returns parallel arrays for Plotly/Recharts React artifact rendering. For multi-stock comparison use sibling get_comparison_chart_data.

[Supported plans] Free / Light / Standard / Premium (cache-only, no API call)

Args: code: Stock code (e.g. "7203" or "72030"). from_date: Range start (YYYYMMDD or YYYY-MM-DD). Default: 91 days before to_date. to_date: Range end (YYYYMMDD or YYYY-MM-DD). Default: today. indicators: Overlays list. Default ["volume","sma5","sma25"]. Options: volume, sma5, sma20, sma25, sma60, sma75, sma200, bb20. adjusted: Use split-adjusted prices (default True).

Returns: dict with keys: code — normalised 5-char code display_code — 4-char display code (e.g. "7203") company — brief company name or null from_date — YYYY-MM-DD display start to_date — YYYY-MM-DD display end adjusted — bool dates — list[str] YYYY-MM-DD ohlcv — {open, high, low, close, volume} each list[float] indicators — {sma5, ..., bb20_upper, bb20_mid, bb20_lower} list[float|null] lock_days — list[{date, direction, price}] earnings_dates — list[str] YYYY-MM-DD within the display window On error: {"error": ""}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
to_dateNo
adjustedNo
from_dateNo
indicatorsNo
Behavior5/5

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

Annotations already indicate read-only and idempotent behavior; the description adds valuable context such as 'cache-only, no API call', the return format (parallel arrays for Plotly/Recharts), detailed return keys including lock_days and earnings_dates, and the error response format. This goes well beyond the structured 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?

Although the description is lengthy, it is well-structured with clear sections (Args, Returns) and every sentence adds value. The parameter details and return schema are necessary given the tool's complexity, and the formatting enhances scannability.

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 no output schema and 5 parameters, the description provides a complete picture: all parameters, return structure, error handling, plan coverage, and cache behavior. There is no missing critical information for correct invocation and interpretation of results.

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

Parameters5/5

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

Schema has 0% coverage, so the description fully compensates by explaining every parameter: code with examples, from_date/to_date formats and defaults, indicators default and options list, and adjusted default. All 5 parameters receive clear semantic meaning.

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?

Description clearly states 'Return candlestick OHLCV + indicator data as JSON' with a specific verb and resource, and further specifies use cases (ローソク足・株価チャート・React artifact queries). It distinguishes itself from sibling tools by explicitly directing multi-stock comparison users to get_comparison_chart_data.

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

Usage Guidelines5/5

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

Explicit usage guidance is provided: 'Use for ローソク足・株価チャート・React artifact チャート queries (JSON format)' and 'For multi-stock comparison use sibling get_comparison_chart_data.' It also states plan support and cache-only behavior, helping the agent decide when to invoke this tool.

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/shigechika/jquants-mcp'

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