Skip to main content
Glama

draft_invoice

Destructive

Start an invoice. Required: exactly one of lead_id, account_id or contact_id. Optional: lines, title, intro, outro, address, due_days (default 20), payment_note (the IBAN block), currency. The number follows the tenant's own series, RE---. Nothing is sent.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "draft_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
introNoIntroductory text printed above the positions
linesNoInvoice positions: name, quantity, unit_price and optional fields
outroNoClosing text printed below the positions
titleNoTitle of the invoice
addressNoPostal address
lead_idNoID of the lead
currencyNoCurrency code (ISO 4217, e.g. EUR)
due_daysNoPayment term in days; default 20
account_idNoID of the account (company)
contact_idNoID of the contact
payment_noteNoPayment information block (e.g. IBAN) printed on the invoice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / address / description
      Added value: +"Postal address"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / currency / description
      Added value: +"Currency code (ISO 4217, e.g. EUR)"
    • addedInput schema / properties / due_days / description
      Added value: +"Payment term in days; default 20"
    • addedInput schema / properties / intro / description
      Added value: +"Introductory text printed above the positions"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / lines / description
      Added value: +"Invoice positions: name, quantity, unit_price and optional fields"
    • addedInput schema / properties / outro / description
      Added value: +"Closing text printed below the positions"
    • addedInput schema / properties / payment_note / description
      Added value: +"Payment information block (e.g. IBAN) printed on the invoice"
    • addedInput schema / properties / title / description
      Added value: +"Title of the invoice"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The description adds real behavioral context: a number is drawn from the tenant's own RE-<Jahr>-<MONAT>-<n> series and nothing is actually sent or delivered. However, annotations declare destructiveHint=true and it never explains that consequence (number consumed from the series, draft non-idempotent, how to undo). With the safety profile left partly unexplained, this is adequate but not rich.

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 action, then the required constraint, then options, then two short caveats. The optional-parameter list partially repeats the schema, but the exactly-one-of rule and defaults justify it.

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 an 11-parameter mutation with no output schema, the description never indicates what is returned (e.g., a draft/invoice ID needed by update_invoice, render_invoice or send_draft_email) nor why it is flagged destructive. The input side is fully covered; the outcome side is not.

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, and the description goes beyond it by stating the exactly-one-of constraint among the three ID parameters, which the schema does not express (required is empty). It also glosses payment_note as the IBAN block and confirms the 20-day default.

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?

"Start an invoice" is a specific verb+resource, and "Nothing is sent" makes clear this is a draft-only creation rather than a delivery step. It never names the sibling to pick for actually issuing/sending the invoice, so the distinction 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 Guidelines4/5

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

Gives a hard precondition (exactly one of lead_id, account_id or contact_id) plus a default (due_days 20), which is the guidance an agent needs to call it correctly. It does not say when to prefer this over invoice_from_offer or create_abaninja_invoice, so cross-tool routing is left to inference.

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.