Skip to main content
Glama
berthelius

Frihet MCP Server

Submit to KSeF (Poland)

ksef_submit

Submit invoices to the Polish KSeF national e-invoicing system. Supports mock, sandbox, and production modes for development and live use.

Instructions

Submit an invoice to the Polish KSeF (Krajowy System e-Faktur) national e-invoicing system. Poland requires e-invoicing for B2B transactions (mandatory phase rolling out 2025).

Modes: • mock — local simulation (no network call, safe for dev/test) • sandbox — KSeF test environment (demo.ksef.mf.gov.pl) • production — live KSeF endpoint (ksef.mf.gov.pl)

NOTE: This tool is a forward-compatible stub. The KSeF Cloud Function lands in PR #417. Until merged, all calls return a NotImplementedYet error with guidance on when it will be available. / NOTA: Este tool es un stub anticipatorio. La Cloud Function KSeF se activa con el PR #417. Hasta su merge, todas las llamadas devuelven un error NotImplementedYet con instrucciones.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoSubmission mode: mock (local sim), sandbox (KSeF test), production (live KSeF). Default: production. / Modo de envío: mock (simulación), sandbox (test KSeF), production (KSeF real).
invoiceIdYesFrihet invoice ID to submit to KSeF / ID de la factura a enviar a KSeF

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
_noteNoGuidance on when the tool activates
invoiceIdNo
_notImplementedNoAlways true — endpoint pending PR #417
_plannedEndpointNoPlanned REST endpoint path
Behavior4/5

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

The description transparently discloses the stub status and the error behavior, which annotations alone do not cover. Annotations lack an explicit hint for stub, but the description fills that gap. No contradictions with annotations.

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 description is slightly bloated by bilingual content (English and Spanish), which is unnecessary for an AI agent's understanding. Core information is front-loaded, but every sentence does not earn its place due to the duplication.

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?

Given the output schema exists, return value details are not needed. The description covers submission modes, stub status, and error behavior. It is complete for a tool that is not yet fully functional, though it could mention whether it is idempotent.

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?

Schema coverage is 100% with descriptions for both mode and invoiceId. The description adds value by elaborating on mode enum values (mock, sandbox, production) with actual environment URLs, and explains invoiceId as 'Frihet invoice ID'. This provides context beyond the schema's brief descriptions.

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 description clearly states the tool submits invoices to the Polish KSeF system, a specific verb-resource pair. It distinguishes itself from sibling tools like ticketbai_submit or send_einvoice by specifying the Polish national system and its mandatory rollout context.

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 description details three modes (mock, sandbox, production) and explicitly notes the tool is a stub returning NotImplementedYet error until PR #417, guiding the agent on current limitations. It does not, however, explicitly compare to alternative e-invoice tools or provide when-not-to-use advice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/berthelius/frihet-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server