Skip to main content
Glama

RenderHub — PDF, Markdown, Invoice, Screenshot & OG Image MCP

generate_invoice_pdf

Generates a formatted multi-currency business invoice PDF from structured JSON (line items, optional tax/discount) with automatic total calculation.

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": {
      "invoiceNumber": "<invoiceNumber>",
      "from": "<from>",
      "to": "<to>",
      "items": "<items>"
    },
    "name": "generate_invoice_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesBuyer details: { name, email?, phone?, taxId?, address? }.
fromYesSeller details: { name, email?, phone?, taxId?, address? }.
itemsYesArray of { description, quantity, unitPrice } line items.
notesNoOptional invoice notes.
statusNoStatus pill on the invoice.
currencyNo3-letter currency code: USD, EUR, VND, GBP, etc. (default USD).
invoiceNumberYesInvoice number such as INV-2026-001.
discountAmountNoOptional fixed discount amount.
taxRatePercentNoOptional tax/VAT percentage (0-100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It reveals one useful behavior — totals are calculated automatically from line items plus tax/discount — but says nothing about whether a file is written, a URL or base64 blob is returned, whether generation is side-effect free, or what happens with invalid currency codes.

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?

One front-loaded sentence with zero filler; the artifact type and the key behavioral promise (automatic totals) come first, and nothing is repeated from 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?

The input side is well covered given 100% schema coverage, but this is a 9-parameter generator with nested objects and no output schema, and the description never says what the caller receives back (file path, URL, or binary). That omission leaves a real gap for invocation and follow-up handling.

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 baseline is 3; the description earns extra by explaining the interaction among items, taxRatePercent and discountAmount (automatic total calculation) and by flagging currency handling and optionality of tax/discount, which the schema describes only field-by-field.

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 (Generates), a specific artifact (formatted multi-currency business invoice PDF), and the input form (structured JSON with line items and optional tax/discount). This is clearly distinct from generic siblings like markdown_to_pdf or render_pdf, though it never names an alternative explicitly.

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 guidance on when to use this versus render_pdf or markdown_to_pdf, no stated prerequisites, and no mention of what the caller must supply beyond the schema. The agent must infer the choice purely from the resource name.

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