Skip to main content
Glama

Copy invoice

copy_invoice

Copies a document of a company (its customer, items, bank account and texts) to a new invoice draft dated today, or to a new open proforma (e.g. "the same as last month"). An invoice draft gets no number and nothing is issued or sent; a proforma is numbered at once. A proforma is always copied to a proforma.

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": {
      "company_id": "<company_id>",
      "invoice_id": "<invoice_id>"
    },
    "name": "copy_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
proformaNotrue: copy to an open proforma; otherwise an invoice is copied to an invoice draft.
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the document to copy, from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses real side effects: the draft receives no number and nothing is issued or sent, while a proforma is numbered immediately, and a proforma input always yields a proforma output. That is exactly the kind of consequence detail annotations cannot convey, though it says nothing about how repeated calls behave or what is omitted from the copy.

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

Conciseness5/5

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

Two sentences, front-loaded with the core action and the source fields, followed by the draft-versus-proforma distinction. The parenthetical example adds a recognizable use case without padding, and no sentence is redundant.

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

Completeness4/5

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

For a three-parameter tool with a fully documented schema and no output schema, the description covers inputs, the resulting document state, and the numbering implication well. The only gaps are what is deliberately not copied (e.g. payment status, labels) and any failure conditions, which are minor for this complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description still adds meaning beyond the schema by clarifying that the new document is dated today and that proforma=true yields an already-numbered open proforma, plus the constraint that copying a proforma always produces a proforma regardless of intent, which sharpens how the boolean should be set.

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 (copies) and resource (a company's invoice document), then enumerates exactly what is carried over: customer, items, bank account and texts. It also names both possible outputs (invoice draft vs. open proforma), so the agent can tell this apart from create_invoice_draft or convert_proforma, though it never names those siblings explicitly.

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 provides a concrete motivating scenario ("the same as last month") and explains that the proforma flag selects between a draft and a numbered proforma, which is useful in-call guidance. However, there is no explicit when-not-to-use guidance and no reference to the neighbouring tools that also create or transform invoices, so the agent must infer that this tool is the right choice for duplicating an existing document.

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