Skip to main content
Glama

issueInvoice

Destructive

Issue (finalize) a draft invoice. Issuing gives the invoice its number, applies the customer's balance, emails the invoice to the customer, and the invoice can no longer be edited or deleted. Returns the issued invoice. Always pass skipAutoCharge: false charges the customer's saved payment method right away when the location charges invoices automatically, and so does leaving it out; true leaves the invoice for the customer to pay. Only a draft can be issued; an invoice issued already is rejected, so a retry is safe. Get invoiceId from getInvoices. Never invent UUIDs; only use values from prior tool responses.

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": {
      "invoiceId": "<invoiceId>"
    },
    "name": "issueInvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesThe id of the invoice.
skipAutoChargeNoIf true, skip automatic charge after issuing the invoice.

Output Schema

NameRequiredDescriptionDefault
invoiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the destructiveHint annotation by enumerating the concrete side effects: number assignment, balance application, customer email, and permanent lock against edit/delete. It also discloses that the operation is effectively idempotent-safe on retry, which is non-obvious for a destructive write.

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 and its consequences, and every sentence carries information. The skipAutoCharge sentence is long and clause-chained ('Always pass skipAutoCharge: false charges... and so does leaving it out'), costing some readability, but nothing is padded.

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?

An output schema exists, so return details need only a pointer, which 'Returns the issued invoice' provides. Combined with preconditions, side effects, ID sourcing, and the auto-charge semantics, nothing an agent needs to call this safely is missing.

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, but the description adds real meaning for skipAutoCharge: the default false charges the saved payment method immediately when the location auto-charges, and omitting the field behaves the same as false. That default-equivalence detail is not stated in the schema, which only says 'If true, skip automatic charge'.

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?

Opens with a specific verb and resource, 'Issue (finalize) a draft invoice', which immediately separates it from siblings like createInvoice, voidInvoice, and resendInvoice. The parenthetical '(finalize)' disambiguates a term that could otherwise be read as merely 'send'.

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?

States the precondition plainly ('Only a draft can be issued; an invoice issued already is rejected') and routes the agent to getInvoices for the ID, with an explicit prohibition on inventing UUIDs. The guidance about which values are safe to retry and where the ID comes from is exactly the routing an agent needs.

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