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_market_breadth

The MCP tool for Market breadth. Each call costs 1 token(s).

Key points

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

What this tool returns

Returns the number of advancing, declining and unchanged stocks, the advance/decline ratio, the number of new 52-week highs and lows, and total trading value for the latest trading day. The first row is the whole market (ALL); groupBy=sector adds one row per TSE 33-sector. Common stocks by default; you can filter by market segment.

Description sent to AI clients

How broad is the market move? Advancers, decliners, unchanged, advance/decline ratio, number of new 52-week highs and lows and total trading value for the latest trading day — whole market first, optionally one row per TSE 33-sector (groupBy=sector). Common stocks by default; filter by market segment (prime / standard / growth). 騰落銘柄数・騰落レシオ・新高値/新安値の数・売買代金(全体と業種別)。Costs 1 token.

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

What you can answer with it

  • chatCheck whether today's rally is broad or limited to a few stocks
  • chatUse the advance/decline ratio as a rough gauge of market heat
  • chatCompare the number of advancers across sectors

Arguments

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

ArgumentTypeRequiredDescription
groupBystringnone | sector—sector adds one row per TSE 33-sector; none (default) returns the whole market onlyDefault: none
marketstringprime | standard | growth—Market segment (prime, standard or growth)
includeEtfboolean—true to include ETFs and REITs (default: common stocks only)

REST endpoint

This tool calls /stable/market-breadth. 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: Check whether today's rally is broad or limited to a few stocks

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_market_breadth",
    "arguments": {}
  }
}

The same data over REST:

curl "https://api.zenithcode.net/stable/market-breadth" \
  -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_market_breadth?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_market_breadth cost per call?expand_more

1 token(s), the same as calling /stable/market-breadth directly.

Can I show get_market_breadth 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_market_breadth return?expand_more

Returns the number of advancing, declining and unchanged stocks, the advance/decline ratio, the number of new 52-week highs and lows, and total trading value for the latest trading day. The first row is the whole market (ALL); groupBy=sector adds one row per TSE 33-sector. Common stocks by default; you can filter by market segment.

How can I verify the source of get_market_breadth 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/market-breadth API docs.

Which tools are used together with get_market_breadth?expand_more

Common companions are get_market_movers, get_new_highs_lows, get_sector_performance. 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.