Skip to main content
Glama
shigechika

jquants-mcp

by shigechika

get_markets_margin_interest

Read-onlyIdempotent

Retrieve per-stock margin buying/short balances and loan ratios. Get a compact summary or detailed data for analysis of margin positions.

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

Behavior5/5

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

The description details key behaviors: default returns a compact summary, detail=True returns full data, any filter parameter triggers full data. It also mentions plan restriction (Standard+). This adds value beyond annotations, which already indicate read-only and idempotent.

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 clear sections, front-loaded purpose, and uses bullet-like format for args. It is slightly verbose in the synonym list but still concise overall.

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 and the presence of an output schema, the description covers purpose, usage, behavior, parameters, and plan limitations comprehensively. No obvious gaps remain.

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?

All five parameters are explained with format examples (e.g., 'code: Stock code (5 digits, e.g. 27800)', 'date: Date (YYYYMMDD or YYYY-MM-DD)') and behavior (detail parameter explained). This compensates for the 0% schema description coverage.

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's function: retrieving per-stock margin balance (買残・売残・貸借倍率). It also explicitly distinguishes from a sibling tool (get_markets_margin_alert) for margin restrictions, 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?

Provides explicit guidance on when to use (for margin balances) and when not to (for restrictions, use sibling). It also explains the default behavior with no parameters vs. with parameters, aiding correct invocation.

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