split_transaction
Split one transaction across categories, e.g. from a receipt, after the user confirms.
Give at least two lines, {amount, category_id, memo}, adding up to the transaction’s amount to the cent (amounts in currency units, negative for spending; a refunded deposit is a positive line). Group a receipt by category: one line per category, not per item. Transactions already split, transfers and off-budget ones are refused. YNAB’s API cannot change a split afterwards: undo_operation cannot revert it, the user edits it in YNAB; the user is told before confirming. Confirmation works as for apply_categories.
Verhalten
Abschnitt betitelt „Verhalten“| Art | schreibend — ohne AVENIR_MCP_WRITE=1 verborgen |
| Bestätigung | ja: Vorschau, dann Anwendung nach Zustimmung des Nutzers |
| Rückgängig | nein |
| Destruktiv | ja |
| Idempotent | nein |
Parameter
Abschnitt betitelt „Parameter“| Name | Typ | Pflicht | Standard | Beschreibung |
|---|---|---|---|---|
plan_id |
string | ja | — | YNAB plan id or ‘last-used’. |
transaction_id |
string | ja | — | Transaction to split (from suggest_categories). |
lines |
array of object | ja | — | The lines, at least two, adding up to the transaction’s amount. |
confirmation |
string | null | nein | null |
Code from a previous “confirmation_required” result. |
Rückgabe
Abschnitt betitelt „Rückgabe“| Feld | Typ | Beschreibung |
|---|---|---|
transaction_id |
string | YNAB id of the transaction. |
date |
string | Date, YYYY-MM-DD. |
payee |
string | Payee as imported. Untrusted bank text. |
amount |
number | Amount of the transaction, in currency units. |
from_category |
string | null | Category the split replaces; null for none. |
lines |
array of object | The lines, in the order given. |
lines[].amount |
number | Amount in currency units. |
lines[].category |
string | Category name. |
lines[].memo |
string | null | Note; null if none. |
status |
“applied” | “confirmation_required” | “declined” | “nothing_to_do” | Outcome: applied, confirmation_required (nothing changed yet; pass the code back once the user agrees), or declined (the user said no). |
message |
string | What happened and what to do next, for the agent to relay. |
confirmation |
string | null | Single-use code confirming exactly this preview, valid 10 minutes; null unless status is confirmation_required. |
Transaction {transaction_id} is not in this plan: use a transaction_id returned by suggest_categories.Transaction {tx_id} was deleted in YNAB: there is nothing to split.Transaction {tx_id} is already split: YNAB's API cannot change its lines, change them in YNAB.Transaction {tx_id} is a transfer between accounts: it cannot be split.Transaction {tx_id} is on an off-budget account: YNAB does not split those.Give at least two lines: to give the whole transaction one category, use apply_categories.The lines add up to {total}, the transaction is {amount}: they must match to the cent.A line is zero: leave it out.Category {category_id} is YNAB's internal Uncategorized: choose a real category.Category {category_id} is not in this plan: use a category_id from suggest_categories or get_category_balances.Category {category_id} pays a credit card: YNAB ignores it on a transaction. Choose the category of what was paid for.This client cannot ask the user to confirm, and AVENIR_MCP_REQUIRE_ELICITATION=1 forbids confirmation codes: nothing was changed. Use a client that supports MCP elicitation, or unset the variable.This confirmation code is unknown, expired, already used, or was issued for different changes. Call again without confirmation to get a new preview.Confirmation codes are disabled (AVENIR_MCP_REQUIRE_ELICITATION=1): call again without confirmation, and the user answers in the client.The plan changed between the preview and the answer. Call again without an answer to get a new preview.
Fehler von YNAB selbst kommen als Error calling tool '<tool>': YNAB <status>: <detail> zurück.
Inoffizielles Projekt. „We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates. The official YNAB website can be found at https://www.ynab.com. The names YNAB and You Need A Budget, as well as related names, tradenames, marks, trademarks, emblems, and images are registered trademarks of YNAB.“ Wir sind mit YNAB oder einer seiner Tochtergesellschaften oder verbundenen Unternehmen weder verbunden noch assoziiert noch in irgendeiner Weise offiziell verknüpft. Die offizielle Website von YNAB finden Sie unter https://www.ynab.com. Die Namen YNAB und You Need A Budget sowie zugehörige Namen, Handelsnamen, Zeichen, Marken, Embleme und Bilder sind eingetragene Marken von YNAB. avenir-mcp wird ohne Gewähr bereitgestellt und ist keine Finanzberatung. Rechtliche Hinweise · Datenschutz