Skip to main content
Glama

render_invoice

Destructive

The invoice as plain text, in the shape of the tenant's own template. Required: invoice_id. Read-only — this renders, it does not send.

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": "render_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoice_idYesID of the invoice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / invoice_id / description
      Added value: +"ID of the invoice"
  2. First observed

TDQS

C2.9/5.0
Behavior1/5

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

The description asserts 'Read-only', but annotations declare readOnlyHint=false and destructiveHint=true. This directly contradicts the structured safety profile and could lead an agent to call a destructive operation believing it is safe. The only additive context (output is plain text in the tenant template, no sending) does not offset the 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?

Two short sentences with no filler, and the output shape is front-loaded. Slightly odd to open with the return shape rather than the action, but it is efficient overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation-flagged, non-idempotent, destructive-annotated tool, the description leaves the warning burden entirely unmet and instead claims read-only. It does state the return format (plain text from the tenant template), which is helpful since there is no output schema, but the safety gap dominates.

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% and there is a single required parameter whose description is already documented in the schema. The description restates 'Required: invoice_id' without adding format, validation, or lookup semantics, so it lands at the baseline.

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 (renders) and resource (the invoice), plus the output shape ('plain text, in the shape of the tenant's own template'). This distinguishes it from the PDF-oriented siblings like render_document_pdf, though it doesn't explicitly name any sibling.

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?

'this renders, it does not send' implicitly tells the agent this is for producing output rather than delivering an invoice, which is useful negative guidance. However, there is no explicit guidance on when to choose this versus render_offer, get_invoice, or draft_invoice, so selection among siblings is left 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.