Skip to content

inFakt MCP server tool · Invoice drafts and approval

infakt_invoice_prepare

Last updated: · Prepare Invoice Draft

Builds or revises a VAT invoice or proforma draft; lines change through a change list, nothing is created in inFakt.

Write through a draft and approvaldestructiveHint

What it does

The server’s own text, in Polish, written for the assistant. Names of other tools link to their pages.

Uzupełnij rodzaj sprzedaży w projekcie VAT lub proformy (kind="proforma"), bez wystawienia faktury.

Odpowiedź formularza nie jest zgodą na wystawienie. Gotowy projekt wystaw przez infakt_invoice_approve.

Schema

infakt_meta_schema("invoice_draft")

Parameters

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

ParameterTypeRequiredDescription
draft_pidstringno
expected_revisioninteger (≥ 1)no
invoiceobject (bank_account, bank_name, bdo_code, building_service, check_duplicate_number, client_id, continuous_service_end_on, continuous_service_start_on, currency, document_markings_ids, invoice_date, invoice_date_kind, kind, local_government_recipient_address, local_government_seller_address, not_income, notes, number, occasional_sale, paid_date, paid_price, payment_date, payment_method, receipt_number, recipient_signature, sale_date, sale_type, sales_kind, seller_signature, services, split_payment, split_payment_type, status, swift, third_party_addresses, transaction_kind_id, transaction_terms, vat_date_value, vat_exchange_date_kind, vat_exemption_reason)noKwoty w groszach. Brakujące pola można uzupełnić kolejnym wywołaniem.
line_changeslist of object (max 1000)no
source_invoice_uuidUUIDnoKopia faktury VAT albo proformy (invoice.kind="proforma"); źródło czytane tylko przy tworzeniu.

Access kind and annotations

Write through a draft and approval: the tool builds a draft outside inFakt; the document is created after the user approves it

  • readOnlyHint: false write: changes data or state
  • destructiveHint: true destructive: may overwrite or delete data, or cannot be undone
  • idempotentHint: false non-idempotent: each call may add something new
  • openWorldHint: false works only within the inFakt account

OAuth scopes the tool requires:

  • api:invoices:write
  • api:invoices:read
  • api:account:read
  • api:sensitive:bank_accounts:read

Related tools