The MCP KSeF server provides 7 invoice-related tools with basic verb-noun naming (get_*, query_*) and parameter descriptions visible in source code. However, there are significant gaps in output schema documentation, parameter type precision, and error handling guidance. Descriptions are present but terse (9-18 words on average, below the 50-200 char optimal range). No evidence of input validation, error recovery guidance, or permission gating. Parameters use enums and defaults (good), but output schemas are not documented in tool definitions, LLMs cannot plan downstream calls without knowing return structure. The tools are READ_ONLY and non-destructive, reducing risk, but lack the structured output patterns expected for production agents.
Pobiera fakturę wg numeru faktury
Pobiera fakturę po numerze ksef
Zwraca qr kod do faktury po numerze ksef
Zwraca link do faktury po numerze ksef
Pobiera faktury dla kupującego o podanym NIP
Pobiera faktury dla kupującego o podanym VAT UE
Output schemas not documented in tool definitions. Tools return complex types (string, PagedInvoiceResponse, IEnumerable<ContentBlock>) but LLMs have no visibility into the structure of returned fields. This prevents effective planning of downstream tool calls and forces LLMs to guess at response structure.
Tool descriptions are minimal (9-18 words) and lack context about when to use each tool vs. others. Description baseline for A+ tools is 194 chars; these are 40-60 chars. No guidance on prerequisites (e.g., 'requires valid authentication'), return value semantics, or why query_invoices exists vs. get_invoice_by_invoice_number.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 48 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 48 | - | v1 |
Pobiera listę faktur z podanego okresu z systemu ksef na podstawie zapytania
No error handling guidance. Code shows authorization checks (VerifyAuthToken) and API calls that could fail, but no error messages or recovery instructions are visible. LLMs will not know whether a failure is retryable, user-fixable, or fatal.
Polish-language descriptions and parameter names ('Pobiera', 'dataFakturyOd', 'dataFakturyDo', 'kupujacego') are hostile to English-language LLMs. Standard MCP practice is English descriptions and snake_case parameter names. This forces translation overhead and risks parameter misunderstanding.
Enum parameters (InvoiceSubjectType, DateType) in query_invoices lack description of their valid values. The code shows defaults (Subject1, Issue) but tool definition does not document the full enum range. LLMs cannot discover valid options.
Tool names contain overlapping semantics without clear distinction. 'get_invoice_by_ksef', 'get_invoice_by_invoice_number', 'get_invoices_for_buyer_by_nip', 'get_invoices_for_buyer_by_vateu' all retrieve invoices but differ in identifier type. Names are clear but descriptions do not explain the search dimension or use case for each.
query_invoices returns PagedInvoiceResponse but output schema is not visible. No documentation of pagination behavior (does it support limit/offset? what is the default page size?). LLMs cannot construct paginated queries or understand result truncation.
get_invoice_by_ksef and get_invoice_url_by_ksef both take 'ksefNumber' but return different types (invoice data vs. URL). Descriptions do not explain the use case difference. LLMs may pick the wrong tool.