Skip to main content
Glama

Polish JPK_VAT / JPK_V7 XML Parser API - Tax Audit

jpk_vat_parser
Read-onlyIdempotent

Parse Polish JPK_V7M, JPK_V7K, JPK_FA, JPK_KR and JPK_WB XML files into structured JSON: company NIP, period, sales and purchase rows, VAT declaration, and control-sum verification (stated vs counted totals and row counts). XXE-safe deterministic XML 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.005/call via x402 at https://radarbg.com/x402/jpk-vat-parser.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of rows to return per table (1-2000).
contentNoRaw JPK XML string. Provide either content or fileBase64.
fileNameNoOptional original XML filename.
fileBase64NoBase64-encoded JPK XML file (alternative to content, max 15 MB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/openWorld, and the description adds real behavioral context beyond them: XXE-safe deterministic parsing, no AI, nothing stored, and a 5 calls/day per-IP free limit with key or x402 payment options. It also discloses that control sums (stated vs counted totals and row counts) are verified, which is a meaningful behavioral trait. It stops short of describing error behavior on malformed or non-JPK XML.

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 supported formats, then security and access terms. Dense but each clause carries information; the pricing URLs and per-call cost are somewhat promotional but still operationally relevant for authentication.

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?

With no output schema, the description compensates by enumerating the returned structure (company NIP, period, sales and purchase rows, VAT declaration, control-sum verification). Combined with the auth and rate-limit details, an agent has enough to call it correctly; only failure modes and response envelope details are absent.

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 limit, content, fileName and fileBase64 are already documented, including the content-or-fileBase64 alternative and the 15 MB cap. The description adds no syntax or format meaning beyond what the schema provides, so the 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?

States a specific verb (Parse) and a precise resource set (JPK_V7M, JPK_V7K, JPK_FA, JPK_KR, JPK_WB XML), plus the output shape (NIP, period, sales/purchase rows, VAT declaration, control sums). This clearly separates it from generic converters like xml_to_json or other national e-invoice parsers in the sibling list.

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 named formats, but there is no explicit when-to-use/when-not guidance and no routing to alternatives such as xml_to_json or ksef_invoice_parser. The commercial framing (free tier, API key, x402) is present but that is access guidance, not tool-selection 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.

Resources