Skip to main content
Glama

wariwari

Edit several expenses

bulk_edit_expenses
Destructive

Use this to set the same payer, category, split, date or time on several expenses at once. List each one in transactions with its token and, as expectedRevision, its lockVersion from list_transactions.

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": {
      "groupToken": "<groupToken>",
      "transactions": "<transactions>"
    },
    "name": "bulk_edit_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe day to move every one of them to, `YYYY-MM-DD`.
splitNoWho shares each expense; every expense's total is divided again. Payments are left as they are.
timeOfDayNoThe time of day to give every one of them, `HH:MM` (24-hour).
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
transactionsYesThe transactions to change, all in this group. If one has moved past its revision, none change.
categoryTokenNoThe group category to file the expenses under, by token from `showGroup`. Payments keep none.
paidByParticipantTokenNoThe member who paid every one of them, payments included, by token from `showGroup`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changed
    • addedInput schema / $defs / BatchSplit / properties / members / description
      Added value: +"Members who share each expense. Give at least one, here or in `newMemberNames`."
    • addedInput schema / $defs / BatchSplit / properties / newMemberNames / description
      Added value: +"More people to share each expense, by name. A name matching a member's\n(ignoring case) uses that member; any other joins the group as a new one.\n"
    • addedInput schema / $defs / BatchSplit / properties / type / description
      Added value: +"How each total is divided among `members`."
    • removedInput schema / $defs / BatchSplitMember / properties / participantToken / $ref
      Removed value: -"#/$defs/Token"
    • addedInput schema / $defs / BatchSplitMember / properties / participantToken / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Token"
      +  }
      +]
    • addedInput schema / $defs / BatchSplitMember / properties / participantToken / description
      Added value: +"The member's token, from `showGroup`."
    • addedInput schema / $defs / BatchSplitMember / properties / weight / description
      Added value: +"This member's percentage or number of shares. Each total is divided in\nproportion to the weights, so percentages need not add up to 100.\nOmitted is 1; an equal split ignores it.\n"
    • removedInput schema / $defs / TransactionBatchItem / properties / token / $ref
      Removed value: -"#/$defs/Token"
    • addedInput schema / $defs / TransactionBatchItem / properties / token / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Token"
      +  }
      +]
    • addedInput schema / $defs / TransactionBatchItem / properties / token / description
      Added value: +"The transaction's token, from `listTransactions`."
    • removedInput schema / properties / categoryToken / $ref
      Removed value: -"#/$defs/Token"
    • addedInput schema / properties / categoryToken / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Token"
      +  }
      +]
    • addedInput schema / properties / categoryToken / description
      Added value: +"The group category to file the expenses under, by token from `showGroup`. Payments keep none."
    • addedInput schema / properties / date / description
      Added value: +"The day to move every one of them to, `YYYY-MM-DD`."
    • removedInput schema / properties / paidByParticipantToken / $ref
      Removed value: -"#/$defs/Token"
    • addedInput schema / properties / paidByParticipantToken / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Token"
      +  }
      +]
    • addedInput schema / properties / paidByParticipantToken / description
      Added value: +"The member who paid every one of them, payments included, by token from `showGroup`."
    • removedInput schema / properties / split / $ref
      Removed value: -"#/$defs/BatchSplit"
    • addedInput schema / properties / split / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/BatchSplit"
      +  }
      +]
    • addedInput schema / properties / split / description
      Added value: +"Who shares each expense; every expense's total is divided again. Payments are left as they are."
    • removedInput schema / properties / timeOfDay / $ref
      Removed value: -"#/$defs/TimeOfDay"
    • addedInput schema / properties / timeOfDay / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/TimeOfDay"
      +  }
      +]
    • addedInput schema / properties / timeOfDay / description
      Added value: +"The time of day to give every one of them, `HH:MM` (24-hour)."
    • addedInput schema / properties / transactions / description
      Added value: +"The transactions to change, all in this group. If one has moved past its revision, none change."
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation risk is signaled. The description adds the important read-before-write requirement (supply lockVersion as expectedRevision), which is real behavioral context. However, it never says that existing payer/category/split values are replaced, nor does it mention the all-or-nothing revision semantics — that lives only in the schema. The description also does not repeat the atomicity contract, which is the most consequential behavior for a destructive batch tool.

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

Conciseness5/5

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

Two sentences, both load-bearing, with the primary purpose front-loaded before the invocation mechanics. No filler or redundant restatement of the tool name.

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

Completeness4/5

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

Seven parameters with full schema coverage and no output schema; the description covers the purpose and the one non-obvious prerequisite (fetching tokens and revisions). An agent could call this correctly from the definition plus schema. It could go further on what changes are overwritten and on the failure behavior, but the essentials are present.

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

Parameters3/5

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

Schema description coverage is 100%, so per-parameter meaning is already fully documented, establishing a baseline of 3. The description does name the updatable fields and explain what transactions entries need, but this largely restates what the schema's TransactionBatchItem and field descriptions already say. It omits any mention of the required groupToken, adding nothing the schema lacks.

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?

States a specific verb-and-resource combination plus the exact fields it sets: 'set the same payer, category, split, date or time on several expenses at once.' An agent can immediately tell this is a bulk mutation of expense attributes rather than a single-expense edit or a bulk delete. It does not explicitly contrast with bulk_delete_expenses, so it stops short of full sibling differentiation.

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

Usage Guidelines4/5

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

Gives clear when-to-use context (applying identical values across many expenses) and a concrete prerequisite workflow: read each transaction's token and lockVersion from list_transactions first. It does not state exclusions, such as when to edit expenses individually via a single-expense tool instead, but the usage condition is genuinely inferable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources