Skip to main content
Glama
LightSpeedPlusOne

invovate-mcp-server

calculate_invoice_totals

Compute invoice totals including subtotal, discounts, tax, shipping, deposit, grand total, and balance due. Validate amounts before generating a PDF without needing an API key.

Instructions

Compute invoice totals (subtotal, per-line and global discounts, tax, shipping, deposit, grand total, balance due) without rendering a file. No API key required. Use this to validate amounts before generating a PDF.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesThe business issuing the invoice.
toYesThe customer being billed.
itemsYesLine items (at least one).
currencyNoISO 4217 code, e.g. USD, EUR, GBP. Default USD.
languageNoInvoice language. Default en. ar/ja/hi/ru render with embedded fonts.
templateNoPDF template. Default classic.
numberNoInvoice number; auto-generated if omitted.
dateNoISO date, e.g. 2026-06-01.
due_dateNo
po_numberNo
notesNo
termsNoPayment terms, e.g. "Net 30".
global_taxNoTax % applied to all lines without their own tax_rate.
global_discountNo
global_discount_typeNo
shippingNo
depositNo
amount_paidNoAmount already paid (for partial invoices).
paymentNo
accent_colorNoHex color like #2563eb.
Behavior3/5

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

No annotations are provided; the description discloses it computes totals and does not render a file, but does not mention output format, side effects (none expected), or any rate limits. For a read-only computation, the transparency is moderate.

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 concise sentences with no unnecessary words. The key information is front-loaded.

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 tool is complex (20 params, nested objects, no output schema). The description lists computed fields but does not explain calculation precedence, return value structure, or edge cases, leaving gaps for an agent.

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 60%, so the baseline is 3. The description adds no new parameter information beyond listing the computed fields (subtotal, discounts, etc.), which is helpful but not supplementary to the schema.

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 description explicitly states 'Compute invoice totals ... without rendering a file' and contrasts with generating a PDF, making the purpose clear and distinguishing it from siblings like generate_invoice_pdf.

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

Usage Guidelines4/5

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

It advises 'Use this to validate amounts before generating a PDF' and notes 'No API key required', providing good context. However, it does not explicitly state when not to use or list alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LightSpeedPlusOne/invovate-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server