Skip to main content
Glama

getCoupon

Read-only

Get one coupon by couponId. Get couponId from getCoupons. Never invent UUIDs; only use values from prior tool responses.

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": {
      "couponId": "<couponId>"
    },
    "name": "getCoupon"
  }
}

Input Schema

NameRequiredDescriptionDefault
couponIdYesThe id of the coupon.

Output Schema

NameRequiredDescriptionDefault
couponYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds a meaningful behavioral constraint beyond them: IDs must originate from prior tool responses and must never be invented, which directly guards against a common failure mode. Return-value details are rightly omitted because an output schema exists.

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

Conciseness5/5

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

Two short sentences, the operation is front-loaded, and every clause carries operational weight: the first identifies the tool, the second enforces ID provenance. No filler or restated schema text.

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

Completeness5/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 with full annotation coverage and an output schema, the definition supplies everything an agent needs: what it returns (one coupon), the required argument, and where that argument must come from. Nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100% and the single parameter is documented, so the baseline is 3. The description still adds semantics the schema does not: the couponId must be a value obtained from getCoupons or another prior response, not an arbitrary UUID, which changes how the argument should be sourced.

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

Purpose5/5

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

The description states a specific verb and resource (get one coupon) and pins the scope to a single record by couponId, which distinguishes it from the sibling getCoupons list tool. An agent can tell immediately which of the two coupon readers it needs.

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 routes the agent to getCoupons as the source of valid IDs and adds an explicit prohibition against fabricating UUIDs, which is real usage guidance rather than restatement. It does not spell out a 'when not to use' case, but for a leaf read tool with one obvious alternative the practical guidance is clear.

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