Skip to main content
Glama

Invoice PDF

doc_invoice
Read-onlyIdempotent

Generate a clean A4 invoice PDF with business and client details, line items, discounts, taxes, computed totals, notes, terms, and an optional PAID stamp.

Instructions

Make a clean A4 invoice PDF: your business (logo, name, address, email, phone, tax ID), client, invoice number and dates, line items with quantity, unit price, per-line discount % and tax %, subtotal, discount, tax per rate and total, notes, payment terms, and an optional PAID stamp. Same maths as the website: every line is rounded to the currency's minor unit (2 decimals, 3 for JOD/KWD/BHD/OMR/TND…, 0 for JPY…) with half-up rounding; amounts formatted en-US style ($1,234.50, JOD 10.124). Long item lists continue on more pages. Returns the PDF path and the computed totals. Latin text only for now. Web version: https://s3eidat.github.io/invoice-maker/

Input Schema

NameRequiredDescriptionDefault
toNoThe client (bill to): name, email, address.
dueNoDue date, YYYY-MM-DD (optional).
dateNoIssue date, YYYY-MM-DD (default today).
fromNoYour business: name, email, phone, address, taxId.
logoNoOptional logo image: a PNG/JPEG/WebP/GIF/SVG file path or base64. Drawn as-is (keep it small).
paidNoMark as paid (shows "Amount paid" and a PAID stamp).
itemsYesLine items: desc, qty, price, disc %, tax %.
notesNoNotes shown at the bottom.
termsNoPayment terms shown at the bottom.
accentNoAccent colour (hex).#0e9f9a
numberNoInvoice number.INV-0001
outputNoWhere to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set).
currencyNoCurrency code.USD
returnBase64NoAlso return the output as base64 in the result (only for small files). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Goes well past the annotations by disclosing the rounding contract (half-up to the currency's minor unit, with named 3-decimal and 0-decimal currencies), formatting style, multi-page continuation for long item lists, Latin-only limitation, and the return payload (PDF path plus computed totals). It also implicitly discloses a filesystem write via the output parameter, which sits in mild tension with readOnlyHint but is conventional for a document generator that only creates a new artifact.

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?

Front-loaded with the purpose and the artifact, then the high-value details (math, pagination, Latin-only, return value). The long parenthetical field inventory is largely redundant with a fully-described schema and is the one clause that does not fully earn its space, but the rest is dense and useful.

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?

For a 14-parameter, nested-object tool with no output schema, the description covers what the agent must know before calling: what gets rendered, how money is computed and formatted, that long lists paginate, the Latin-only restriction, and what comes back (path + totals). No output schema is needed given that return description.

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 already 100%, so the baseline is 3; the description earns an extra point by explaining computation semantics the schema does not — discount applied before tax, per-line rounding to the currency minor unit, en-US formatting with examples (JOD 10.124). It does not clarify logo path-vs-base64 handling or the 300-item ceiling, which remain schema-only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and artifact ("Make a clean A4 invoice PDF") and then enumerates exactly what the document contains — issuer block, client, invoice number/dates, line items, totals, notes, terms, PAID stamp. That level of specificity makes it unmistakable against siblings like doc_receipt or ai_markdown_to_pdf without opening any schema.

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?

Usage is only implied: the field list and the closing "Latin text only for now" and web-version link hint at scope, but there is no explicit when-to-use/when-not-to-use statement and no named alternative (e.g. doc_receipt for receipts, ai_markdown_to_pdf for arbitrary PDFs). The web link is a reference, not routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools