Skip to main content
Glama

Moltline Shipping Maths

Free Shipping Threshold

free_shipping_threshold
Read-onlyIdempotent

Find the order value at which free shipping stops costing you money. PREMIUM (license).

Break-even is where the gross margin on the order covers the shipping you absorb. Typical input {"gross_margin_pct": 45, "ship_cost": 7.5, "current_aov": 38, "target_uplift_pct": 15} returns {"break_even": 16.67, "suggested_threshold": 43.7, "above_current_aov_by": 5.7, "rationale": "..."}.

Use when setting or defending a free-shipping bar. Not for what shipping should cost when it is not free: that is rate_card. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
ship_costYesWhat one shipment actually costs you to send.
current_aovYesYour current average order value.
gross_margin_pctYesGross margin on a typical order, e.g. 45 for 45%. Must be above 0 and at most 100.
target_uplift_pctNoHow far above current AOV you want the threshold set, to pull baskets up. Default 0, which returns break-even.

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 declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavior: it never raises a protocol error, returns an {error: ...} object instead, and is always safe to retry after correcting input. The PREMIUM (license) note also flags an access prerequisite an agent would otherwise only discover at call time.

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?

Front-loaded with the core definition, then example, then usage routing, then error semantics — a sensible order with little waste. The multi-line inline JSON example is slightly bulky but earns its place by demonstrating output fields.

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?

With an output schema present the description needn't document return values, yet it still previews them in the example, and it covers inputs, routing, licensing, and error/retry behavior. Nothing an agent needs before calling is missing.

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%, so baseline is 3; the worked example lifts it by showing how the inputs map to distinct outputs (break_even vs suggested_threshold vs above_current_aov_by) and confirming target_uplift_pct=0 collapses to break-even. It doesn't explain units/edge behavior of target_uplift_pct beyond the default, so not 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?

States a specific verb+resource ('Find the order value at which free shipping stops costing you money') and immediately operationalizes it as break-even math. It explicitly names the sibling it is not (rate_card) and the condition that separates them, so no schema comparison is needed.

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?

"Use when setting or defending a free-shipping bar" plus "Not for what shipping should cost when it is not free: that is rate_card" gives an explicit when/when-not with a named alternative. It only disambiguates against one of five siblings, leaving dim_weight/freight_class/landed_cost/parcel_fit to inference (though those are far enough apart to be low risk).

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.