Skip to main content
Glama

Moltline Merchant Math

This connector has been deprecated

Superseded listing, not a dead server. This entry was imported from an early Glama registration under com.moltlinestudio.mcp; the same server is listed under its official MCP Registry name — use com.moltlinestudio/merchant. Endpoint unchanged: https://mcp.moltlinestudio.com/merchant — still live, still free on the free tier. Only this duplicate entry is deprecated.

Invoice Total

invoice_total
Read-onlyIdempotent

Total an invoice: per-line totals, subtotal, discount, tax, grand total. FREE.

Typical input {"line_items": [{"desc": "Design", "qty": 2, "unit_price": 50}], "tax_pct": 8.5, "discount_pct": 10} returns {"lines": [{"desc": "Design", "qty": 2, "unit_price": 50, "line_total": 100.0}], "subtotal": 100.0, "discount": 10.0, "tax": 7.65, "total": 97.65}.

Use when several line items roll up with discount and tax. Not for one transaction's fees (processor_fees) and not for spreading a total over time (installment_plan). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "line_items must contain at least one item,"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
tax_pctNoTax percentage applied after the discount, e.g. 8.5. Default 0.
line_itemsYesAt least one line item object {"desc": str, "qty": number, "unit_price": number}; the first 100 items are used.
discount_pctNoDiscount percentage applied to the subtotal. Default 0.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world behavior. The description adds important error behavior beyond annotations: malformed input returns an {"error": ...} object instead of a protocol error, and retry after correction is safe.

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?

The purpose is front-loaded and the usage and error guidance are easy to scan. The full input/output example is useful but somewhat verbose, especially since an output schema exists.

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?

Given a computation tool with complete schema documentation, rich annotations, and an output schema, the description supplies the remaining operational context: usage boundaries, error contract, and retry safety.

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 coverage is 100%, and the schema already documents tax_pct, discount_pct, and the line_items shape including the 100-item cap. The description's input example is helpful but largely illustrates rather than adding new parameter semantics beyond 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?

States a specific verb and resource: totals an invoice and enumerates the exact components computed (per-line totals, subtotal, discount, tax, grand total). It clearly distinguishes itself from processor_fees and installment_plan by naming those siblings as out of scope.

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

Usage Guidelines5/5

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

Explicitly says when to use it: several line items rolling up with discount and tax. It also names two alternatives and the conditions that select them, so an agent has direct routing guidance.

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