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.

Proration

proration
Read-onlyIdempotent

Compute a prorated charge or refund for a partial billing period. PREMIUM (license).

Typical input {"amount_per_period": 90, "days_used": 10, "days_in_period": 30} returns {"days_used": 10, "days_in_period": 30, "prorated_charge": 30.0, "prorated_refund": 60.0, "answer": 30.0}.

Use when a plan starts, ends, or changes mid-period. Not for splitting a full amount into scheduled payments (installment_plan). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "need amount > 0 and 0 <= days_used <= days_in_period"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
days_usedYesDays of the period consumed; 0 to days_in_period.
refund_modeNoIf true, "answer" is the refund amount instead of the charge. Default false.
days_in_periodNoLength of the billing period in days; at least 1. Default 30.
amount_per_periodYesFull-period price; must be greater than 0.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, but the description adds substantial context beyond them: it states the tool never raises a protocol error, describes the error-return shape, and explains that retrying after correction is always safe. That is exactly the kind of behavioral detail an agent needs to handle failures and retries confidently.

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?

The description is compact and front-loaded: the core purpose comes first, followed by a compact worked example, usage routing, error contract, and retry safety. Every sentence carries information an agent needs, with no filler.

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?

The tool is a simple read-only calculation with an output schema already present, so the description does not need to explain return values in detail. It still covers the worked example, error behavior, usage boundaries, and idempotency, leaving nothing critical for an agent to infer before calling it.

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 description coverage is 100%, so the schema already documents every parameter. The description still adds value by walking through a concrete input/output example that maps amount_per_period, days_used, and days_in_period to the returned prorated_charge and prorated_refund. It does not explain refund_mode in the description, which keeps it from a 5.

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 opens with a specific verb and resource: 'Compute a prorated charge or refund for a partial billing period.' This is precise enough to distinguish the tool from siblings like installment_plan, which is explicitly named as the wrong tool for scheduled payments.

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?

It gives an explicit when-to-use condition ('a plan starts, ends, or changes mid-period') and an explicit when-not-to-use alternative ('Not for splitting a full amount into scheduled payments (installment_plan)'). The routing decision is fully specified.

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