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.
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)
- infakt_get_costs_list - znajdź skan (uuid)
- infakt_get_cost - bieżąca kategoria z fields=category
Parameters
Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.
| Parameter | Type | Required | Description |
|---|---|---|---|
confirmation_token | string | no | Przy 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_id | one 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" | yes | ID kategorii kosztu; nazwy w infakt_meta_dictionary("cost_categories") |
uuid | UUID | yes | UUID 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: falsewrite: changes data or statedestructiveHint: truedestructive: may overwrite or delete data, or cannot be undoneidempotentHint: trueidempotent: repeating it with the same arguments yields the same stateopenWorldHint: falseworks only within the inFakt account
OAuth scopes the tool requires:
api:costs:write
Related tools
- infakt_get_costs_list – Lists costs with date, kind and status filters.
- infakt_meta_dictionary – Dictionary of allowed values, e.g. invoice types, payment methods.
- infakt_meta_examples – Example calls for an operation.
- infakt_get_cost – One cost document with its lines.