Skip to content

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.

ReadreadOnlyHintidempotentHint

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)

Parameters

Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.

ParameterTypeRequiredDescription
reference_uuidUUIDyesUUID referencyjny: invoice_task_reference_number (dla *_invoice_creation) lub document_uuid (dla ksef)
status_typeone of: "invoice_creation", "corrective_invoice_creation", "oss_invoice_creation", "ksef"yesTyp operacji: "invoice_creation", "corrective_invoice_creation", "oss_invoice_creation" lub "ksef"

Access kind and annotations

Read: changes nothing in the account

  • readOnlyHint: true read-only: changes no data
  • destructiveHint: false non-destructive: overwrites or deletes nothing
  • idempotentHint: true idempotent: repeating it with the same arguments yields the same state
  • openWorldHint: false works only within the inFakt account

OAuth scopes the tool requires:

  • api:invoices:read

Related tools