Skip to main content
Glama

Preview/confirm public Wave invoice approval

wave_approve_invoice

Preview an owned draft invoice's current state, then confirm approval by returning its fingerprint and expiry after review. Two-step, single-use confirmation with audit logging.

Instructions

Two-step only: preview actual fully owned DRAFT/current state, then return its fingerprint+expiresAt with confirm:true after review. Fresh state/consumer/tool/business/input binding, single use before mutation, audit awaited. No provider atomic conditional guarantee.

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_approve_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYes
businessIdNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Beyond the annotations (which only declare non-read-only, non-idempotent, non-destructive, open-world), the description discloses that the confirmation token is bound to fresh state/consumer/tool/business/input, valid for a single use before mutation, that auditing is awaited, and that there is no provider-level atomic conditional guarantee. These are exactly the mutation-safety facts an agent cannot get from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead 'Two-step only' is well front-loaded, but the middle clause 'Fresh state/consumer/tool/business/input binding' is compressed to the point of being hard to parse, and the density trades readability for brevity rather than earning it.

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 non-idempotent mutation with a nested confirmation object, no output schema, and 0% schema coverage, the description covers the two-phase protocol and token lifetime adequately. It still omits what happens on a stale/expired fingerprint, what the successful response contains, and what 'fully owned' constrains.

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 0% and the confirmation object is nested, so the description has to carry the load. It does explain that fingerprint and expiresAt come from the preview and that confirm must be true, but invoiceId and businessId are never described, leaving two of three parameters undocumented in both places.

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

Purpose3/5

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

The description describes the mechanism (preview the DRAFT state, then resubmit with fingerprint+expiresAt and confirm:true) but never plainly states the effect, i.e. that the invoice gets approved. An agent can infer it from the name and from 'DRAFT/current state', yet the verb+resource statement is absent from the text itself.

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?

'Two-step only' and 'after review' establish the required call sequence, which is genuine usage guidance. However, nothing says when to choose this over wave_update_invoice or wave_mark_invoice_sent, and no when-not conditions or prerequisites (ownership, permissions) are given.

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