Skip to content

inFakt MCP server tool · Costs and expenses

infakt_cost_category_assign

Last updated: · Assign Cost Category

Assigns a cost category to an unbooked document scan after preview and confirmation.

Write with a confirmation tokendestructiveHintidempotentHint

What it does

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

Przypisuje kategorię kosztu do jednego skanu dokumentu (kind=document_scan).

When to use

użytkownik chce opisać skan kategorią (np. Paliwo, Usługi księgowe) przed zaksięgowaniem.

What it returns

zmienia tylko kategorię skanu o statusie Nie zaksięgowano, Do wyjaśnienia lub Odrzucono; poprzednia kategoria jest zastępowana (podgląd pokazuje starą i nową).

How to use

uuid skanu z infakt_get_costs_list (kind=["document_scan"]), cost_category_id ze słownika. Pierwsze wywołanie zwraca podgląd i confirmation_token; potem to samo wywołanie z tokenem.

Słowniki: infakt_meta_dictionary("cost_categories")

Examples

infakt_meta_examples("assign_cost_category")

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
confirmation_tokenstringnoPrzy pierwszym wywołaniu pozostaw to pole puste, aby otrzymać preview operacji i podpisany token potwierdzenia. Po akceptacji użytkownika wywołaj narzędzie ponownie z identycznym payloadem oraz zwróconym confirmation_token.
cost_category_idone of: "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "32", "33"yesID kategorii kosztu; nazwy w infakt_meta_dictionary("cost_categories")
uuidUUIDyesUUID skanu (kind=document_scan, z infakt_get_costs_list)

Access kind and annotations

Write with a confirmation token: the first call returns a preview and a token, the second call with that token performs the operation

  • readOnlyHint: false write: changes data or state
  • destructiveHint: true destructive: may overwrite or delete data, or cannot be undone
  • 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:costs:write

Related tools