Skip to main content
Glama

wariwari

Delete an expense

delete_expense
Destructive

Use this to delete an expense or payment. expectedRevision is the lockVersion from get_transaction.

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>",
      "transactionToken": "<transactionToken>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "delete_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
expectedRevisionYesThe `lockVersion` the client last saw on the record it is changing. A mismatch is `409 CONFLICT` with the record as the server now has it.
transactionTokenYesThe expense or payment's token, from `listTransactions` or `listSearchResults`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expectedRevision / description
      Added value: +"The `lockVersion` the client last saw on the record it is changing. A mismatch is `409 CONFLICT` with the record as the server now has it."
    • addedInput schema / properties / groupToken / description
      Added value: +"The group's token, from `listGroups` or `listSearchResults`."
    • addedInput schema / properties / transactionToken / description
      Added value: +"The expense or payment's token, from `listTransactions` or `listSearchResults`."
  2. First observed

TDQS

B3.4/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 known. The description adds the meaningful concurrency contract: expectedRevision must be the lockVersion the client last saw, and a mismatch means the caller must re-read. It does not say whether the delete is reversible, soft or hard, or what side effects hit group balances.

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 short sentences with no filler, and the deletion intent is front-loaded ahead of the revision detail. Nothing is wasted, though nothing is expanded either.

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, fully required 3-parameter mutation with no output schema, the definition covers intent and the optimistic-locking requirement. It omits consequences of the delete (reversibility, effect on balances/history) and any confirmation or permission requirement, which matter for a destructive operation.

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%, and the schema already explains expectedRevision, the 409 conflict behavior, and where groupToken and transactionToken come from. The description's only addition is pointing at get_transaction as the source of lockVersion, which is a small but genuine gain over 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?

Names a specific verb and resource ('delete an expense or payment'), so the agent knows exactly what object is affected. It does not distinguish itself from sibling deletion tools such as bulk_delete_expenses or delete_recurring_expense, leaving that differentiation to be inferred.

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?

'Use this to delete an expense or payment' implies the usage context but gives no when-not guidance and names no alternative. An agent must guess whether bulk_delete_expenses or delete_recurring_expense applies to a given case.

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