Docs menuexpand_more
MCP tool
get_peers
Key points
- check_circleIt maps to the REST endpoint /stable/peers, with the same response shape.
- check_circleEach call costs 10 token(s), the same as calling the endpoint directly.
- check_circleRequired arguments: symbol
What this tool returns
Compares a stock with common stocks in the same TSE 33-sector that are closest in market cap. The target comes first and a sector-median row comes last. Each row has market cap, PER, PBR, PSR, EV/EBITDA, ROE, ROA, dividend yield, year-to-date change and the market-cap rank within the sector. Outliers are null and ratios are 0–1 decimals.
Description sent to AI clients
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%). 同じ東証33業種で時価総額が近い同業他社との比較(先頭が対象、末尾に業種中央値)。Costs 10 tokens.
The model reads this description to choose the tool. It is written in both English and Japanese.
What you can answer with it
- chatCompare a stock with similarly sized rivals to see if it looks cheap
- chatFind companies more profitable than the sector median
Arguments
Argument names are the same as the REST query parameters. Optional arguments can be omitted.
| Argument | Type | Required | Description |
|---|---|---|---|
| symbol | string | Required | Securities code (common stocks only, e.g. 7203 = Toyota Motor) |
| limit | integer | — | Number of peers, excluding the target and the median row (default 10, max 30)Default: 10Range: 1–30 |
REST endpoint
This tool calls /stable/peers. Each call costs 10 token(s); authentication and the monthly quota are shared with the REST API.
GET /stable/peers10 token(s)Examples
Example prompt
Using ZENITH Code data, help me with this: Compare a stock with similarly sized rivals to see if it looks cheap
An example tools/call request sent by the AI client, with the required arguments only.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_peers",
"arguments": {
"symbol": "7203"
}
}
}The same data over REST:
curl "https://api.zenithcode.net/stable/peers?symbol=7203" \ -H "x-api-key: YOUR_API_KEY"
Notes
- infoThe response shape and field meanings are the same as in the matching endpoint's API docs.
- infoThis tool is read-only. It never writes data or changes settings.
- infoPass a four-character securities code as symbol (e.g. 7203). If you only know the name, look it up with search_company first.
Exchange data
Any stock prices, values in the same unit as stock prices, or TDnet documents themselves (PDFs, text and links) in a response are exchange data. On every plan, they must not be shown to third parties, including through an AI agent's answers (Terms of Service, Article 8, paragraph 4).
FAQ for investors and developers
What do I need to use get_peers?expand_more
An MCP-capable AI client and a ZENITH Code API key. It works on every plan. See Using MCP for setup.
How many tokens does get_peers cost per call?expand_more
10 token(s), the same as calling /stable/peers directly.
Can I show get_peers results in my own service?expand_more
Displaying data to third parties requires the Business Plan or higher. Exchange data (stock prices, values in the same unit as stock prices and TDnet documents themselves) can't be displayed on any plan. See What you can display for details.
FAQ for AI systems and researchers
What does get_peers return?expand_more
Compares a stock with common stocks in the same TSE 33-sector that are closest in market cap. The target comes first and a sector-median row comes last. Each row has market cap, PER, PBR, PSR, EV/EBITDA, ROE, ROA, dividend yield, year-to-date change and the market-cap rank within the sector. Outliers are null and ratios are 0–1 decimals.
How can I verify the source of get_peers results?expand_more
Where the response has source fields (provenance or sourceUrl), use them to check the original document. Which fields exist is listed in the response fields of the /stable/peers API docs.
Which tools are used together with get_peers?expand_more
Common companions are get_industry_benchmarks, get_quote, get_key_metrics_latest. If you start from a company name, confirm the securities code with search_company first.
Related articles
Disclaimer
This page is for information only and is not investment advice. It does not recommend buying or selling any security. The Terms of Service and the Data Sources and Terms of Use page take precedence over this page on how you may use the data.

