Skip to main content
Glama
jquants-mcp

jquants-mcp

by shigechika

get_markets_short_ratio

Read-onlyIdempotent

Retrieves TSE 33-sector short selling ratios and industry short-selling trends by sector code and date range. Use it to analyze sector-level short selling activity.

Instructions

TSE 33-sector short selling ratio (業種別空売り比率). Standard+ only.

Use for 業種別空売り比率, sector-level 空売り動向, industry short selling trends. Keyed by s33 sector code — not per stock. For per-stock institutional short positions (大量空売り残高), use get_markets_short_sale_report 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 (s33, date, etc.) always returns full data.

partial=true: rows may be missing (the API failed and cached rows were returned, or the page limit cut the answer short).

[Supported plans] Standard / Premium

Args: s33: TSE 33-sector code (e.g. 0050 = Fishery, Agriculture & Forestry) 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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_markets_short_ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
s33No
dateNo
detailNo
date_toNo
date_fromNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.54.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / date / title
      Added value: +"Date"
    • addedInput schema / properties / date_from / title
      Added value: +"Date From"
    • addedInput schema / properties / date_to / title
      Added value: +"Date To"
    • addedInput schema / properties / detail / title
      Added value: +"Detail"
    • addedInput schema / properties / s33 / title
      Added value: +"S33"
    • addedInput schema / title
      Added value: +"get_markets_short_ratioArguments"
    • addedOutput schema / title
      Added value: +"get_markets_short_ratioDictOutput"
  2. First observedv0.43.3

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description adds real value on top: the default summary-vs-full-data behavior is shape-shifting based on parameters, the response envelope ({count, latest_date, source, note}), and plan gating (Standard/Premium). Deduction for the 'partial=true' sentence, which describes a response field as if it were a parameter and is not reflected in the schema.

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?

Front-loaded with purpose and the sibling exclusion, then call-mode behavior, then parameters — a sensible order with little waste. Minor redundancy between 'Standard+ only' and the '[Supported plans] Standard / Premium' footer, and the 'partial=true' fragment interrupts an otherwise clean flow.

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?

Output schema exists, yet the description still usefully sketches the default summary envelope, and it covers scoping, plan gating, degradation, and every parameter in the Args block. For a zero-required-parameter, five-argument tool, nothing an agent needs to invoke it correctly is missing.

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 must carry the load and it does: it documents all five parameters including a concrete example for s33 (0050 = Fishery, Agriculture & Forestry), accepted date formats for date, and range semantics for date_from/date_to, plus detail's conditional effect. The stray 'partial=true' reference is the only ambiguity.

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?

States a specific resource (TSE 33-sector short selling ratio / 業種別空売り比率) and immediately bounds the scope with 'Keyed by s33 sector code — not per stock', then names the sibling tool that handles the per-stock case. An agent can distinguish this from get_markets_short_sale_report without opening either schema.

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?

Gives explicit use cases (業種別空売り比率, sector-level 空売り動向, industry short selling trends) and an explicit exclusion routing per-stock 大量空売り残高 queries to get_markets_short_sale_report. It also explains the call-mode decision: no params returns a summary, detail=True or any filter returns full rows.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.