Skip to main content
Glama

Prepare issuing an invoice

prepare_issue_invoice

Checks that an invoice draft can be issued and returns a summary of what issuing would do, for the user's confirmation: the number and issue date it will get, the seller and the customer, the totals per VAT rate, the exchange rate, the bank account (IBAN masked), the e-invoice warnings (they never block issuing) and the plan usage, with a one-time confirmation token valid for 10 minutes. No data of the company or its documents is changed.

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

Input Schema

NameRequiredDescriptionDefault
dateNoThe issue date, YYYY-MM-DD; today in the time zone of the company when not given. It can't be after that day or before the latest issued document of the series.
numberNoA number other than the usual one to issue the document with; when not given, the document keeps its own number or gets the next number of the series of the company.
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the invoice draft, from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds real context the annotations lack: the token's 10-minute lifetime, that warnings are advisory, that IBAN is masked, and that no company or document data is modified. The 'no data changed' claim sits slightly at odds with readOnlyHint=false, but it is scoped to company/document data and is plausibly explaining the confirmation-state write, so this reads as clarification rather than contradiction.

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?

A single dense sentence that front-loads the purpose and the confirmation intent, then enumerates the summary contents. Every clause carries information for the agent, though the long enumeration of return fields borders on a list better suited to an output schema.

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?

With no output schema, the description compensates by enumerating exactly what the summary contains (number, issue date, parties, VAT totals, exchange rate, masked IBAN, warnings, plan usage) and what the token is for. Combined with full schema coverage, an agent has everything needed to call this correctly and interpret the result.

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 description coverage is 100%, including the date bound and number override semantics, so the structured data already carries the parameter meaning. The description adds nothing further about date, number, company_id or invoice_id, which is acceptable given complete schema coverage but is the baseline rather than an enhancement.

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 opens with a specific verb-plus-resource ('Checks that an invoice draft can be issued') and clarifies the dry-run nature by stating that no company or document data is changed, which separates it from the issue_invoice sibling. It stops short of naming that sibling explicitly, so the differentiation is inferential 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?

'For the user's confirmation' plus 'a one-time confirmation token valid for 10 minutes' makes the intended two-step prepare-then-issue flow clear, and the note that e-invoice warnings never block issuing tells the agent not to abort on warnings. It never explicitly says to call this before issue_invoice or what to do if the check fails, leaving the failure path 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.

Resources