Skip to main content
Glama

Update public Wave draft invoice

wave_update_invoice
Idempotent

Update a Wave invoice's details and replace the entire line-item list, forcing DRAFT status and verifying the response.

Instructions

Reads current ownership/state and refuses non-DRAFT before one patch, forces DRAFT and verifies response. Supplied items replace the ENTIRE list: send complete intended items, not a partial edit. Omitted items/taxes stay omitted. No atomic version precondition/provider concurrency guarantee; never auto-approves/sends/retries.

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

Input Schema

NameRequiredDescriptionDefault
memoNo
itemsNo
titleNo
footerNo
statusNo
dueDateNo
subheadNo
currencyNo
hideNameNo
hideUnitNo
poNumberNo
discountsNo
hidePriceNo
invoiceIdYes
itemTitleNo
unitTitleNo
businessIdNo
customerIdNo
hideAmountNo
priceTitleNo
amountTitleNo
invoiceDateNo
exchangeRateNo
invoiceNumberNo
hideDescriptionNo
disableAmexPaymentsNo
disableBankPaymentsNo
disableCreditCardPaymentsNo
requireTermsOfServiceAgreementNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Strong behavioral disclosure: the read-then-refuse-then-patch flow, forced DRAFT status, response verification, and absence of any atomic version precondition or provider concurrency guarantee. However, with idempotentHint=true and destructiveHint=false declared, the description does not reconcile that whitelisting with the fact that supplying items silently drops previously present items and taxes — a caller could read the non-destructive hint as 'nothing is lost', which the full-replacement warning only partly counters.

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?

Front-loaded with the safety-critical constraint (DRAFT-only patch) and densely written with no filler sentences — every clause carries a rule. Some phrasing is terse to the point of jargon ('one patch', 'atomic version precondition'), which costs a little readability but not correctness.

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?

Covers the highest-risk behaviors (state gate, destructive full-list replacement, no concurrency guarantee, no auto-send) and there is no output schema to explain. But for a 29-parameter mutation tool it omits what the response looks like, how a non-DRAFT refusal manifests, and the meaning of most patchable fields, so an agent still needs the schema and trial to call it fully correctly.

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?

With 29 parameters at 0% schema description coverage, the description does add crucial semantics for the riskiest ones: items are full replacement, omitted items/taxes stay omitted, and status is forced to DRAFT regardless of input. It says nothing about the other ~25 fields (memo, currency, discounts with maxItems 1, dueDate/invoiceDate formats, hide* flags, payment-disable flags), so most of the surface remains undocumented anywhere.

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 operation on a specific resource: a single patch applied to a Wave invoice, restricted to DRAFT state, with explicit refusal of non-DRAFT invoices. It implicitly separates itself from approve/send siblings by stating it 'never auto-approves/sends/retries', though it never names an alternative tool outright, so it stops short of the explicit sibling routing seen in top-tier definitions.

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?

Clear when-to-use conditions: the invoice must be DRAFT, and callers must send the complete intended item list rather than a partial edit. It sets exclusions ('refuses non-DRAFT') but gives no path forward for a non-DRAFT invoice (e.g., which sibling to inspect or how to revert to draft), leaving that gap to inference.

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