Skip to main content
Glama

mechacut

money_discount

The math the checkout will not do for you. '-30% then -20%' is NOT -50%: chained discounts are successive multiplicative factors (0.70 x 0.80 = 0.56 -> 44%), and the naive sum is reported SIDE BY SIDE with the lie's size (percent_lie_delta). When a fixed-amount step exists, ALL step orders are computed and compared: order_matters + order_spread + best_step_order_for_you — because -30%% then -5eur is not -5eur then -30%%. buy2pay1 with qty, exact Decimal money, final HALF_UP 2 dp declared, the formula returned for audit, below-zero chains refused by name never clipped. Free — this one should be free forever.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "price": "<price>",
      "steps": "<steps>"
    },
    "name": "money_discount"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNo
priceYes
stepsYes
currencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does so well: it declares exact Decimal arithmetic, HALF_UP rounding to 2 dp, a formula returned for audit, below-zero chains refused rather than clipped, currency-agnostic order comparison, and even the output field names (percent_lie_delta, order_matters, order_spread, best_step_order_for_you). It stops short of describing the response object structure, error payload shape, or any limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content itself is valuable, but the delivery is a dense run-on laced with rhetorical asides ('the lie's size', 'refused by name never clipped') and broken escaping ('-30%%', 'not -5eur then -30%%'), which hurts parseability. It is front-loaded with metaphor rather than with the core statement of what the tool computes.

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?

For a four-parameter, no-annotation, no-output-schema calculator, the behavioral story is unusually complete but the input story is not: an agent still cannot tell what currency should look like or what per_unit changes. The output field names are named but their shapes and types are not specified anywhere else.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain all four parameters and largely fails: it mentions qty only in passing ('buy2pay1 with qty'), implies price and step values via examples, but never explains currency, the per_unit boolean, or the string-encoded decimal format. Half the inputs remain ambiguous from both schema and prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states a clean verb+resource, opening with the metaphor 'The math the checkout will not do for you', but the substance that follows (chained discounts, order comparison, buy2pay1, rounding) makes the function — computing stacked discount totals — unmistakable. It does not distinguish itself from the plausible sibling shop_discount_audit, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied through scenarios like '-30% then -20%' and 'when a fixed-amount step exists'; there is no explicit 'use this when' or 'do not use this for' guidance. Most importantly, the description never routes the agent away from the likely-overlapping shop_discount_audit or money_bogo siblings.

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.