Skip to main content
Glama
yoyodyne7
by yoyodyne7

Approve Wave invoice

wave_approve_invoice
Destructive

Approve a draft invoice by posting it to the books and making it sendable via a two-step preview-then-confirm process. No email sent.

Instructions

Approve a DRAFT invoice, which posts it to the books and makes it sendable. It does not email anyone. This is a two-step tool: the first call (confirm omitted) returns a preview and a fingerprint and changes nothing. Show the preview to the user. Only after they agree, call again with confirm: true and the fingerprint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoLeave false to get a preview (nothing happens). Set true only after the user has seen the preview and agreed, and pass the preview's fingerprint.
invoice_idYesInvoice ID exactly as returned by Wave (an opaque string)
fingerprintNoThe fingerprint returned by the preview call; required with confirm: true

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
invoiceNo
messageYes
previewNo
fingerprintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the real side effect (posts the invoice to the books), the explicit non-behavior (does not email), and the safety contract that the preview call changes nothing and must be confirmed via fingerprint. This is exactly the mutating-operation context an agent needs when destructiveHint=true and idempotentHint=false.

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?

Front-loads the verb and effect in the first sentence, then layers the non-effect, the two-step mechanics, and the user-agreement gate. Every sentence earns its place with no redundancy.

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

Completeness5/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 with an output schema and full param coverage, the description supplies the prerequisite (draft state), the workflow, the human-in-the-loop gate, and the fingerprint handoff. Nothing needed to invoke it correctly is missing.

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 the schema already documents confirm, invoice_id, and fingerprint thoroughly. The description reinforces how confirm and fingerprint interlock with the preview step but adds little syntax beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Approve) and resource (a DRAFT invoice) and enumerates the concrete effect: posts to the books and makes it sendable. The clause 'It does not email anyone' carves out a clear boundary against the send-family siblings, so an agent can distinguish it 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?

Gives explicit when-to-use guidance for the internal two-step flow: first call without confirm yields a preview, and the second call with confirm: true is only appropriate after the user agrees. It implies but never names the alternative send tools, so it falls just short of the when/when-not/alternatives bar for a 5.

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