Skip to main content
Glama

wariwari

Delete several expenses

bulk_delete_expenses
Destructive

Use this to delete several expenses or payments 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_delete_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
transactionsYesThe transactions to delete, all in this group. If one has moved past its revision, none are deleted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • 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`."
    • addedInput schema / properties / transactions / description
      Added value: +"The transactions to delete, all in this group. If one has moved past its revision, none are deleted."
  2. Added

TDQS

A3.6/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 safety profile is covered. The description adds the optimistic-concurrency workflow detail (supply expectedRevision from the lockVersion read earlier) which goes beyond the annotations, but it omits that the batch is all-or-nothing on revision conflict — that only appears inside the schema's transactions description.

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?

Two compact sentences, front-loaded with the use case and followed by the required input sourcing rule. No filler; it could only improve by naming the atomic-failure consequence in the same breath.

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

Completeness3/5

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

For a destructive batch mutation with no output schema, the description covers what to pass but not the critical outcome behavior: that a single stale revision aborts the entire batch, and that the deletion is irreversible. Those facts live only in the schema, leaving the description thinner than the tool's risk profile warrants.

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 coverage is 100%, so both groupToken and the transaction batch fields are already documented in structured form. The description reinforces where transaction tokens and lockVersion come from (list_transactions) but adds little beyond what the schema's property descriptions already state.

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 (delete) and resource (expenses or payments), and the phrase 'several ... at once' signals batch semantics that separate it from the singular delete_expense sibling. It does not explicitly contrast with bulk_edit_expenses, but the operation itself is unambiguous.

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?

'Use this to delete several expenses or payments at once' establishes the selection condition, and the second sentence tells the caller to source tokens and revisions from list_transactions. No explicit when-not-to-use is given, e.g. the single-item delete, but the batch trigger is clear.

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