Skip to main content
Glama

Peer comparison (same sector, similar size) ★

get_peers
Read-only

Compare a stock with its sector peers: the target first, then the same-sector common stocks closest in market cap, then a sector-median row — each with market cap, PER, PBR, PSR, EV/EBITDA, ROE, ROA, dividend yield, YTD change and the market-cap rank in the sector. Outliers are null; ratios are decimals (0.1 = 10%). For dividend yield, the annual dividend includes the company forecast when there is one, and is the actual otherwise. 同じ東証33業種で時価総額が近い同業他社との比較(先頭が対象、末尾に業種中央値)。Costs 10 tokens. Information derived from TDnet (timely disclosures, earnings releases, dividend and split notices, shareholder benefit and dividend policy notices, and values computed from them) is returned 24 hours after the disclosure time (JPX TDnet API service terms, Article 7(1)); items whose TDnet disclosure time is unknown are not returned. Within 24 hours such rows are left out (for shareholder benefits and dividend policies the previous version is returned), TDnet PDFs return 403 tdnet_embargo, and the latest metrics of the affected stocks are null (response headers X-TDnet-Embargoed-Count, X-TDnet-Embargo-Next-Release, X-TDnet-Embargoed-Symbols). TDnet(適時開示)由来の情報(開示の一覧・決算短信・配当や分割のお知らせ・株主優待や配当方針のお知らせと、それらから計算した値)は、開示から 24 時間後から返します(JPX の TDnet API サービス利用約款 第 7 条 1 項)。TDnet の開示の時刻が分からないものは返しません。24 時間以内は、その行を返さず(株主優待と配当方針は前の版を返します)、TDnet の PDF は 403 tdnet_embargo、最新値はその銘柄の書類由来の項目を null にします(応答ヘッダ X-TDnet-Embargoed-Count・X-TDnet-Embargo-Next-Release・X-TDnet-Embargoed-Symbols)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "get_peers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of peers / 同業他社の数
symbolYes4-digit Japanese ticker code / 4桁の証券コード (e.g. "7203" = Toyota). Common stocks only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the readOnlyHint annotation: it discloses the 10-token cost, that outliers are nulled, that ratios are decimals, how dividend yield treats forecast vs actual dividends, and a detailed TDnet 24-hour embargo regime including which rows are omitted, the 403 tdnet_embargo response, and the X-TDnet-Embargoed-* headers. The only gap is the response format/serialization, which is not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences are front-loaded and information-dense, but the TDnet embargo passage is then restated verbatim in Japanese, roughly doubling the length with zero added information for a bilingual reader. The core comparison content is well structured; the duplication drags it down.

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?

With no output schema, the description carries the return burden and does so: it enumerates the columns, the row order, the sentinel value for outliers, numeric units, and the dividend-yield convention. Together with the embargo semantics, an agent has everything needed to call it and interpret results correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented, including the 4-digit ticker format and the limit range. The description's row-ordering sentence implies how limit maps to returned rows (peers plus target plus median), adding modest meaning, but it does not clarify whether the median row or the target counts against the limit.

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?

Names a specific verb and resource ("Compare a stock with its sector peers") and specifies the exact output ordering — target first, then nearest-market-cap same-sector common stocks, then a sector-median row — plus the ten metrics included. That is enough for an agent to distinguish it from sector-level tools like get_sector_performance without opening a schema.

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

Usage Guidelines3/5

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

Implicit usage only: the description makes clear this is a peer-comparison tool scoped to the TSE 33 sectors, but it never states when to choose it over sibling tools such as get_sector_performance or get_batch_key_metrics_latest, nor any prerequisite beyond a valid ticker. The agent must infer the selection criteria.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources