Skip to main content
Glama

Duplicate invoice

duplicate_invoice

Creates a draft copy of one existing invoice, chosen by id, with the same recipient, line items and discounts, today's date, a due date from the payment terms and the current sender details. Use it to reuse a specific invoice; create_invoice_from_previous copies the latest invoice of a recipient instead and can override fields. The copy is always a draft, so it is free and spends no credits, whatever the status of the original. It has no invoice number; update_invoice can set one and finalize it. Each call creates another draft, so repeating a call that succeeded leaves a duplicate. Side effect: the recipient gets a customer record if none exists under that company name, created from the recipient details of the invoice, and the invoice is linked to it. An existing customer record is not changed. It does not email anyone.

Input Schema

NameRequiredDescriptionDefault
idYesInvoice ID to duplicate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the copy is always a draft, costs no credits regardless of the original's status, has no invoice number, is non-idempotent in a user-visible way ('repeating a call that succeeded leaves a duplicate'), and triggers a customer-record creation side effect without emailing anyone. These are exactly the traits the annotations cannot convey.

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 core action and effect, followed by alternatives and caveats in a logical order. It is dense and sentence-heavy, but essentially every sentence carries non-redundant operational information.

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 single-parameter mutation with no output schema, the description covers the outcome (draft, unnumbered), cost, idempotency behavior, side effects, and follow-up tool. Nothing an agent needs to call 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?

Only one parameter, and the schema already documents it at 100% coverage ('Invoice ID to duplicate'). The description's 'chosen by id' adds no syntax or format detail beyond the schema, so the baseline 3 for high coverage 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 and resource ('Creates a draft copy of one existing invoice') plus the exact scope of what is copied (recipient, line items, discounts, dates, sender details). It explicitly contrasts with the sibling create_invoice_from_previous, so an agent can distinguish the two without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use this to reuse a specific invoice, use create_invoice_from_previous to copy a recipient's latest invoice with field overrides. It also names update_invoice as the follow-up for setting a number and finalizing, and warns that repeats create duplicates.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources