Skip to main content
Glama

Render e-invoice as PDF

render_invoice_pdf
Read-onlyIdempotent

Human-readable PDF of the invoice (counts as 2 requests). Returned as a base64 resource.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render_invoice_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLabel language of the PDF, e.g. "de"; default en
contentNoInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text
content_base64NoA ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / lang / description
      Added value: +"Label language of the PDF, e.g. \"de\"; default en"
  2. Changed1 schema field changed
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "de",
      -  "fr",
      -  "pl",
      -  "nl",
      -  "hr"
      -]New value: +[
      +  "en",
      +  "de",
      +  "fr",
      +  "pl",
      +  "nl",
      +  "hr",
      +  "es"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "de",
      -  "fr",
      -  "pl",
      -  "nl"
      -]New value: +[
      +  "en",
      +  "de",
      +  "fr",
      +  "pl",
      +  "nl",
      +  "hr"
      +]
  4. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the description is not obligated to cover safety. It does add genuinely useful behavior beyond the annotations: the cost model ('counts as 2 requests') and the return shape ('base64 resource'), both of which affect how an agent plans calls and handles output.

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 short sentences with zero filler; the cost warning and return format are stated up front where an agent will see them. Nothing is redundant with the schema.

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

Completeness3/5

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

Cost and return format are covered, but the tool has zero required parameters and two mutually alternative input channels (content vs content_base64). The description never says that exactly one input form is expected or how they relate, which is the main decision an agent faces 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 description coverage is 100%, and the enum for lang plus the accepted invoice formats for content/content_base64 are fully documented in the schema. The description adds no parameter meaning on top of that, so the baseline of 3 applies.

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 names the concrete output: a human-readable PDF rendering of the invoice, which is specific enough to distinguish it from parse/validate/fix siblings. It only weakly separates itself from render_invoice_html, relying on the word 'PDF' rather than an explicit statement of the difference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no exclusions, and no reference to alternatives such as render_invoice_html or parse_invoice. The agent must infer from the sibling names alone which rendering endpoint to pick.

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.