Skip to main content
Glama
jquants-mcp

jquants-mcp

by shigechika

get_equities_valuation

Read-onlyIdempotent

Retrieve daily valuation metrics such as PER, PBR, ROE, EPS, BPS, forecast PER, and market cap for Japanese stocks by code or date, enabling time-series and cross-sectional analysis.

Instructions

Daily valuation metrics per stock (バリュエーション指標). All plans.

Use for PER・PBR・ROE・EPS・BPS・予想PER・時価総額 (MktCap) time series or a one-day cross-section. EPS/BPS: yen, trailing actuals; FwdEPS/FwdPER/FwdROE: from the current-period forecast; ROE/FwdROE are fractions (0.115 = 11.5%); MktCap: millions of yen with treasury shares excluded (a different definition from the MktCap get_equities_bars_daily returns until 2026-12-28). Per-share values are as of each date, not split-adjusted. All fields null for ETF/ETN/REIT. code only → full history; code+range → period; date only → all stocks on that date. partial=true: rows may be missing (the API failed and cached rows were returned, or the page limit cut the answer short).

[Supported plans] Free / Light / Standard / Premium (API fallback on cache miss) Retention: Free=2y (12w delay), Light=5y, Standard=10y, Premium=all.

Args: code: Stock code, 4 or 5 characters (e.g. 7203 / 72030, 285A / 285A0); a 4-character code matches the ordinary share only. date: Single date (YYYYMMDD or YYYY-MM-DD). date_from: Range start inclusive (YYYYMMDD or YYYY-MM-DD); needs code. date_to: Range end inclusive (YYYYMMDD or YYYY-MM-DD); needs code.

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_equities_valuation"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
dateNo
date_toNo
date_fromNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.10.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/open-world, so the description's added value here is substantial: units and semantics for every field (EPS/BPS in yen as trailing actuals, forecast fields from the current-period forecast, ROE as fractions, MktCap in millions of yen with treasury shares excluded), the caveat that per-share values are not split-adjusted, and that all fields are null for ETF/ETN/REIT. It also discloses plan gating, retention windows per plan, and the meaning of a truncated/fallback response, which goes well beyond what annotations provide.

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 dense but front-loaded: the purpose, the metric list, and the three calling modes come before units, plan, and retention details. There is minor redundancy between 'All plans.' at the top and the later '[Supported plans]' block, and the mention of 'partial=true' without saying whether it is an argument or a response field adds a small ambiguity. Overall the wording is information-bearing rather than padded.

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 four-parameter, zero-required read tool with an output schema present, the description covers what the schema/output schema cannot: units, forecast-vs-actual semantics, non-split-adjusted values, null behavior for fund instruments, plan/retention gating, and truncated-result signaling. An agent has everything needed to choose inputs and interpret results correctly.

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: an Args block documents each of the four parameters with accepted formats (YYYYMMDD or YYYY-MM-DD), a worked code example (7203 / 72030, 285A / 285A0), the rule that a 4-character code matches the ordinary share only, and the dependency that the range endpoints require code. The only blemish is a reference to 'partial=true', which reads like an input flag but is not in the input 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 opens with a specific verb and resource ('Daily valuation metrics per stock') and immediately names the concrete metrics it serves (PER, PBR, ROE, EPS, BPS, forecast PER, MktCap) as time series or a one-day cross-section. It is clearly distinguishable from adjacent tools such as get_equities_bars_daily, whose MktCap definition it explicitly says differs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives cr ystal-clear call-shape routing: 'code only → full history; code+range → period; date only → all stocks on that date', plus the constraint that date_from/date_to need code. It also warns that this MktCap differs from the one returned by get_equities_bars_daily until 2026-12-28, which steers an agent away from the wrong tool. It stops short of naming an explicit when-not-to-use case or an alternative for ranking-style queries, so it is strong but not exhaustive.

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