Skip to main content
Glama

Clone public Wave invoice as draft

wave_clone_invoice

Clones a source invoice into a new draft with product-backed lines, tax IDs, and discount mapping. Requires invoiceDate and dueDate; accepts an optional new invoice number.

Instructions

Reads a fully owned source, then creates a NEW DRAFT using captured product-backed lines, explicit tax IDs and actual discount subtype mapping. Requires deliberately selected invoiceDate/dueDate; omit invoiceNumber to request provider fresh auto-number, or supply a new value. Never copies IDs/totals/payments/sent metadata, never uses unproven direct invoiceClone status semantics. No atomic/snapshot 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>",
      "invoiceDate": "<invoiceDate>",
      "dueDate": "<dueDate>"
    },
    "name": "wave_clone_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueDateYes
invoiceIdYes
businessIdNo
invoiceDateYes
invoiceNumberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations establish non-read-only, non-idempotent, open-world behavior; the description adds substantially beyond that by listing what is NOT copied (IDs, totals, payments, sent metadata) and disclaiming atomicity ('No atomic/snapshot guarantee'). It still doesn't say whether repeated calls create duplicate drafts or what permissions are needed, which the non-idempotent hint makes relevant.

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 core behavior is front-loaded in the first sentence, which is good, but the prose is dense with internal jargon ('actual discount subtype mapping', 'unproven direct invoiceClone status semantics') that costs tokens without clarifying agent behavior. The key constraints (required dates, invoiceNumber handling) are buried mid-paragraph.

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 mutation tool with no output schema, it covers side effects and non-goals well, but never says what comes back (e.g., the new draft's ID) or how the caller should verify success. With 0% schema coverage and 5 parameters, the missing explanation of invoiceId and businessId is a real completeness gap.

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 coverage is 0%, so the description carries the full burden, and it only covers three of five parameters: invoiceDate/dueDate and the invoiceNumber omit-vs-supply choice. invoiceId (the source to clone) and especially businessId are never explained, leaving an agent guessing at their meaning and whether businessId is required for resolution.

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 states a specific verb and outcome: it reads a source invoice and creates a NEW DRAFT invoice from it, which clearly separates it from wave_create_invoice (build from scratch) and wave_update_invoice. It does not name those siblings explicitly, so differentiation is implied rather than stated.

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 gives concrete parameter-level guidance ('Requires deliberately selected invoiceDate/dueDate; omit invoiceNumber to request provider fresh auto-number'), which tells an agent how to call it. It never says when to prefer this over wave_create_invoice or wave_get_invoice, and gives no prerequisites about the source invoice being 'fully owned', which is left undefined.

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