Skip to main content
Glama

ShopAt UK Deals

Explain a voucher

explain_voucher
Read-only

Explain a Digidip/global voucher by id or by code (+ optional merchant). Returns code, rules summary, expiry, last_verified, stackable/new_customer hints when inferable, and ALWAYS url + go_url together for the user.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "explain_voucher"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoVoucher document id.
codeNoVoucher code when id is unknown.
merchantNoAdvertiser name or domain to disambiguate code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes further by enumerating what comes back (code, rules summary, expiry, last_verified, stackable/new_customer hints) and stresses that url and go_url are always returned together for the user. That last constraint is a real behavioral rule not present in any structured field.

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?

A single front-loaded sentence with no filler; lookup keys come first and the return contents follow. The parenthetical "(+ optional merchant)" and the trailing "for the user" are slightly awkward but each still carries information.

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 no output schema, the description carries the return-value burden and does list the key response fields plus the url/go_url pairing rule. It leaves a gap on behavior when zero allowed parameters are supplied or when lookup fails, but otherwise an agent can call it correctly.

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 100%, so all three parameters are already documented, including merchant's disambiguation role. The description restates the same id/code/merchant intent without adding format, precedence (id wins over code?), or error semantics, so 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?

"Explain a Digidip/global voucher by id or by code" gives a specific verb (explain) and resource (voucher), plus the two lookup keys, which differentiates it conceptually from get_voucher/list_vouchers. It stops short of explicitly contrasting with the get_voucher sibling, so an agent must infer the difference from the enrichment wording.

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 description implies usage by naming id vs code (+ optional merchant) as entry paths, so an agent knows how to call it when only a code is known. It never states when to prefer this over get_voucher or search_vouchers, and gives no exclusions or failure guidance.

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