Skip to main content
Glama

Draft an invoice

create_invoice_draft

Creates a draft invoice for a client (contactId). Nothing is sent. Returns the invoiceId and an openUrl where the user can see the draft.

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": {
      "contactId": "<contactId>",
      "lines": "<lines>"
    },
    "name": "create_invoice_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesInvoice line items.
notesNoOptional notes on the invoice.
dueDateNoISO due date e.g. 2025-07-19. Omit to use business default payment terms.
contactIdYesUUID of the client contact (from lookup_contact or create_contact).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent write. The description adds value beyond them by confirming no notification is emitted to the client and by describing the return payload (invoiceId, openUrl) even though no output schema exists. It stops short of warning that repeated calls will create duplicate drafts, which is the main residual behavioral risk given idempotentHint=false.

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?

Three short sentences, front-loaded with the action, then the key safety fact, then the return value. Every sentence carries distinct information with no filler.

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?

With no output schema, the description correctly compensates by naming the returned invoiceId and openUrl. Parameters are fully covered by the schema, so the only gap is the absence of any note on draft mutability or duplicate-creation behavior for a non-idempotent create.

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?

Schema coverage is 100%, so contactId, lines, dueDate, notes and the BTW enum are already documented in the schema itself. The description only echoes contactId as 'a client', adding no syntax, defaults, or constraints beyond structured data; baseline 3 applies.

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?

States a specific verb and resource ('Creates a draft invoice') and pins the client to contactId. The phrase 'Nothing is sent' cleanly separates it from send_invoice, but it does not name or route to update_invoice_draft or create_quote_draft, so the differentiation is implicit rather than explicit.

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?

The 'Nothing is sent' clause implies the workflow (draft now, send later via another tool), which is real but indirect guidance. There is no explicit statement of when to choose this over create_quote_draft or update_invoice_draft, and no prerequisites or preconditions are listed.

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