Skip to main content
Glama
shigechika

jquants-mcp

by shigechika

detect_52w_high_low

Read-onlyIdempotent

Identify stocks breaking 52-week highs or lows on a given trading date. Supports cross-sectional scan or single stock check with cached or on-demand computation.

Instructions

Screen for 52-week rolling high/low breakouts (52週高値/安値 ブレイク). All plans.

Use for 52週高値, 52週安値, 年間高値, 年間安値, 52-week high/low breakout. For multi-date scans use detect_52w_high_low_range (not repeated calls here). For YTD high/low use detect_ytd_high_low instead.

Default params hit the nightly pre-computed cache (sub-second). Custom params or code filter compute on-demand (~10–30s cross-sectional on Cloud Run). date must be within the past 52 weeks. Data available ~17:15 JST on trading days.

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

Args: date: Trading date (YYYYMMDD or YYYY-MM-DD). Within past 52 weeks. code: Optional stock code. Omit to scan all codes (cross-sectional). window_sessions: Trailing session window (default 252 = 52 weeks). min_prior_sessions: Drop codes with fewer prior sessions in window (default 60; set 1 to disable). detail: Include full per-stock data array (default False = summary counts only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
codeNo
window_sessionsNo
min_prior_sessionsNo
detailNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already indicate read-only, non-destructive, and idempotent behavior. The description adds valuable context: default params hit cache (sub-second), custom params compute on-demand (10–30s), data available at ~17:15 JST, and date constraint (within past 52 weeks). This extra information enhances transparency beyond annotations.

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 structured with clear sections (purpose, usage, performance, plans, args). It is reasonably concise for the amount of information conveyed, with key points front-loaded. Minor redundancy (e.g., repeating plan info) could be trimmed, but overall efficient.

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 the tool's complexity (5 parameters, caching, cross-sectional scans), the description covers all necessary aspects: purpose, when to use alternatives, performance expectations, data availability, supported plans, and parameter semantics. Since an output schema exists, return values are adequately handled elsewhere.

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 description coverage is 0%, so the description fully compensates by explaining each parameter in detail: date format and range, code optional for cross-sectional scan, window_sessions default (252), min_prior_sessions default (60), and detail flag for full data. This adds significant meaning beyond the bare 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 the tool screens for 52-week rolling high/low breakouts, with specific example search tags in Japanese and English. It distinguishes from sibling tools like detect_52w_high_low_range and detect_ytd_high_low, making the purpose unambiguous.

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?

The description explicitly states when to use this tool versus alternatives: for multi-date scans use detect_52w_high_low_range, for YTD high/low use detect_ytd_high_low. It also notes that default parameters use cache and custom params compute on-demand, guiding appropriate usage.

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