Skip to main content
Glama

ラジ株ナビ (Radikabunavi) - Japanese stock data from EDINET/TDnet

四半期の実績の推移

get_quarterly_results
Read-only

銘柄コードを指定して、過去の四半期ごとの実績(売上高・営業利益・経常利益・純利益・EPS・包括利益・総資産・純資産・営業CFなど)の推移を返します。 四半期ごとの業績の推移・季節性・前年同期比・3か月単独の伸びを見るときに使います(年度の財務は get_edinet_financial_data、最新の四半期の会社予想と進捗は get_earnings_forecast)。

材料: EDINET の四半期報告書・半期報告書(2016年度〜)と決算短信。通期(quarter: 4)は有価証券報告書(無い年度は年度の決算短信)。 2024年4月以降に始まる期は四半期報告書が廃止されたため、第1・第3四半期は決算短信の値です(短信が無い四半期は gaps に quarterly_report_abolished として出ます)。 同じ期が複数の材料にあるときは、報告書 > その期の短信 > 翌年の短信の前年同期の欄 の順に1つを採り、source に出どころを書きます (quarterly_report=四半期報告書 / semiannual_report=半期報告書 / annual_report=有価証券報告書 / tanshin=決算短信 / tanshin_prior_year_column=翌年の決算短信の前年同期の欄)。

金額は円(短信の値は百万円単位で丸められた値を円に直したもの)、eps は円(今の株数の基準に分割調整済み・小数2桁。調整前は epsAsReported。丸めて 0 になった小さな値は epsSignBeforeRounding に丸める前の符号)、capitalAdequacyRatio(自己資本比率)は %。cumulative は期首からの累計(総資産・純資産・自己資本・自己資本比率・現金同等物は期末時点)、standalone は3か月単独(累計の差。第1四半期は累計そのもの、第4四半期は通期−第3四半期累計)。IFRS・米国基準の行は経常利益の区分が無いため、税引前利益を profitBeforeTax の名前で返します(ordinaryIncome は日本基準の経常利益だけ)。

返却値: fiscalYears(新しい年度から。各年度の quarters は第1〜第4四半期の順)。各行は periodKey・quarter・periodStart・periodEnd・accountingStandard・source・document(書類番号・提出日)・cumulative・standalone。 各年度の granularity: quarterly=四半期の報告書がある年度(2016〜2023年度ごろ)/ semiannual=四半期報告書の廃止で報告書は上期と通期だけの年度(granularityNote に理由)。 semiannual の年度は halves に上期(half: 1。半期報告書の値)と下期(half: 2。source: derived_annual_minus_h1 = 有報の通期 − 上期の差し引き。損益とCFだけ、B/S と EPS は作らない)を返します。 下期を作れないときは unavailableReason(h1_missing / h1_not_from_report / annual_report_missing / irregular_period / accounting_standard_differs / consolidation_differs=連結・単体が違う疑い / annual_amended=通期の有報に値の変わる訂正がある)。 3か月単独を作れない行は standalone が null で standaloneUnavailableReason(previous_quarter_missing=前の四半期が無い / irregular_period=決算期変更など / accounting_standard_differs=前の四半期と会計基準が違う / cross_document_unverified=報告書と同じ期の決算短信が無く、報告書と短信をまたぐ差を確かめられない)。 単独は同じ種類の書類どうしの差で作ります。報告書と短信をまたぐ行(mixedSources)は、報告書の側を同じ期の決算短信の値に置き換えた短信どうしの差です(銘柄ページの四半期の進捗の表と同じ)。 同じ期の短信にその項目が無いときは、その項目だけ standalone.unavailableFields に理由を書いて空けます。報告書と同じ期の短信で値が違った項目は standaloneCrossDocumentMismatches に出します(科目の定義の違い。値は短信どうしの差)。 standaloneWarning: cumulative_net_sales_decreases は、差を取った行のどちらかで累計の売上が前の四半期より小さい(材料どうしで売上の定義・連結の範囲・単位が違う疑い。単独の値が負や過大になりえます)。 印(値は書き換えていません): irregular=決算期変更の年度など / mismatches=同じ期の決算短信と食い違う値 / restatedLater=翌年の書類の前年同期の欄が違う値(遡及修正・組み替え・訂正)/ amendments=訂正報告書で変わった値 / adjustments=原本の経営指標等の欄の取り違えを損益計算書の値に直した項目 / currency=円以外の通貨のまま(換算していない)/ seamCheck=短信の行の前年同期の欄と前年の報告書の行の突き合わせ(consistent=一致 / differs=食い違い / not_comparable=比べられない。accountingStandardChanged は会計基準が変わったこと)/ laterReportedPriorFiscalYear=通期の行と、後の四半期報告書の「前期の通期」の欄の食い違い。 reportedPriorYear: その行の書類(報告書・短信)に載っている前年同期の欄(期首からの累計。values・source)。会計基準の変更・遡及修正の後の組み替え後の値で、その行と同じ基準です。前年同期比(get_stock_analysis の四半期の推移・銘柄ページ)はこの値を先に使います。 上場廃止の会社も過去の記録として返します(listingStatus に上場廃止と書きます)。

引数: fiscalYears で新しい方から何年度分か(既定 3・最大 11)、metrics で項目を絞れます。利用回数は1回の呼び出しで1回です。

応答の metricLabels は英語キー→日本語指標名の対訳です。利用者向けには日本語名(例: netSales→「売上高」)のほうが伝わりやすくなります。 データ品質・値の異常・不具合に触れる場合も同様で、フィールド名を示すときは「発行済株式数(sharesOutstanding)」のように日本語を主・英語キーを括弧内にすると読みやすくなります。

※ 本データは情報提供を目的とし、投資助言・推奨ではありません。

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": {
      "code": "<code>"
    },
    "name": "get_quarterly_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes証券コード(例: 7203)
metricsNo返す項目(省略時は全部)。指定できる項目: netSales, operatingIncome, ordinaryIncome, netIncome, eps, comprehensiveIncome, totalAssets, netAssets, equity, capitalAdequacyRatio, cashFlowFromOperations, cashFlowFromInvesting, cashFlowFromFinancing, cashAndEquivalents, profitBeforeTax(IFRS・米国基準の税引前利益)
fiscalYearsNo新しい方から何年度分を返すか(既定 3、最大 11)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, but the description adds substantial behavioral context beyond them: source precedence (report > same-period tanshin > prior-year column), the post-2024 abolition of quarterly reports and the resulting gaps entries, currency/rounding conventions, cumulative vs standalone construction, and the meaning of each warning flag. The only shortfall is that this information is delivered as an undifferentiated wall of text, which makes it hard to apply reliably at call time.

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

Conciseness2/5

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

The purpose and alternatives are front-loaded, but the body is an extremely long, unsegmented block covering sources, granularity, flags, units and response fields, with no headings or lists to aid scanning. It also drifts into output-formatting advice for the agent ('present Japanese metric names first, English keys in parentheses') and a usage-count note, which do not help tool selection and dilute the actionable content.

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?

There is no output schema, so the description must carry the return contract, and it does: fiscalYears/quarters ordering, per-row fields, granularity values, halves, and the reason enums for gaps, standalone unavailability and warnings. For a tool of this complexity, an agent has enough to interpret the response 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 description coverage is 100%, so the schema already documents code, metrics (with the full enum of allowed keys) and fiscalYears (default 3, max 11). The description restates the same defaults and limits for fiscalYears and metrics without adding new semantics such as behavior on invalid metric keys or out-of-range years. Baseline 3 applies when the schema carries the parameter meaning.

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?

The first sentence gives a specific verb and resource: returns the historical quarterly results (sales, operating income, ordinary income, net income, EPS, etc.) for a given stock code. It immediately names the boundaries against siblings (annual financials → get_edinet_financial_data, latest quarterly forecast/progress → get_earnings_forecast), so an agent can separate this from its nearest neighbors 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 Guidelines5/5

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

It explicitly states when to use it (quarterly trend, seasonality, year-over-year, three-month standalone growth) and names both alternative tools with the conditions that select them. It also tells the agent which argument narrows the result (fiscalYears, metrics), leaving little to inference.

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