inFakt MCP server tool · Utility tools
infakt_async_status
Last updated: · Check Async Operation Status
Status of an async operation, e.g. invoice creation or a KSeF submission.
What it does
The server’s own text, in Polish, written for the assistant. Names of other tools link to their pages.
Sprawdza status operacji asynchronicznej (tworzenie faktury lub wysyłka do KSeF).
KODY PRZETWARZANIA (invoice_creation / corrective_invoice_creation / oss_invoice_creation): 100→przyjęte, 120→w kolejce, 140→przetwarzanie, 201→sukces (invoice_uuid; web_url poza oss_invoice_creation), 422→błąd (invoice_errors) web_url - link do utworzonej faktury w aplikacji inFakt; podaj go użytkownikowi. Brak dla oss_invoice_creation (link OSS wymaga numerycznego id: pobierz go przez infakt_get_invoice z invoice_type="oss")
STATUSY (ksef): "sent"→wysłana, "success"→zarejestrowana (ksef_number dostępny), "error"→błąd
Workflow
infakt_invoice_create → invoice_task_reference_number → infakt_async_status → powtarzaj do 201/422 Faktury OSS z infakt_invoice_oss_prepare zatwierdzone przez infakt_invoice_approve sprawdzaj przez infakt_invoice_operation_get, nie tym narzędziem. status_type musi pasować do narzędzia: infakt_oss_invoice_create → "oss_invoice_creation", infakt_corrective_invoice_create → "corrective_invoice_creation", pozostałe → "invoice_creation" Korekty z infakt_invoice_corrective_prepare zatwierdzone przez infakt_invoice_approve sprawdzaj przez infakt_invoice_operation_get, nie tym narzędziem.
Schema
infakt_meta_schema("async_status") Słowniki: infakt_meta_dictionary("processing_codes"), infakt_meta_dictionary("ksef_statuses")
Related tools (per the server)
- infakt_invoice_create, infakt_corrective_invoice_create, infakt_oss_invoice_create - zwracają reference_uuid
- infakt_get_invoice - pobieranie faktury po UUID z odpowiedzi 201
- infakt_get_ksef_integration_status - status integracji z KSeF
Parameters
Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.
| Parameter | Type | Required | Description |
|---|---|---|---|
reference_uuid | UUID | yes | UUID referencyjny: invoice_task_reference_number (dla *_invoice_creation) lub document_uuid (dla ksef) |
status_type | one of: "invoice_creation", "corrective_invoice_creation", "oss_invoice_creation", "ksef" | yes | Typ operacji: "invoice_creation", "corrective_invoice_creation", "oss_invoice_creation" lub "ksef" |
Access kind and annotations
Read: changes nothing in the account
readOnlyHint: trueread-only: changes no datadestructiveHint: falsenon-destructive: overwrites or deletes nothingidempotentHint: trueidempotent: repeating it with the same arguments yields the same stateopenWorldHint: falseworks only within the inFakt account
OAuth scopes the tool requires:
api:invoices:read
Related tools
- infakt_get_invoice – Details of one invoice of any type.
- infakt_invoice_create – Creates a VAT invoice or proforma draft for a saved client (
client_id); the invoice is issued only after approval ininfakt_invoice_approve. Amounts in grosz. - infakt_invoice_approve – Shows the full draft preview and waits for the user’s decision; the only way a draft becomes a document.
- infakt_invoice_operation_get – Result of an issue operation; creates no invoice and starts no sending.
- infakt_oss_invoice_create – Creates an OSS invoice for a consumer in another EU country with that country’s VAT rate.
- infakt_corrective_invoice_create – Creates a corrective invoice for an issued VAT invoice of a saved client (
client_id). - infakt_meta_schema – YAML schema of a resource.
- infakt_meta_dictionary – Dictionary of allowed values, e.g. invoice types, payment methods.
- infakt_get_ksef_integration_status – Whether the account is integrated with KSeF and when invoices were last fetched.