Skip to main content
Glama

All AI LLC API: documents and calculators

Invoice or quote (PDF and Word)

invoice_quote_pdf
Read-onlyIdempotent

Builds a clean invoice or price quote from structured line items: quantities, unit prices, per-line or default tax percent, discounts, shipping and amount paid. All math is done server-side in integer cents and returned as JSON alongside a PDF and a Word file. Optional expected_total is checked and the call fails (free) if it does not match. Your branding fields (business name, address, tax id, accent text) go on the document. 20 credits ($0.02) per successful document. PAID: 20 credits ($0.02) per successful call from one-time prepaid credits; send Authorization: Bearer <api_key>. Failed or empty calls are free. Keyless callers get 3 free trial calls per day.

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": {
      "items": "<items>"
    },
    "name": "invoice_quote_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoDefault invoice.
brandNo
buyerNo
itemsYesLine items.
notesNo
termsNo
formatNoOutput files (default both).
numberNo
sellerNo
api_keyNoOptional. Only for clients that cannot send an Authorization header.
currencyNoISO 4217 code, default USD.
discountNoWhole-document discount (amount).
due_dateNoInvoice due date, or quote valid-until date.
shippingNo
tax_rateNoDefault tax percent for lines without their own.
issue_dateNo
amount_paidNo
expected_totalNoIf given, must equal the computed total to the cent.
payment_instructionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare a safe, idempotent generator; the description adds substantial behavior the agent could not otherwise know: all arithmetic is server-side in integer cents, output is JSON plus PDF/Word, expected_total is validated and a mismatch fails the call for free, branding is embedded on the document, and billing is 20 credits per success with free trials and failed-call exemptions. The auth requirement (Bearer token, with api_key only for header-less clients) is spelled out, which is exactly the operational context annotations omit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and math model are front-loaded and useful, but the pricing is stated twice ("20 credits ($0.02) per successful document" then "PAID: 20 credits ($0.02) per successful call"), and the final third of the text is billing and auth boilerplate that crowds out parameter coverage. There is some redundancy to trim.

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

Completeness4/5

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

For a 19-parameter, nested-object tool with no output schema, the description does enough: it describes the return payload (JSON alongside PDF and Word files), the failure mode, and the money model. Gaps remain on date fields and free-text fields (notes, terms, payment_instructions), but nothing critical for a correct first call is missing.

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 47%, so the description must compensate and it only partly does. It usefully explains the pricing model (per-line vs default tax percent, whole-document vs per-line discounts, shipping, amount paid) and the expected_total contract, but it says nothing about notes, terms, number, issue_date, due_date semantics, or payment_instructions, and 'accent text' does not map cleanly to any listed property.

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?

The first sentence gives a specific verb and resource ("Builds a clean invoice or price quote") plus the input shape ("structured line items"). It clearly separates itself from the catalog of generate_* document siblings, which produce plans, permits, and checklists rather than priced billing documents.

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 implied rather than stated: the kind enum and the 'invoice or price quote' framing tell an agent what the tool is for, and the expected_total check tells it when to supply a total. There is no explicit when-to-use/when-not guidance and no named alternative among siblings, so an agent must infer selection criteria.

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.