Skip to main content
Glama

Delete public Wave draft invoice

wave_delete_invoice
Destructive

Permanently delete a Wave invoice only after verifying ownership and confirming it is still a DRAFT; non-draft invoices are refused, and ambiguous results are not retried.

Instructions

Destructive policy denied by default. Reads actual ownership/current state, refuses every non-DRAFT before one invoiceDelete. No atomic conditional-delete guarantee; ambiguous effects are never retried, audit awaited.

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": {
      "invoiceId": "<invoiceId>"
    },
    "name": "wave_delete_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYes
businessIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior5/5

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

Well beyond the annotations, it discloses a pre-flight ownership/current-state read, the non-DRAFT refusal rule, absence of an atomic conditional-delete guarantee, that ambiguous outcomes are never retried, and that an audit is awaited. Those are exactly the mutation-failure semantics an agent needs to avoid blind retries on a destructive call.

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?

Three dense, front-loaded sentences with no filler; the refusal rule precedes the call and the failure caveats follow. Telegraphic fragments like 'one invoiceDelete' and 'audit awaited' cost some readability, but nothing is wasted.

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, non-idempotent mutation the behavioral picture is unusually complete, and no output schema exists to explain. However, with two undocumented parameters and no statement of what the delete returns or how refusal errors surface, an agent still lacks the call-shape detail this definition should supply.

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% for both parameters, so the description must compensate and largely does not — invoiceId and businessId are never explained, nor is the relationship between them. The phrase 'reads actual ownership/current state' hints at business scoping but never states it, leaving the non-required businessId ambiguous.

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?

The description conveys a specific verb+resource: a single 'invoiceDelete' gated on the record being DRAFT, which an agent can read as 'delete a draft invoice'. It is phrased in policy/implementation language rather than plain prose, and the title carries part of the load, but the operation is identifiable without opening the schema.

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?

It states a hard precondition — every non-DRAFT is refused — and notes the call is 'denied by default' under destructive policy, which tells the agent this needs an approval/opt-in path. It does not name a sibling alternative for handling non-draft invoices (e.g. update or void), so routing for the refusal case is left to inference.

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