Skip to main content
Glama

Check a discount code

zoodex_check_offer_code
Read-only

Calculates the discount an offer code applies to the current cart before checkout, with prices shown in toman.

Instructions

Check how much a discount (offer) code takes off the current cart before ordering. Prices are in toman (the API uses rials; 1 toman = 10 rials).

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": "zoodex_check_offer_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, openWorldHint). The description adds matter beyond them: the evaluation is against the *current cart* state, not a standalone lookup, and it discloses the unit conversion the API applies (rials vs. toman). It does not say what happens for an invalid/expired code or whether the offer is cart-wide or vendor-scoped.

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 sentences, front-loaded with the action and its result, followed by a currency note that is genuinely necessary to interpret output. Nothing is redundant, though the currency caveat is the more peripheral of the two and could have been tighter.

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 single-parameter read tool this is close, and the annotations plus currency note cover most of what an agent needs. With no output schema and no statement of return shape, error behavior for rejected codes, or which cart scope the discount is measured against, the agent still guesses at the result's form.

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?

One parameter with 0% schema description coverage, so the description should carry meaning. 'Discount (offer) code' does clarify that the single 'code' field is a promo/offer code rather than any other kind of identifier, which is a modest but real addition; it adds no format, case-sensitivity, or length guidance.

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?

States a specific verb+resource: check a discount/offer code and how much it takes off. The cart-scoped framing and 'before ordering' timing distinguish it in spirit from zoodex_my_discount_codes, but no sibling is named, so differentiation is implicit rather than stated.

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?

The phrase 'before ordering' implies this is a pre-checkout validation step, which is real usage context. However, there is no explicit when-to-use vs. when-not, and no pointer to an alternative (e.g. listing a user's own codes) if the agent is looking for something else.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.