Skip to main content
Glama

Compare companies

compare_companies
Read-only

If a call is not available for this account, get_account_quota shows what this account can access. Compare key financial metrics across 2–5 Japanese listed companies using their latest annual securities report (有価証券報告書) filings. Returns a matrix of revenue, net income, total assets, equity, operating income, and period_end so mismatched fiscal year-ends are visible. Every value is a CONSOLIDATED figure for that filing's own period: non-consolidated (parent-only) and segment-dimensional values are never reported or substituted, so peer rows are always like-for-like. Concept matching reaches per-company taxonomy extensions and the five-year 主要な経営指標等の推移 (SummaryOfBusinessResults) families as well as the standard JP-GAAP, IFRS and US-GAAP concepts, so filers whose consolidated statements use no standard concept are still comparable. A metric with no consolidated current-period fact is null and carries an omission_reason (no_consolidated_context, no_current_period_fact, reported_nil, no_numeric_value, owners_equity_not_established, not_applicable_to_statement_format, no_total_concept_in_format, concept_absent, facts_unavailable) in the per-company metrics object, which also exposes each metric's own concept_id, context_ref and resolved period — the latter can differ from the row's period_end, which is the document's. Equity is always equity attributable to owners of the parent. J-GAAP filers report no single concept for it, so it is DERIVED as the owner components (株主資本 + 評価・換算差額等) of 純資産, checked to reconcile with the reported total: a derived metric carries derived: true, concept_id null, and a derivation object listing the reconciled_against total (which includes non-controlling interests and is NOT the value) and every component with its role (owner or non_owner), value and context_ref. Metrics read from a single fact carry neither field. Every metric also carries unit and decimals (the XBRL unit and precision of the value). Revenue does NOT always mean net sales. A resolved revenue metric carries basis and basis_label (en/ja); basis_label states the meaning, which can differ from the concept name and its taxonomy label. net_sales: 売上高 / revenue of a general filer. operating_revenue: 営業収益 of a general filer. ordinary_revenue_bank and ordinary_revenue_insurance: 経常収益, the GROSS top line of a Japanese-GAAP bank or insurer (interest, fees, premiums, investment revenue). It is revenue, NOT profit, even though its concept is named OrdinaryIncome... and EDINET's English label says 'Ordinary income'; 経常利益 (ordinary profit) is a different line and is never reported as revenue. operating_revenue_securities: gross 営業収益 of a securities firm, before 金融費用. operating_revenue_finance: 営業収益 of a finance, commodity-futures, investment-management or construction-guarantee filer. insurance_revenue_ifrs: IFRS 17 insurance revenue of an IFRS insurer, which excludes investment and other revenue. revenue_financial_filer_unverified: a bank, insurer or securities firm not filing Japanese GAAP whose revenue line's meaning is not established; it is not comparable with net sales. statement_format reports the EDINET industry format (general, bank, insurance, insurance_life, insurance_nonlife, securities, ...), the DEI industry code and accounting standard as filed. operating_margin_denominator is the figure operating margin must divide by: the revenue metric for most filers, but 純営業収益 (basis net_operating_revenue_securities) for a securities firm, whose gross revenue includes interest later deducted as 金融費用. Omission reason not_applicable_to_statement_format: the filing's format has no such line (a Japanese-GAAP bank or insurer has no operating income, current assets or current liabilities, so no operating margin or current ratio); no other subtotal is substituted, and it is not missing data. no_total_concept_in_format: the format tags only component lines for the metric and the filer reported no total. Source: EDINET (https://disclosure2.edinet-fsa.go.jp/), PDL 1.0 (https://www.digital.go.jp/resources/open_data/public_data_license_v1.0). Data is processed by Kabuken, not raw unprocessed FSA data. Figures are calculated by Kabuken from EDINET filings, not reported directly by EDINET. Not investment advice.

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": {
      "entity_codes": "<entity_codes>"
    },
    "name": "compare_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_codesYesList of 2 to 5 EDINET entity codes to compare (e.g. ['E02144', 'E00076']).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare readOnly/non-destructive/closed-world; the description adds substantive behavior far beyond them — consolidated-only figures with no non-consolidated substitution, a fixed omission_reason vocabulary, derived equity with reconciliation against the reported total, revenue basis disambiguation (ordinary income vs ordinary profit), the securities-firm operating-margin denominator quirk, and the EDINET/PDL 1.0 provenance and 'not raw FSA data' caveat. This is exactly the context annotations cannot supply.

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 text is a dense, unsegmented block roughly an order of magnitude longer than needed to select or invoke a one-parameter tool, with no paragraphs or bullets to separate revenue-basis taxonomy from omission reasons from derivation mechanics. The leading sentence about get_account_quota is a non sequitur that delays the actual purpose. Most individual facts are substantive, but the presentation is not front-loaded or sized appropriately.

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?

With no output schema and a complex matrix return, the description carries the full burden and does so thoroughly: metric list, unit/decimals, null-and-omission_reason contract, per-metric concept_id/context_ref/period, derived-equity shape, and revenue basis labels. An agent can interpret the response without further documentation.

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?

There is a single parameter at 100% schema coverage, so the schema already documents entity_codes, its 2–5 bounds and EDINET code format. The description only restates the 2–5 bound and adds that entities are Japanese listed companies filing annual reports; it adds no formatting or error-handling meaning for the codes themselves. Baseline 3 applies.

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 second sentence states a specific verb (Compare), resource (key financial metrics), scope (2–5 Japanese listed companies) and data source (latest annual securities report filings), and the promised return (a matrix of revenue, net income, total assets, equity, operating income, period_end) makes the multi-entity comparison role unmistakable. That 2–5 entity scope is what separates it from single-company sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the 2–5 company scope and by the note that periods are aligned so mismatched fiscal year-ends are visible, but the description never states when to prefer this over get_company_financials per company or what to do for a single-entity lookup. The opening sentence about get_account_quota is a fallback pointer, not real when-to-use guidance.

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.