Skip to main content
Glama

Create invoice draft

create_invoice

Create a draft invoice or quote for a customer. KENJTEC calculates the totals. A draft has no number; issue_invoice gives it one.

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": {
      "customer_id": "<customer_id>",
      "lines": "<lines>"
    },
    "name": "create_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoAn invoice, or a quote the customer has to accept first.
introNoA line above the items, for example a greeting.
linesYesThe items on the invoice, in the order they should be printed.
outroNoA line below the items, for example payment terms or thanks.
currencyNoISO 4217, e.g. EUR, USD, BDT. Default: the sender's currency.
due_dateNoYYYY-MM-DD
tax_noteNoWhy no VAT is charged, printed on the document (for example: reverse charge, small business).
issue_dateNoYYYY-MM-DD
tax_exemptNoTrue when no VAT is charged — then say why in tax_note. Ask the user; do not decide it for them.
customer_idYesThe website's id — from list_sites.
service_dateNoYYYY-MM-DD — required to issue an invoice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write/safety profile is covered. The description adds useful lifecycle context — totals are computed server-side and the document has no number until issued — but says nothing about what is returned, whether the draft is editable, or any numbering/permission constraints. It adds some real value beyond annotations but leaves meaningful behavioral gaps.

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?

Three short sentences, front-loaded with the action and followed by the two facts that matter (totals are computed; drafts lack numbers until issued). No filler, though the middle sentence about KENJTEC calculating totals reads slightly like marketing rather than operational detail.

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 an 11-parameter creation tool with a fully documented schema, the description supplies the missing lifecycle and state information that the schema cannot express. The remaining gap is the absence of any note about the return value (a draft identifier an agent would need to pass to issue_invoice), which an agent would have to discover on first call.

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% and the schema already carries rich per-field meaning (cents pricing, tax_exempt handling, customer_id from list_sites), so the baseline is 3. The description contributes little parameter-specific detail but correctly frames the two required conceptual inputs — a customer and lines — and the calc-of-totals behavior clarifies how line values are treated.

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 ("Create a draft invoice or quote for a customer") and immediately distinguishes the output state from siblings by noting "A draft has no number; issue_invoice gives it one." An agent can tell this apart from issue_invoice without opening either schema.

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?

Establishes the draft-first workflow and names issue_invoice as the follow-up step that assigns a number, which is clear contextual guidance. It stops short of explicit when-not-to-use guidance (e.g., when to start with issue_invoice directly or how quotes are later accepted).

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