Skip to main content
Glama

Moltline Merchant Math

Installment Plan

installment_plan
Read-onlyIdempotent

Split a total into an installment schedule with optional deposit. PREMIUM (license).

Rounding remainders land on the final payment so the schedule always sums exactly. Typical input {"total": 1000, "installments": 3, "deposit_pct": 10} returns {"deposit": 100.0, "payments": [300.0, 300.0, 300.0], "check_sum": 1000.0}.

Use when one total is paid across scheduled dates. Not for partial-period adjustments (proration). Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "total > 0 and 1-36 installments"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYesFull amount to split; must be greater than 0.
deposit_pctNoOptional upfront deposit as a percentage of total, e.g. 10 for 10%. Default 0.
installmentsYesNumber of payments after the deposit; 1 to 36.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses multiple behaviors beyond annotations: rounding remainder to final payment, error handling ('never raises a protocol error — it returns {"error": ...}'), and the consequence of read-only and idempotent semantics ('so after correcting the input it is always safe to retry'). Annotations already declare readOnlyHint and idempotentHint, but the description adds practical retry guidance. No contradictions with annotations.

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 description is well-structured with a clear logical flow: purpose, rounding behavior, example, usage guidelines, error handling, and idempotent note. Every sentence adds meaningful information. While it is not excessively verbose, it could be slightly more concise (e.g., the 'PREMIUM (license)' note might be merged). Overall, it is efficient and front-loaded.

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 the tool has 3 parameters (100% schema coverage), an output schema, and clear annotations, the description covers all critical aspects: purpose, behavior, usage boundaries, error handling, and retry safety. The example effectively demonstrates the output shape. No significant gaps are present, making the description complete for agent selection and invocation.

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% with clear descriptions for each parameter. The description adds value by providing a concrete example ('Typical input {"total": 1000, "installments": 3, "deposit_pct": 10} returns ...') that illustrates how parameters map to input and output. It also explains the rounding behavior affecting the total. This goes beyond the schema, earning a score above baseline 3.

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 clearly states the tool's purpose: 'Split a total into an installment schedule with optional deposit.' It uses a specific verb ('Split') and resource ('total into an installment schedule'), and directly contrasts with the sibling 'proration' by stating 'Not for partial-period adjustments (proration).' This effectively distinguishes the tool from at least one sibling, making purpose differentiation clear.

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?

The description provides explicit when-to-use guidance: 'Use when one total is paid across scheduled dates.' It also gives a clear when-not-to-use scenario: 'Not for partial-period adjustments (proration),' which directly references a sibling tool as an alternative. Additionally, the note 'PREMIUM (license)' hints at licensing constraints, adding further context for agent decision-making.

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.

TDQS

A4.6/5.0
Disambiguation4/5

Each tool targets a distinct calculation scenario (fees, discounts, installments, invoicing, proration). The descriptions explicitly state when to use each and when not to, reducing ambiguity. Minor overlap exists between processor_fees and charge_to_net, but the inverse relationship is clearly documented.

Naming Consistency5/5

All tool names use a consistent noun_verb pattern (e.g., charge_to_net, discount_stack, installment_plan). The naming is descriptive and follows a predictable structure, making it easy for an agent to infer tool purpose from the name alone.

Tool Count5/5

With 6 tools, the count is ideal for the domain of merchant math. Each tool covers a distinct and essential calculation type without redundancy, and the scope is neither too thin nor overly heavy.

Completeness4/5

The tools cover core merchant math operations: fee calculation, gross-up pricing, discount stacking, installment splitting, invoicing, and proration. A minor gap is the absence of a tool for compound interest or tax-only calculations, but those may be out of scope for merchant math. Overall, the surface is well-rounded for its intended domain.

Resources