Skip to main content
Glama

XBRL facts of an annual report ★

get_xbrl_facts
Read-only

Raw XBRL facts from the annual securities report, one row per element × context with Japanese/English labels, dimension members and numeric or text value. Narrow with category (Balance_Sheet, Income_Statement, Comprehensive_Income, Cash_Flow, Changes_In_Equity, Notes_and_Other) and tag (case-insensitive substring of the element name, e.g. "Assets"). Balance-sheet total assets are jppfs_cor_Assets (J-GAAP) / jpigp_cor_AssetsIFRS (IFRS), with a bs suffix in Balance_Sheet; "TotalAssets" matches only the summary of business results. Ratios are decimals. accountingStandard is the standard the whole filing declares (DEI), not the taxonomy of the row: filers that voluntarily adopt IFRS carry both jppfs_cor* (J-GAAP) and jpigp_cor_* (IFRS) sets in one filing, all rows showing IFRS — tell them apart by the tag prefix. 有報の XBRL ファクト(要素 × コンテキスト)。category と要素名の部分一致で絞り込み。貸借対照表の総資産は jppfs_cor_Assets・jpigp_cor_AssetsIFRS(Balance_Sheet では末尾 bs)。TotalAssets は経営指標の総資産だけ。accountingStandard は書類全体の会計基準(DEI の宣言値)でタグの族とは別。IFRS を任意に適用した提出者は同じ書類に jppfs_cor(日本基準)と jpigp_cor_(IFRS)の両方の組があり、どちらの行も IFRS と出る。基準はタグの接頭辞で見分ける。Costs 10 tokens. Date-times are ISO 8601 UTC (YYYY-MM-DDTHH:MM:SSZ; add 9 hours for Japan time). Date-only fields are YYYY-MM-DD. 時刻(日時)は ISO 8601 の UTC(YYYY-MM-DDTHH:MM:SSZ。日本時間は 9 時間を足す)。日付だけの項目は YYYY-MM-DD。

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": {
      "symbol": "<symbol>"
    },
    "name": "get_xbrl_facts"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoCase-insensitive substring of the XBRL element name (letters, digits, _ and - only).
limitNo
symbolYes4-digit Japanese ticker code / 4桁の証券コード (e.g. "7203" = Toyota)
categoryNoFact category. Omit for all.
fiscalPeriodNoFiscal year end as YYYY-MM. Omit for the latest annual report. / 省略時は最新の有報

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

readOnlyHint=true already establishes this is a safe read, and the description adds real value on top by disclosing the fact-name conventions (jppfs_cor_Assets vs jpigp_cor_AssetsIFRS, _bs suffix), that ratios are decimals, and that accountingStandard is a DEI filing-level declaration rather than the row's taxonomy — including the trap that an IFRS-adopting filer shows both jppfs_cor_* and jpigp_cor_* sets all labelled IFRS. It says nothing about limit/truncation behaviour (the schema caps limit at 2000), which matters for a raw-fact dump of potentially thousands of rows.

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

Conciseness3/5

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

The substantive content is front-loaded and useful, but the definition roughly duplicates itself in English and Japanese, and closes with a block of generic ISO 8601 date-format boilerplate that is irrelevant here since the schema has no date-time parameters (fiscalPeriod is YYYY-MM). That padding dilutes an otherwise tight description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with no output schema, the description carries return-shape information well by describing the row structure and explaining output fields such as accountingStandard and TotalAssets. What is missing is pagination/limit semantics and the one undocumented category value.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 80% schema coverage the baseline is 3, and the description earns above that by explaining tag as a case-insensitive substring with a worked example and by decoding the real-world meaning of the category choices. Minor gap: it lists only six category values and omits Notes_and_Other_Meta, and limit is never discussed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Raw XBRL facts from the annual securities report') and even specifies the row grain ('one row per element × context with Japanese/English labels, dimension members and numeric or text value'). 'Raw' implicitly separates it from the pre-shaped statement tools, but no sibling is named, so the differentiation is only inferential.

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

Usage Guidelines4/5

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

It gives concrete filtering guidance ('Narrow with category ... and tag ... e.g. "Assets"') and steers the agent away from a common mistake by noting that "TotalAssets" matches only the business-results summary rather than balance-sheet assets. It does not, however, state when to prefer an alternative such as the dedicated balance-sheet statement tool, nor any exclusions.

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