Skip to main content
Glama
gacabartosz
by gacabartosz

ksef_correction_zero

Create a zero-value correction invoice from KSeF data by setting all item quantities to zero. Eliminates the need for an original local draft.

Instructions

Utwórz korektę zerującą na podstawie danych faktury z KSeF. Zeruje wszystkie pozycje (ilość → 0). Nie wymaga lokalnego draftu oryginału.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesPozycje oryginalnej faktury
buyerNipYesNIP nabywcy
currencyNoWaluta (domyślnie PLN)
sellDateNoData sprzedaży oryginału (YYYY-MM-DD)
buyerNameYesNazwa nabywcy
issueDateYesData wystawienia oryginału (YYYY-MM-DD)
sellerNipYesNIP sprzedawcy
ksefNumberYesNumer KSeF faktury korygowanej
sellerNameYesNazwa sprzedawcy
buyerAddressNoAdres nabywcy
exchangeRateNoKurs waluty (PLN za 1 jednostkę) — wymagany dla faktur walutowych, generuje P_14_xW
forcedVatPlnNoRęczne nadpisanie P_14_xW wg stawki VAT, np. {"1": -3197.74} → P_14_1W=-3197.74. Dla KOR-do-KOR.
invoiceNumberYesNumer oryginalnej faktury
sellerAddressNoAdres sprzedawcy
correctionReasonYesPowód korekty (min. 3 znaki)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses the mutation's key side effect (all item quantities are set to zero) and the prerequisite condition (no local draft of the original). It does not cover output or post-creation submission behavior, but the most safety-critical facts are present.

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

Conciseness5/5

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

Three short sentences, all informative: the action, the zeroing behavior, and the draft prerequisite. No filler, and the core verb-object is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 15 parameters, nested items, and no output schema, the description is adequate for selecting and roughly calling the tool but leaves gaps: it does not say what the tool returns, whether it sends a correction to KSeF immediately or creates/stages it, or how the KSeF data should be supplied. The schema covers parameters, but operational context is thin.

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 individually. The description adds context that the items list represents original positions and that quantity values will be zeroed, but it does not explain individual parameter mechanics beyond the schema; baseline 3 is appropriate.

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?

Description uses a specific verb and object: 'Utwórz korektę zerującą' plus the concrete behavior 'Zeruje wszystkie pozycje (ilość → 0)'. This clearly distinguishes it from the generic ksef_correction_create sibling and tells an agent exactly what the tool produces.

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 states when it applies: corrections based on KSeF invoice data, and explicitly notes that no local draft of the original is required. It does not name an alternative tool or give an explicit when-not-to-use condition, so it stops short of a 5.

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