Skip to main content
Glama

Issue invoice

issue_invoice
Destructive

Issue a draft: it gets the next gapless number and can no longer be edited or deleted — only cancelled. Ask the user before calling this.

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

Input Schema

NameRequiredDescriptionDefault
invoice_idYesThe website's id — from list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

The annotations only flag destructiveHint and non-idempotency; the description goes further by disclosing the gapless numbering outcome and the irreversible state change — no editing, no deletion, cancellation as the only exit. That is exactly the behavioral context an agent needs before a mutation.

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 tightly constructed clauses, with the state-change consequence front-loaded ahead of the confirmation instruction. No wasted wording.

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 one-parameter destructive mutation with no output schema, the description covers the essential risks, preconditions, and the confirmation requirement. The only minor gap is that it does not say what comes back from the call, which matters little here.

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% for the single invoice_id parameter, so the schema already carries parameter meaning and the description adds nothing about it. Baseline 3 is appropriate given the schema does the work, though a hint that the id must reference a draft would have helped.

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 gives a specific verb ('Issue') and object ('a draft'), and makes clear the operation's effect: the draft receives the next gapless number and becomes locked. That distinguishes it implicitly from create_invoice, cancel_invoice, and send_invoice, though no sibling is named explicitly.

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?

It states the precondition (must be a draft) and an explicit operational rule: ask the user before calling. What is not stated is when to choose this over send_invoice or cancel_invoice, so the guidance is clear on context but not on alternatives.

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