Skip to main content
Glama

XBRL Financial Statement Normalizer (IT/DE/FR/IFRS)

xbrl_statement_normalizer
Read-onlyIdempotent

[Deterministic XBRL financial statement normalizer. Pure calculation & parsing, read-only, side-effect free]. Parses and normalizes raw European XBRL instance documents (IT OIC, DE HGB, FR PCG, EU IFRS) into standardized financial indicators: EBITDA, EBIT, Net Financial Debt (PFN), Working Capital (CCN), Solvency ratio, and Current ratio with decimal.js precision. Usage: Use this tool to ingest statutory annual reports and extract comparable financial ratios for credit, M&A, or vendor due diligence. Returns: JSON object with { reportingStandard: string, companyName: string, fiscalYear: number, reclassifiedBalanceSheet: object, reclassifiedIncomeStatement: object, financialRatios: object, creditRiskIndicator: object }.

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": {
      "companyVatOrId": "<companyVatOrId>",
      "reportingYear": "<reportingYear>"
    },
    "name": "xbrl_statement_normalizer"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportingYearYesFinancial statement reporting fiscal year
companyVatOrIdYesCompany national tax ID or VAT number
taxonomyStandardNoAccounting taxonomy standard (default: XBRL_OIC_ITALY)
financialsSummaryNoPre-parsed structured financial inputs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description reinforces it with 'deterministic', 'pure calculation & parsing', 'side-effect free', plus decimal.js precision, so numeric stability is disclosed. It also describes the return shape in detail. The remaining gap is provenance: it never says whether filings are fetched by VAT ID or supplied, which matters for a tool whose schema has no raw-document field.

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

Conciseness4/5

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

Bracketed preamble plus clearly labelled 'Usage:' and 'Returns:' sections make it easy to scan and front-load the key facts. Slight waste in restating read-only/side-effect-free, which the annotations already declare.

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 four-parameter tool with no output schema, the description compensates well by enumerating the returned JSON keys (reportingStandard, reclassifiedBalanceSheet, financialRatios, creditRiskIndicator). The one substantive omission is the data-source question implied by the mismatch between 'parses raw XBRL' and a schema that takes an identifier and optional summary figures.

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% and every parameter and nested financial field is documented in-schema, so the description adds nothing parameter-specific. Baseline 3 applies, especially since the description's talk of 'raw XBRL instance documents' conflicts with a schema built around companyVatOrId plus an optional pre-parsed financialsSummary.

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?

Names a specific verb and resource ('Parses and normalizes raw European XBRL instance documents') and enumerates the exact outputs produced (EBITDA, EBIT, PFN, CCN, solvency, current ratio). The domain coverage (IT OIC, DE HGB, FR PCG, EU IFRS) makes it unmistakable against siblings like eu_taxonomy_alignment_checker or pan_eu_company_lookup.

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?

Explicitly frames the use case: 'ingest statutory annual reports and extract comparable financial ratios for credit, M&A, or vendor due diligence.' That gives a clear selection context, but no when-not conditions or named alternatives among the sibling tools.

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