Skip to main content
Glama
shigechika

jquants-mcp

by shigechika

get_markets_margin_interest

Read-onlyIdempotent

Get per-stock margin interest data (margin buy/sell balances, loan ratio) for Japanese stocks. Returns summary by default or full rows with code/date filters.

Instructions

Per-stock margin balance: 買残・売残・貸借倍率 (信用残). Standard+ only.

Use for 信用残, 買い残, 売り残, 貸借倍率, margin loan/short balance. For margin trading restrictions (追証・増担保規制), use get_markets_margin_alert instead.

When called with no parameters, returns a compact summary by default (detail=False): {count, latest_date, source, note}. Pass detail=True to retrieve full row data for the latest available date. Specifying any filter parameter (code, date, etc.) always returns full data.

[Supported plans] Standard / Premium

Args: code: Stock code (5 digits, e.g. 27800) date: Date (YYYYMMDD or YYYY-MM-DD) date_from: Start date for range query date_to: End date for range query detail: When True and no filter params given, return full row data instead of summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
dateNo
detailNo
date_toNo
date_fromNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Adds significant behavioral context beyond annotations: default summary mode vs full data with detail=True, and that any filter parameter triggers full data. Annotations already declare read-only/idempotent, so the bar is lower; this description adds useful return-shape behavior.

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?

Well-structured with purpose line, usage guidance, behavior explanation, supported plans, and args list. Slightly dense but every sentence is informative; the length is justified by the tool's complexity.

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?

For a read-only data tool with five optional parameters and an output schema, the description covers plan prerequisites, default vs detailed output, parameter formats, and the relevant sibling alternative. No significant gaps.

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 documents each parameter in Args: code (5-digit example), date formats, date_from/to, and detailed effect of detail flag. This entirely compensates for the schema gap.

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 identifies the tool as returning per-stock margin balance (買残・売残・貸借倍率) with a specific resource. Distinguishes from sibling get_markets_margin_alert by stating that tool is for margin trading restrictions.

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?

Explicitly states when to use: 'Use for 信用残...' and provides alternative: 'For margin trading restrictions, use get_markets_margin_alert instead.' Also mentions 'Standard+ only' plan requirement.

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