Skip to main content
Glama
shigechika

jquants-mcp

by shigechika

get_markets_margin_interest

Read-onlyIdempotent

Retrieve per-stock margin balance (long/short) and loan-to-value ratio for Japanese stocks. Analyze margin trading interest and market sentiment.

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
date_fromNo
date_toNo
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 declare read-only, non-destructive, idempotent. Description adds value by detailing summary vs full row data behavior and plan requirement (Standard+). No contradictions.

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 first, then usage, then parameter details. Somewhat lengthy but no redundant sentences; could be slightly more compact.

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?

Covers purpose, usage, behavior, parameters, plan limitation, and alternative tools. Output schema exists, so return values are not needed. Complete for the tool's complexity.

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 coverage is 0%, but description compensates fully with clear parameter descriptions (format, example for code, effect of detail) and explains summary/full behavior.

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 provides per-stock margin balance (買残・売残・貸借倍率) and distinguishes from sibling get_markets_margin_alert for margin 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 lists use cases (信用残, 買い残, etc.) and provides a clear alternative (get_markets_margin_alert) for restrictions. Also explains when to use detail parameter.

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