Skip to main content
Glama

mechacut

shop_discount_audit

Is that crossed-out price legal? Omnibus Directive (EU) 2019/2161 art. 6a arithmetic: reference = lowest applied price of the previous 30 days (CJEU C-330/23: earlier sales LOWER the reference), true_percent vs claimed, verdict COMPLIANT/MISLEADING_INFLATION/WRONG_REFERENCE/NO_REDUCTION; progressive-step clause de/fr, history and as_of are ARGUMENTS — never a fetched price. Free.

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": {
      "history": "<history>",
      "as_of": "<as_of>",
      "sale_price": "<sale_price>"
    },
    "name": "shop_discount_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofYes
historyYes
sale_priceYes
jurisdictionNoeu
campaign_startNo
previous_priceNo
claimed_percentNo
on_market_sinceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden: it does disclose that the tool is a free, non-fetching arithmetic evaluation and enumerates its verdict outputs, which is real behavioral value. It omits what happens with sparse/missing history, currency handling, and how errors are surfaced for an 8-parameter legal computation.

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?

It is a single dense, front-loaded passage with no filler sentences; the legal hook and the key argument constraint come first. The telegraphic style ("Free.", "de/fr", "art. 6a arithmetic") trades some readability for compactness but nothing is wasted.

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 complex, unannotated, no-output-schema tool with 8 parameters, the description covers the legal model and verdict taxonomy well but leaves output structure, error behavior, and three of eight parameters undocumented. An agent can call it correctly only by inferring parameter formats from the schema's types alone.

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 0%, so the description must compensate. It explains the semantics of history and as_of (caller-supplied arguments, 30-day window), sale_price vs claimed_percent, and jurisdiction (de/fr progressive-step clause), which is meaningful. However, previous_price, campaign_start, and on_market_since are left entirely unexplained despite likely affecting the 30-day window and progressive-step logic.

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 names a concrete task: auditing a crossed-out sale price against the EU Omnibus Directive art. 6a reference-price rule, returning a verdict from a fixed set. It is specific enough that an agent knows this is a legal discount-claim check rather than a refund or voucher tool, though it never explicitly contrasts itself with siblings such as shop_pricedrop_refund or money_discount.

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?

It gives a strong calling constraint: history and as_of are caller-supplied ARGUMENTS, never a fetched price, which tells the agent it must gather price history itself before calling. It also signals an EU/de/fr legal scope. It stops short of naming alternatives or stating when *not* to use it.

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.