Skip to main content
Glama
shigechika

jquants-mcp

by shigechika

get_comparison_chart_data

Read-onlyIdempotent

Retrieve time-series data for comparing up to 10 stocks, with options for normalized returns or raw adjusted close prices.

Instructions

Return time-series data for a multi-stock comparison (複数銘柄比較データ). All plans.

Use for 比較チャート・パフォーマンス比較・リターン比較・relative performance queries (up to 10 codes). Returns JSON records suitable for React artifact rendering with Recharts LineChart. For ローソク足・candlestick charts use sibling get_candlestick_data (returns JSON).

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

Args: codes: 1–10 stock codes (e.g. ["7203", "8697"]). from_date: Range start (YYYYMMDD or YYYY-MM-DD), inclusive. to_date: Range end (YYYYMMDD or YYYY-MM-DD), inclusive. mode: "return_pct" (default, normalised to 0% at first bar) or "price" (raw adjusted close). labels: Custom legend labels per code. Omit for auto-generated names.

Returns: dict with keys: mode — echoes the requested mode from_date — normalised YYYY-MM-DD to_date — normalised YYYY-MM-DD records — list of {"date": str, : float, ...} rows (Recharts dataKey format) series_keys — ordered list of label strings matching records keys On error: {"error": ""}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesYes
from_dateYes
to_dateYes
modeNoreturn_pct
labelsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds valuable behavioral context: 'cache-only, no API call' and details the return structure. No contradictions. The additional context on caching and output format raises the score above the baseline.

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?

The description is well-structured with a clear purpose statement, bullet-pointed arguments, and return format. It is slightly long but every sentence adds value. Front-loads the key purpose and sibling differentiation.

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 5 parameters (3 required), 0 nested objects, and an existing output schema, the description covers all essential aspects: input constraints, return structure, plan info, and sibling alternative. It is fully self-contained and leaves no ambiguity for an AI agent.

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?

With 0% schema description coverage, the description fully compensates by explaining each parameter: codes (1-10 stock codes), from_date/to_date (formats), mode (options and default), and labels (optional, custom vs auto-generated). This adds significant meaning beyond the raw schema.

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 it returns 'time-series data for a multi-stock comparison' and specifies usage for '比較チャート・パフォーマンス比較・リターン比較・relative performance queries'. It distinguishes from sibling tool get_candlestick_data, providing a specific verb+resource+scope.

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?

The description provides explicit use cases and an alternative tool for candlestick charts. It mentions plan limits and code maximum (10). However, it does not explicitly state when not to use it beyond the sibling alternative, which is acceptable given the clear context.

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