Skip to main content
Glama

Check Kash promo code

coupon_check
Read-onlyIdempotent

Check a promo code and optionally estimate the reduction for a cart. Provide customer and cashbox context when applicable.

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": {
      "code": "<code>"
    },
    "name": "coupon_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
cartNo
codeYesSensitive coupon code. Keep it out of messages and URLs.
cashbox_idNoKash cashbox ID or -9 for the web shop.
customer_idNoKash customer ID.

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds that cart reduction estimation is optional, but says nothing about what an invalid or expired code returns, whether customer/cashbox context changes eligibility, or any rate limits.

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?

Two short sentences with the primary action front-loaded and the optional capability second; no filler. It is slightly under-specified rather than verbose, so it loses a point for economy of content rather than length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and a well-documented nested cart schema, the description covers the two operating modes (validation only vs. cart estimate) adequately. Minor gaps remain around invalid-code behavior and what the estimate includes, but nothing essential to invoking it correctly is missing.

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 75% and the schema itself carries rich per-parameter documentation (PLU IDs, quantity bounds, context default of on_premises, sensitive-code handling, -9 web-shop sentinel). The description only restates that customer and cashbox context may be provided, adding little beyond the structured data; baseline 3 applies.

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 gives a specific verb and resource ('Check a promo code') plus the optional secondary capability ('estimate the reduction for a cart'), which separates it from coupon_issue and gift_card_check without naming them. It is clear, though it never explicitly contrasts itself with a sibling.

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?

'Provide customer and cashbox context when applicable' gives a hint about when to supply optional parameters, but 'when applicable' is left undefined and there is no guidance on when to skip the cart estimate or when to prefer a related tool such as calculate_cart.

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