Skip to main content
Glama

PayPing: coupon detail

payping_get_coupon
Read-onlyIdempotent

Fetches a coupon by code to return its expiry, maximum uses, buyers, and their spend.

Instructions

One coupon by code: expiry, max uses, buyers and their spend.

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

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • removedInput schema / properties / code / title
      Removed value: -"Code"
    • removedInput schema / title
      Removed value: -"payping_get_couponArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "payping_get_couponDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

B3.2/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 openWorldHint, so the safety profile is covered. The description adds value by naming the returned fields (expiry, max uses, buyers and their spend), which is genuinely useful given there is no output schema, but it says nothing about error behavior for unknown codes or about volume/size of the buyer list.

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 compact fragment with zero filler, and the identifying constraint ('by code') is front-loaded ahead of the returned fields. It is arguably compressed to the point of terseness, but every word carries information.

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 one-parameter read tool with annotations and no output schema, the description covers the resource, the key, and the return payload, which is roughly adequate. It omits not-found behavior and any indication of how large the buyer/spend list can be, which an agent would want before relying on the response.

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 description coverage is 0%, so the single 'code' parameter is documented nowhere in structured form. The description's 'by code' at least clarifies that the parameter is a coupon code (not a customer or transaction code), which is the minimum needed, but it gives no format, case-sensitivity, or source for obtaining a valid code.

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 phrase 'One coupon by code' states a single-resource lookup keyed by coupon code, which implicitly contrasts with the sibling payping_list_coupons (many) and is unambiguous about the resource. It lacks an explicit verb, relying on the tool name 'get' to supply the action, so it is clear but not fully self-contained.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no routing to alternatives. An agent must infer on its own that payping_list_coupons should be used to discover codes before calling this detail tool, and nothing states what happens when a code does not exist.

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