Skip to main content
Glama

ynab_update_transaction

Idempotent

Update fields on an existing YNAB transaction—amount, date, payee, category, memo, cleared status, approval, flag, or split lines—and preview changes before saving.

Instructions

Update fields on an existing YNAB transaction.

Args:

  • budget_id (string, optional): Budget UUID. Omit to use the default budget.

  • transaction_id (string, required): Transaction UUID to update.

  • amount_decimal (number, preferred): New amount in decimal currency units.

  • amount_milliunits (int, alternative): Explicit raw YNAB milliunits.

  • account_id (string, optional): New account UUID.

  • date (string, optional): New date YYYY-MM-DD.

  • payee_name / payee_id (string, optional): New payee.

  • category_id (string, optional): New category UUID.

  • memo (string, optional): New memo.

  • cleared (string, optional): "cleared", "uncleared", or "reconciled".

  • approved (boolean, optional): Approval status.

  • flag_color (string, optional): Flag color ("red", "orange", "yellow", "green", "blue", "purple").

  • subtransactions (array, optional): Convert a non-split transaction into a split. Supply the parent amount and split lines using amount_decimal or amount_milliunits; split amounts must sum to the parent and category_id must be omitted on the parent. YNAB does not support replacing lines on an existing split.

  • dry_run (boolean, optional): Preview without saving.

Returns: the updated transaction, including split lines and explicit amount_milliunits.

Write safety: call without confirmation_token to preview. The preview returns confirmation_token and confirmation_expires_at in its structured output (and in its text). Execute the identical validated request with that short-lived confirmation_token.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "transaction_id": "<transaction_id>"
    },
    "name": "ynab_update_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
memoNo
clearedNo
dry_runNo
approvedNo
payee_idNo
budget_idNo
account_idNo
flag_colorNo
payee_nameNo
category_idNo
amount_decimalNoPreferred: amount in decimal currency units (for example, -12.34). Rounded exactly to the nearest YNAB milliunit.
transaction_idYes
subtransactionsNo
amount_milliunitsNoRaw YNAB milliunits. Use only when the value is already converted.
confirmation_tokenNoShort-lived, single-use token returned by the immediately preceding preview of this exact validated request. Omit, or pass null or an empty string, to preview.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.33.0
    • removedInput schema / properties / amount
      Removed value: -{
      -  "description": "Deprecated legacy alias for amount_milliunits. Use amount_decimal for currency input or amount_milliunits for raw YNAB values.",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • removedInput schema / properties / subtransactions / items / properties / amount
      Removed value: -{
      -  "description": "Deprecated legacy alias for amount_milliunits on this split line.",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
  2. Changed1 schema field changedv0.32.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "ynab_update_transaction",
      -        "type": "string"
      -      },
      -      "dry_run": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "request": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "dry_run",
      -      "action",
      -      "request"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "transaction": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "account_balance": {
      -            "type": "number"
      -          },
      -          "account_cleared_balance": {
      -            "type": "number"
      -          },
      -          "account_id": {
      -            "type": "string"
      -          },
      -          "account_name": {
      -            "type": "string"
      -          },
      -          "amount": {
      -            "description": "Amount in decimal currency units",
      -            "type": "number"
      -          },
      -          "amount_currency": {
      -            "type": "number"
      -          },
      -          "amount_formatted": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "amount_milliunits": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "approved": {
      -            "type": "boolean"
      -          },
      -          "category_id": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "category_name": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "cleared": {
      -            "type": "string"
      -          },
      -          "date": {
      -            "type": "string"
      -          },
      -          "debt_transaction_type": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "deleted": {
      -            "type": "boolean"
      -          },
      -          "flag_color": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "flag_name": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "import_id": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "import_payee_name": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "import_payee_name_original": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "matched_transaction_id": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memo": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "parent_transaction_id": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "payee_id": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "payee_name": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "scheduled_transaction_id": {
      -            "type": "string"
      -          },
      -          "subtransactions": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "amount": {
      -                  "description": "Amount in decimal currency units",
      -                  "type": "number"
      -                },
      -                "amount_currency": {
      -                  "type": "number"
      -                },
      -                "amount_formatted": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "amount_milliunits": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "category_id": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "category_name": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "deleted": {
      -                  "type": "boolean"
      -                },
      -                "id": {
      -                  "type": "string"
      -                },
      -                "memo": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "payee_id": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "payee_name": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "scheduled_transaction_id": {
      -                  "type": "string"
      -                },
      -                "transaction_id": {
      -                  "type": "string"
      -                },
      -                "transfer_account_id": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "transfer_transaction_id": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "transaction_id",
      -                "amount",
      -                "deleted"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "transaction_id": {
      -            "type": "string"
      -          },
      -          "transfer_account_id": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "transfer_transaction_id": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "type": {
      -            "enum": [
      -              "transaction",
      -              "subtransaction"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "amount",
      -          "deleted",
      -          "date",
      -          "account_id",
      -          "cleared",
      -          "approved"
      -        ],
      -        "type": "object"
      -      },
      -      "updated_balance": {
      -        "type": "number"
      -      },
      -      "updated_cleared_balance": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "transaction"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "ynab_update_transaction",
      +        "type": "string"
      +      },
      +      "confirmation_expires_at": {
      +        "description": "Preview only: when confirmation_token expires (ISO 8601).",
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "confirmation_token": {
      +        "description": "Preview only: single-use token that executes this exact request when passed back as confirmation_token.",
      +        "type": "string"
      +      },
      +      "dry_run": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "warnings": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "count": {
      +              "type": "number"
      +            },
      +            "message": {
      +              "type": "string"
      +            },
      +            "sample_ids": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "count",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "dry_run",
      +      "action",
      +      "request"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "confirmation_expires_at": {
      +        "description": "Preview only: when confirmation_token expires (ISO 8601).",
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "confirmation_token": {
      +        "description": "Preview only: single-use token that executes this exact request when passed back as confirmation_token.",
      +        "type": "string"
      +      },
      +      "transaction": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "account_balance": {
      +            "type": "number"
      +          },
      +          "account_cleared_balance": {
      +            "type": "number"
      +          },
      +          "account_id": {
      +            "type": "string"
      +          },
      +          "account_name": {
      +            "type": "string"
      +          },
      +          "amount": {
      +            "description": "Amount in decimal currency units",
      +            "type": "number"
      +          },
      +          "amount_currency": {
      +            "type": "number"
      +          },
      +          "amount_formatted": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "amount_milliunits": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "approved": {
      +            "type": "boolean"
      +          },
      +          "category_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "category_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "cleared": {
      +            "type": "string"
      +          },
      +          "date": {
      +            "type": "string"
      +          },
      +          "debt_transaction_type": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "deleted": {
      +            "type": "boolean"
      +          },
      +          "flag_color": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "flag_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "import_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "import_payee_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "import_payee_name_original": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "matched_transaction_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "memo": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "parent_transaction_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "payee_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "payee_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "scheduled_transaction_id": {
      +            "type": "string"
      +          },
      +          "subtransactions": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "amount": {
      +                  "description": "Amount in decimal currency units",
      +                  "type": "number"
      +                },
      +                "amount_currency": {
      +                  "type": "number"
      +                },
      +                "amount_formatted": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "amount_milliunits": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "category_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "category_name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "deleted": {
      +                  "type": "boolean"
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "memo": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "payee_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "payee_name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "scheduled_transaction_id": {
      +                  "type": "string"
      +                },
      +                "transaction_id": {
      +                  "type": "string"
      +                },
      +                "transfer_account_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "transfer_transaction_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "transaction_id",
      +                "amount",
      +                "deleted"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "transaction_id": {
      +            "type": "string"
      +          },
      +          "transfer_account_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "transfer_transaction_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "type": {
      +            "enum": [
      +              "transaction",
      +              "subtransaction"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "amount",
      +          "deleted",
      +          "date",
      +          "account_id",
      +          "cleared",
      +          "approved"
      +        ],
      +        "type": "object"
      +      },
      +      "updated_balance": {
      +        "type": "number"
      +      },
      +      "updated_cleared_balance": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "transaction"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed5 schema fields changedv0.31.0
    • addedInput schema / properties / confirmation_token / anyOf
      Added value: +[
      +  {
      +    "minLength": 16,
      +    "type": "string"
      +  },
      +  {
      +    "const": ""
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / confirmation_token / description
      Previous value: -"Short-lived, single-use token returned by the immediately preceding preview of this exact validated request."New value: +"Short-lived, single-use token returned by the immediately preceding preview of this exact validated request. Omit, or pass null or an empty string, to preview."
    • removedInput schema / properties / confirmation_token / minLength
      Removed value: -16
    • removedInput schema / properties / confirmation_token / type
      Removed value: -"string"
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "ynab_update_transaction",
      -        "type": "string"
      -      },
      -      "dry_run": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "request": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "dry_run",
      -      "action",
      -      "request"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "transaction": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "account_balance": {
      -            "type": "number"
      -          },
      -          "account_cleared_balance": {
      -            "type": "number"
      -          },
      -          "account_id": {
      -            "description": "Account ID",
      -            "type": "string"
      -          },
      -          "account_name": {
      -            "description": "Account name",
      -            "type": "string"
      -          },
      -          "amount": {
      -            "description": "Transaction amount in dollars",
      -            "type": "number"
      -          },
      -          "approved": {
      -            "description": "Approved flag",
      -            "type": "boolean"
      -          },
      -          "category_id": {
      -            "description": "Category ID",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "category_name": {
      -            "description": "Category name",
      -            "type": "string"
      -          },
      -          "cleared": {
      -            "description": "Cleared status",
      -            "type": "string"
      -          },
      -          "date": {
      -            "description": "Transaction date",
      -            "type": "string"
      -          },
      -          "deleted": {
      -            "description": "Deleted flag",
      -            "type": "boolean"
      -          },
      -          "flag_color": {
      -            "description": "Flag color",
      -            "type": "string"
      -          },
      -          "id": {
      -            "description": "Transaction ID",
      -            "type": "string"
      -          },
      -          "import_id": {
      -            "description": "Import ID",
      -            "type": "string"
      -          },
      -          "matched_transaction_id": {
      -            "description": "Matched transaction ID",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memo": {
      -            "description": "Transaction memo",
      -            "type": "string"
      -          },
      -          "payee_id": {
      -            "description": "Payee ID",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "payee_name": {
      -            "description": "Payee name",
      -            "type": "string"
      -          },
      -          "subtransactions": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "amount": {
      -                  "type": "number"
      -                },
      -                "category_id": {
      -                  "type": "string"
      -                },
      -                "category_name": {
      -                  "type": "string"
      -                },
      -                "deleted": {
      -                  "type": "boolean"
      -                },
      -                "id": {
      -                  "type": "string"
      -                },
      -                "memo": {
      -                  "type": "string"
      -                },
      -                "payee_id": {
      -                  "type": "string"
      -                },
      -                "payee_name": {
      -                  "type": "string"
      -                },
      -                "transaction_id": {
      -                  "type": "string"
      -                },
      -                "transfer_account_id": {
      -                  "type": "string"
      -                },
      -                "transfer_transaction_id": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "transaction_id",
      -                "amount",
      -                "deleted"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "transfer_account_id": {
      -            "description": "Transfer account ID",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "transfer_transaction_id": {
      -            "description": "Transfer transaction ID",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "date",
      -          "amount",
      -          "cleared",
      -          "approved",
      -          "account_id",
      -          "deleted"
      -        ],
      -        "type": "object"
      -      },
      -      "updated_balance": {
      -        "type": "number"
      -      },
      -      "updated_cleared_balance": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "transaction",
      -      "updated_balance",
      -      "updated_cleared_balance"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "ynab_update_transaction",
      +        "type": "string"
      +      },
      +      "dry_run": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "dry_run",
      +      "action",
      +      "request"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "transaction": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "account_balance": {
      +            "type": "number"
      +          },
      +          "account_cleared_balance": {
      +            "type": "number"
      +          },
      +          "account_id": {
      +            "type": "string"
      +          },
      +          "account_name": {
      +            "type": "string"
      +          },
      +          "amount": {
      +            "description": "Amount in decimal currency units",
      +            "type": "number"
      +          },
      +          "amount_currency": {
      +            "type": "number"
      +          },
      +          "amount_formatted": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "amount_milliunits": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "approved": {
      +            "type": "boolean"
      +          },
      +          "category_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "category_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "cleared": {
      +            "type": "string"
      +          },
      +          "date": {
      +            "type": "string"
      +          },
      +          "debt_transaction_type": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "deleted": {
      +            "type": "boolean"
      +          },
      +          "flag_color": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "flag_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "import_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "import_payee_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "import_payee_name_original": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "matched_transaction_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "memo": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "parent_transaction_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "payee_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "payee_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "scheduled_transaction_id": {
      +            "type": "string"
      +          },
      +          "subtransactions": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "amount": {
      +                  "description": "Amount in decimal currency units",
      +                  "type": "number"
      +                },
      +                "amount_currency": {
      +                  "type": "number"
      +                },
      +                "amount_formatted": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "amount_milliunits": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "category_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "category_name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "deleted": {
      +                  "type": "boolean"
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "memo": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "payee_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "payee_name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "scheduled_transaction_id": {
      +                  "type": "string"
      +                },
      +                "transaction_id": {
      +                  "type": "string"
      +                },
      +                "transfer_account_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "transfer_transaction_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "transaction_id",
      +                "amount",
      +                "deleted"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "transaction_id": {
      +            "type": "string"
      +          },
      +          "transfer_account_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "transfer_transaction_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "type": {
      +            "enum": [
      +              "transaction",
      +              "subtransaction"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "amount",
      +          "deleted",
      +          "date",
      +          "account_id",
      +          "cleared",
      +          "approved"
      +        ],
      +        "type": "object"
      +      },
      +      "updated_balance": {
      +        "type": "number"
      +      },
      +      "updated_cleared_balance": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "transaction"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed2 schema fields changedv0.29.1
    • addedInput schema / properties / subtransactions
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amount": {
      +        "description": "Deprecated legacy alias for amount_milliunits on this split line.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "amount_decimal": {
      +        "description": "Preferred: amount in decimal currency units (for example, -12.34). Rounded exactly to the nearest YNAB milliunit.",
      +        "type": "number"
      +      },
      +      "amount_milliunits": {
      +        "description": "Raw YNAB milliunits. Use only when the value is already converted.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "category_id": {
      +        "type": "string"
      +      },
      +      "memo": {
      +        "type": "string"
      +      },
      +      "payee_id": {
      +        "type": "string"
      +      },
      +      "payee_name": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "ynab_update_transaction",
      -        "type": "string"
      -      },
      -      "dry_run": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "request": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "dry_run",
      -      "action",
      -      "request"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "transaction": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "account_balance": {
      -            "type": "number"
      -          },
      -          "account_cleared_balance": {
      -            "type": "number"
      -          },
      -          "account_id": {
      -            "description": "Account ID",
      -            "type": "string"
      -          },
      -          "account_name": {
      -            "description": "Account name",
      -            "type": "string"
      -          },
      -          "amount": {
      -            "description": "Transaction amount in dollars",
      -            "type": "number"
      -          },
      -          "approved": {
      -            "description": "Approved flag",
      -            "type": "boolean"
      -          },
      -          "category_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Category ID"
      -          },
      -          "category_name": {
      -            "description": "Category name",
      -            "type": "string"
      -          },
      -          "cleared": {
      -            "description": "Cleared status",
      -            "type": "string"
      -          },
      -          "date": {
      -            "description": "Transaction date",
      -            "type": "string"
      -          },
      -          "deleted": {
      -            "description": "Deleted flag",
      -            "type": "boolean"
      -          },
      -          "flag_color": {
      -            "description": "Flag color",
      -            "type": "string"
      -          },
      -          "id": {
      -            "description": "Transaction ID",
      -            "type": "string"
      -          },
      -          "import_id": {
      -            "description": "Import ID",
      -            "type": "string"
      -          },
      -          "matched_transaction_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Matched transaction ID"
      -          },
      -          "memo": {
      -            "description": "Transaction memo",
      -            "type": "string"
      -          },
      -          "payee_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Payee ID"
      -          },
      -          "payee_name": {
      -            "description": "Payee name",
      -            "type": "string"
      -          },
      -          "subtransactions": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "amount": {
      -                  "type": "number"
      -                },
      -                "category_id": {
      -                  "type": "string"
      -                },
      -                "category_name": {
      -                  "type": "string"
      -                },
      -                "deleted": {
      -                  "type": "boolean"
      -                },
      -                "id": {
      -                  "type": "string"
      -                },
      -                "memo": {
      -                  "type": "string"
      -                },
      -                "payee_id": {
      -                  "type": "string"
      -                },
      -                "payee_name": {
      -                  "type": "string"
      -                },
      -                "transaction_id": {
      -                  "type": "string"
      -                },
      -                "transfer_account_id": {
      -                  "type": "string"
      -                },
      -                "transfer_transaction_id": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "transaction_id",
      -                "amount",
      -                "deleted"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "transfer_account_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Transfer account ID"
      -          },
      -          "transfer_transaction_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Transfer transaction ID"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "date",
      -          "amount",
      -          "cleared",
      -          "approved",
      -          "account_id",
      -          "deleted"
      -        ],
      -        "type": "object"
      -      },
      -      "updated_balance": {
      -        "type": "number"
      -      },
      -      "updated_cleared_balance": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "transaction",
      -      "updated_balance",
      -      "updated_cleared_balance"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "ynab_update_transaction",
      +        "type": "string"
      +      },
      +      "dry_run": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "dry_run",
      +      "action",
      +      "request"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "transaction": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "account_balance": {
      +            "type": "number"
      +          },
      +          "account_cleared_balance": {
      +            "type": "number"
      +          },
      +          "account_id": {
      +            "description": "Account ID",
      +            "type": "string"
      +          },
      +          "account_name": {
      +            "description": "Account name",
      +            "type": "string"
      +          },
      +          "amount": {
      +            "description": "Transaction amount in dollars",
      +            "type": "number"
      +          },
      +          "approved": {
      +            "description": "Approved flag",
      +            "type": "boolean"
      +          },
      +          "category_id": {
      +            "description": "Category ID",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "category_name": {
      +            "description": "Category name",
      +            "type": "string"
      +          },
      +          "cleared": {
      +            "description": "Cleared status",
      +            "type": "string"
      +          },
      +          "date": {
      +            "description": "Transaction date",
      +            "type": "string"
      +          },
      +          "deleted": {
      +            "description": "Deleted flag",
      +            "type": "boolean"
      +          },
      +          "flag_color": {
      +            "description": "Flag color",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Transaction ID",
      +            "type": "string"
      +          },
      +          "import_id": {
      +            "description": "Import ID",
      +            "type": "string"
      +          },
      +          "matched_transaction_id": {
      +            "description": "Matched transaction ID",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "memo": {
      +            "description": "Transaction memo",
      +            "type": "string"
      +          },
      +          "payee_id": {
      +            "description": "Payee ID",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "payee_name": {
      +            "description": "Payee name",
      +            "type": "string"
      +          },
      +          "subtransactions": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "amount": {
      +                  "type": "number"
      +                },
      +                "category_id": {
      +                  "type": "string"
      +                },
      +                "category_name": {
      +                  "type": "string"
      +                },
      +                "deleted": {
      +                  "type": "boolean"
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "memo": {
      +                  "type": "string"
      +                },
      +                "payee_id": {
      +                  "type": "string"
      +                },
      +                "payee_name": {
      +                  "type": "string"
      +                },
      +                "transaction_id": {
      +                  "type": "string"
      +                },
      +                "transfer_account_id": {
      +                  "type": "string"
      +                },
      +                "transfer_transaction_id": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "transaction_id",
      +                "amount",
      +                "deleted"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "transfer_account_id": {
      +            "description": "Transfer account ID",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "transfer_transaction_id": {
      +            "description": "Transfer transaction ID",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "date",
      +          "amount",
      +          "cleared",
      +          "approved",
      +          "account_id",
      +          "deleted"
      +        ],
      +        "type": "object"
      +      },
      +      "updated_balance": {
      +        "type": "number"
      +      },
      +      "updated_cleared_balance": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "transaction",
      +      "updated_balance",
      +      "updated_cleared_balance"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Changed4 schema fields changedv0.27.1
    • addedInput schema / properties / amount / description
      Added value: +"Deprecated legacy alias for amount_milliunits. Use amount_decimal for currency input or amount_milliunits for raw YNAB values."
    • addedInput schema / properties / amount_decimal
      Added value: +{
      +  "description": "Preferred: amount in decimal currency units (for example, -12.34). Rounded exactly to the nearest YNAB milliunit.",
      +  "type": "number"
      +}
    • addedInput schema / properties / amount_milliunits
      Added value: +{
      +  "description": "Raw YNAB milliunits. Use only when the value is already converted.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / confirmation_token
      Added value: +{
      +  "description": "Short-lived, single-use token returned by the immediately preceding preview of this exact validated request.",
      +  "minLength": 16,
      +  "type": "string"
      +}
  6. Addedv0.26.9

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, and the description adds materially more: the two-phase write-safety flow (preview without confirmation_token, then replay the identical validated request with the short-lived single-use token), where the token appears in the response, and the non-reversible split-line limitation. It also states what is returned, including split lines and explicit amount_milliunits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded: purpose first, then Args, then Returns, then the critical write-safety note. The Args list is long and partially restates schema property names, but each line earns its place by adding semantics, and the dry_run versus confirmation_token relationship is stated clearly rather than buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter mutation tool with an output schema, the description covers what an agent needs: purpose, per-field meaning, the split-conversion rules, return shape, and the mandatory preview-then-confirm sequence. Nothing required to call it correctly is missing, and the output schema handles return-value structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 19%, so the description carries the burden and does so: it explains every parameter's role, marks amount_decimal as preferred versus amount_milliunits as a raw alternative, enumerates the allowed cleared and flag_color values, and spells out the multi-part constraints on subtransactions that the schema cannot express. This is substantial meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Update fields on an existing YNAB transaction') and lists exactly which fields are mutable, so an agent knows what the tool does without opening the schema. It does not explicitly distinguish itself from near-name siblings like ynab_update_transactions (bulk) or ynab_update_scheduled_transaction, leaving that differentiation to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives useful conditional guidance inside the call itself: prefer amount_decimal over amount_milliunits, omit category_id on the parent and sum splits when converting to a split, and note that YNAB cannot replace lines on an existing split. However, it never says when to use this single-transaction tool versus the bulk update sibling or the scheduled-transaction variant, so the alternative-selection guidance is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.