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_batch_key_metrics_latest

The MCP tool for Latest key metrics for multiple stocks (up to 50). Each call costs 10 token(s).

Key points

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

What this tool returns

Returns the latest PER, PBR, dividend yield, annual dividend, consecutive non-decrease years (including flat years) and 3-year and 5-year CAGRs for up to 50 stocks in one call, with the same fields as the latest key metrics endpoint. Pass symbols=7203,6758,9984. Results follow the order you gave, duplicates are merged, and symbols that are not found come back with found=false and null values.

Description sent to AI clients

Latest PER, PBR, dividend yield, annual dividend, consecutive non-decrease years (including flat years) and 3y/5y CAGRs for up to 50 companies in ONE call (same fields as get_key_metrics_latest). Results follow the request order; unknown symbols come back with found=false instead of failing the call. Prefer this over repeated get_key_metrics_latest calls when comparing or screening a list. 最大50銘柄の最新の PER・PBR・配当利回り・CAGR などを1回で取得(get_key_metrics_latest と同じ項目)。リクエスト順で、見つからない銘柄は found=false。

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

What you can answer with it

  • chatFetch PER and dividend yield for a handful of stocks you want to compare
  • chatList the dividend yield and dividend-increase streak of all your holdings
  • chatLine up the growth rates of several peers

Arguments

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

ArgumentTypeRequiredDescription
symbolsstringRequiredUp to 50 securities codes separated by commas (e.g. 7203,6758,9984). Duplicates are merged

REST endpoint

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

Examples

Example prompt

Using ZENITH Code data, help me with this: Fetch PER and dividend yield for a handful of stocks you want to compare

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_batch_key_metrics_latest",
    "arguments": {
      "symbols": "7203,6758,9984"
    }
  }
}

The same data over REST:

curl "https://api.zenithcode.net/stable/batch-key-metrics-latest?symbols=7203,6758,9984" \
  -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.
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_batch_key_metrics_latest?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_batch_key_metrics_latest cost per call?expand_more

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

Can I show get_batch_key_metrics_latest 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_batch_key_metrics_latest return?expand_more

Returns the latest PER, PBR, dividend yield, annual dividend, consecutive non-decrease years (including flat years) and 3-year and 5-year CAGRs for up to 50 stocks in one call, with the same fields as the latest key metrics endpoint. Pass symbols=7203,6758,9984. Results follow the order you gave, duplicates are merged, and symbols that are not found come back with found=false and null values.

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

Which tools are used together with get_batch_key_metrics_latest?expand_more

Common companions are get_key_metrics_latest, get_batch_quotes, screen_stocks. 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.