Skip to main content
Glama

Polish e-Sprawozdanie Parser API - Financial XML to JSON

esprawozdanie_parser
Read-onlyIdempotent

Parse Polish KRS e-Sprawozdanie Finansowe XML annual financial statements into structured JSON: company name, NIP and KRS, reporting period, balance sheet (Bilans) and income statement (RZiS) positions with current and previous year amounts and year-over-year delta, key figures, and a balance check (assets = liabilities + equity). XXE-safe deterministic parsing, zero AI, nothing stored. Usable from AI agents via MCP. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.01/call via x402 at https://radarbg.com/x402/esprawozdanie-parser.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 200,
      "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<JednostkaInna xmlns=\"http://www.mf.gov.pl/schematy/SF/DefinicjeTypySprawozdaniaFinansowe/2018/07/09/JednostkaInnaStruktury\">\n  <WprowadzenieDoSprawozdaniaFinansowego>\n    <NazwaFirmy>Krakow Tech Sp. z o.o.</NazwaFirmy>\n    <NIP>6762511234</NIP>\n    <KRS>0000712345</KRS>\n    <OkresOd>2025-01-01</OkresOd>\n    <OkresDo>2025-12-31</OkresDo>\n  </WprowadzenieDoSprawozdaniaFinansowego>\n  <Bilans>\n    <Aktywa>\n      <KwotaA>450000.00</KwotaA>\n      <KwotaB>380000.00</KwotaB>\n      <Aktywa_A><KwotaA>150000.00</KwotaA><KwotaB>140000.00</KwotaB></Aktywa_A>\n      <Aktywa_B><KwotaA>300000.00</KwotaA><KwotaB>240000.00</KwotaB></Aktywa_B>\n    </Aktywa>\n    <Pasywa>\n      <KwotaA>450000.00</KwotaA>\n      <KwotaB>380000.00</KwotaB>\n    </Pasywa>\n  </Bilans>\n  <RZiS>\n    <RZiSPor>\n      <A><KwotaA>820000.00</KwotaA><KwotaB>690000.00</KwotaB></A>\n      <B><KwotaA>610000.00</KwotaA><KwotaB>540000.00</KwotaB></B>\n      <L><KwotaA>170100.00</KwotaA><KwotaB>121500.00</KwotaB></L>\n    </RZiSPor>\n  </RZiS>\n</JednostkaInna>\n"
    },
    "name": "esprawozdanie_parser"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of statement positions to return per section (1-3000).
contentNoRaw e-Sprawozdanie XML string. Provide either content or fileBase64.
fileNameNoOptional original XML filename.
fileBase64NoBase64-encoded e-Sprawozdanie XML file (alternative to content, max 15 MB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description adds traits those annotations cannot: XXE-safe parsing, deterministic output with zero AI inference, and no data retention. It also discloses concrete rate limits (5 calls/day per IP) and both authentication schemes with key source and endpoint, which is exactly the operational context an agent needs before calling.

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?

Front-loaded with the parse action and output shape, followed by guarantees and then commercial access terms. The pricing URLs and payment detail are dense but earn their place for authentication; the single-block format is slightly harder to scan than a segmented one.

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, and the description compensates by enumerating the returned JSON fields down to year-over-year deltas and the assets = liabilities + equity check. Combined with stated input encodings and access modes, nothing material is missing for correct invocation.

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 parameters are already documented in the schema. The description adds no detail on the content vs fileBase64 alternative, the 15 MB cap, or the limit semantics — baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Parse Polish KRS e-Sprawozdanie Finansowe XML annual financial statements into structured JSON') and enumerates the exact output sections (Bilans, RZiS, YoY delta, balance check). This distinguishes it from generic siblings like xml_to_json by naming the governing schema and jurisdiction.

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?

The domain scope (Polish KRS annual statements) makes the applicable context clear, and the access paths (5 free calls/day, X-API-Key, x402) tell an agent how it can be invoked. It stops short of explicitly saying when to prefer a generic xml_to_json sibling, so no exclusions are stated.

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