Skip to main content
Glama

Create public Wave draft invoice

wave_create_invoice

Creates a Wave DRAFT invoice after validating customer, product, and tax ownership; lines need existing product IDs, and it never approves or sends.

Instructions

Creates DRAFT only after customer/product/tax ownership preflight. Every line requires existing productId; omitted taxes use provider product defaults, explicit [] is distinct no-tax intent. Precision strings unchanged. Supported single FIXED/PERCENTAGE discount for next-invoice credit, not negative-price credit or stored balance/money movement. Denied by default and audit awaited; never approves/sends.

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": {
      "customerId": "<customerId>"
    },
    "name": "wave_create_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNo
itemsNo
titleNo
footerNo
statusNo
dueDateNo
subheadNo
currencyNo
hideNameNo
hideUnitNo
poNumberNo
discountsNo
hidePriceNo
itemTitleNo
unitTitleNo
businessIdNo
customerIdYes
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.8/5.0
Behavior5/5

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

Annotations only declare the write/open-world/idempotency profile; the description goes well beyond them by disclosing that the tool is permission-gated ('denied by default'), that execution awaits an audit, that results are always drafts, and that tax omission behaves differently from an explicit empty array. Nothing in the description contradicts readOnlyHint=false or destructiveHint=false.

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?

Four dense sentences, front-loaded with the draft-only constraint and the preflight requirement before the finer rules. Telegraphic fragments like 'Precision strings unchanged' are terse but each clause carries information; there is little filler.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 28-parameter mutation tool with no output schema and no schema descriptions, the text covers the critical invariants (draft-only, ownership preflight, discount limits) but is far too thin on the remaining parameter surface to let an agent call it correctly without guessing.

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% across 28 parameters, so the description carries the full burden. It adds real meaning for productId, taxes, discounts, and price/discount string precision, but leaves the majority of parameters (currency, exchangeRate, invoiceDate, dueDate, the hide* display flags, payment-disable flags, invoiceNumber) undocumented in either the schema or the description.

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?

The definition names a specific verb and resource ('Creates DRAFT') and immediately scopes it: draft-only, never approves or sends. That explicit boundary distinguishes it from wave_approve_invoice and wave_send_invoice without the agent needing to inspect either schema.

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?

It states the conditions that must hold (customer/product/tax ownership preflight, existing productId per line) and excludes money movement and stored-balance credit, which implies when not to use it. However, it never routes the agent to a specific alternative for those excluded cases, so the guidance is implied rather than explicit.

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