Get free API key
Docs menuexpand_more
travel_exploreTry in the API Viewer

Guides

Endpoints

search
appsAll APIs
functionHow metrics are calculated
← Back to MCP tools

MCP tool

get_key_metrics

The MCP tool for Key financial metrics (per period). Each call costs 1 token(s).

Key points

  • check_circleIt maps to the REST endpoint /stable/key-metrics, with the same response shape.
  • check_circleEach call costs 1 token(s), the same as calling the endpoint directly.
  • check_circleRequired arguments: symbol

What this tool returns

Returns per-period metrics such as ROE, ROA, ROIC, margins, BPS, payout ratio, leverage, split-adjusted EPS and BPS, PER, PBR, EV and dividend yield at the period-end price (dividend yield on annual rows only), trailing twelve-month values and company forecasts. Ratios are 0–1 decimals (0.1 = 10%). For metrics based on the current price, use /stable/key-metrics-latest.

Description sent to AI clients

Valuation and profitability metrics per period: PER, PBR, PSR, PEG, ROE, ROA, ROIC, EBITDA, EV/EBITDA, free cash flow, dividend yield, payout ratio, equity ratio, BPS, margins, beta, WACC. PER / PBR / dividend yield use each period's period-end price (dividend yield on annual rows only); for today's values use get_key_metrics_latest. Ratios are 0-1 decimals. 主要指標。

The model reads this description to choose the tool. It is written in both English and Japanese.

What you can answer with it

  • chatTrack ROE and margins to see how profitability changes
  • chatCompare period-end PER and PBR with the past to judge valuation
  • chatFetch many financial ratios in one call as screening input

Arguments

Argument names are the same as the REST query parameters. Optional arguments can be omitted.

ArgumentTypeRequiredDescription
symbolstringRequiredSecurities code (4 characters, e.g. 7203 = Toyota Motor; alphanumeric codes such as 130A also work)
periodstringQ1 | Q2 | Q3 | Q4 | FY | annual | quarter—Period type: annual = fiscal years only, quarter = quarters only. Q1, Q2, Q3, Q4 or FY also work. Omit for all
limitinteger—Maximum number of rows to return (default 10, max 40)Default: 10Range: 1–40

REST endpoint

This tool calls /stable/key-metrics. Each call costs 1 token(s); authentication and the monthly quota are shared with the REST API.

Examples

Example prompt

Using ZENITH Code data, help me with this: Track ROE and margins to see how profitability changes

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_key_metrics",
    "arguments": {
      "symbol": "7203"
    }
  }
}

The same data over REST:

curl "https://api.zenithcode.net/stable/key-metrics?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.
warning

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_key_metrics?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_key_metrics cost per call?expand_more

1 token(s), the same as calling /stable/key-metrics directly.

Can I show get_key_metrics 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_key_metrics return?expand_more

Returns per-period metrics such as ROE, ROA, ROIC, margins, BPS, payout ratio, leverage, split-adjusted EPS and BPS, PER, PBR, EV and dividend yield at the period-end price (dividend yield on annual rows only), trailing twelve-month values and company forecasts. Ratios are 0–1 decimals (0.1 = 10%). For metrics based on the current price, use /stable/key-metrics-latest.

How can I verify the source of get_key_metrics 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/key-metrics API docs.

Which tools are used together with get_key_metrics?expand_more

Common companions are get_key_metrics_latest, get_income_statement, get_valuation_history. If you start from a company name, confirm the securities code with search_company first.

info

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.