Skip to main content
Glama

Delete expenses

delete_expenses
Destructive

Permanently delete 1–100 planned expenses in a box (cannot be undone). Confirm with the user first. Partial success per index.

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": {
      "budgetId": "<budgetId>",
      "boxId": "<boxId>",
      "expenseIds": "<expenseIds>"
    },
    "name": "delete_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxIdYes
budgetIdYes
expenseIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds genuinely new behavior: irreversibility ('cannot be undone'), a per-call size cap of 1–100, and non-atomic outcome ('Partial success per index'). That partial-success disclosure is the most valuable detail an agent could have for error handling here.

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?

Three short sentences, zero filler, with the destructive consequence front-loaded ahead of the confirmation requirement and the failure mode. Every clause carries distinct information.

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 mutation with no output schema and 0% parameter documentation, the description covers risk, safety gating, size limits, and partial failure well. It still leaves budgetId semantics and the shape of the per-index result unexplained, which matters for a tool that reports partial success.

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

Parameters2/5

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

Schema description coverage is 0% and all three parameters are required, so the description must compensate and largely does not. It conveys that expenseIds holds 1–100 items and that boxId scopes the operation, but budgetId is never mentioned and the budget/box relationship or ID formats are unexplained.

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 with scope quantified: 'Permanently delete 1–100 planned expenses in a box.' The 1–100 range implicitly signals batch semantics, which distinguishes it from the singular delete_expense sibling, but the differentiation is inferred rather than stated.

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?

'Confirm with the user first' gives one clear prerequisite for invocation. However, there is no guidance on when to choose this batch tool versus the singular delete_expense or delete_transactions alternatives, leaving selection to inference.

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