Categorise a bank transaction

Set the categories of a bank transaction, with a weight for each.

MCP tool pennylane_write → categorise_transaction

write

Replaces the categories of one bank transaction and returns the new list. Each category has a weight from 0 to 1; weights inside one category group must sum to 1, while categories from different groups combine freely. The call fails when the weights do not balance. It reaches nobody and changes only the analysis of one transaction, so it does not ask for your OK, and you undo it by calling it again with the earlier categories, which list_transactions shows.

Parameters

Parameters: categorise_transaction
NameTypeDescription
transaction_id integer required integer Transaction ID from list_transactions.
categories array required array List of category_id with weight as a string from 0 to 1.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "pennylane_write",
    "arguments": {
      "operation": "categorise_transaction",
      "arguments": {
        "transaction_id": 5530021,
        "categories": [
          {
            "id": 59,
            "weight": "1"
          }
        ]
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "transaction_id": 5530021,
    "categories": [
      {
        "category_id": 59,
        "label": "Hosting",
        "weight": "1"
      }
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.