Skip to main content
Glama

Create Coupon Code

create_coupon_code

Create coupon codes in batches of 10 in the provided event. If there are more than 10 coupon codes, create the first 10, then continue with the next 10 until all are created.

Input Schema

NameRequiredDescriptionDefault
couponsYesCoupon codes to create. Include no more than 10 coupon codes here. If there are more than 10 coupon codes total, provide the first 10 here, then continue with the next 10.
event_idYesEvent UUID returned by search_events.

Output Schema

NameRequiredDescriptionDefault
hintYes
countYes
couponsYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a non-readonly, non-idempotent, non-destructive mutation, so the safety profile is covered. The description adds the important batch-of-10 constraint, but it is ambiguous about whether the tool loops internally or the caller must issue repeated calls — the schema implies the caller must, while the description reads as if the tool handles it. That ambiguity is exactly the kind of behavior an agent needs disambiguated for a repeat-invocation pattern.

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 sentences, front-loaded with the action and scope, then the batching rule. No filler, no repetition of the title.

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?

An output schema exists, so return values need not be explained, and the mutation semantics are covered by annotations. What is missing is the one thing that actually determines correct invocation behavior: who performs the batching — the tool or the agent issuing successive calls — and what happens if a coupon code already exists.

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 100%, so the schema already documents event_id, the coupon object fields, and the maxItems=10 cap. The description restates the 10-item batch limit but adds no meaning about the per-coupon fields (discount_type, quantity, ticket_type_ids) beyond the schema. Baseline 3 is appropriate.

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 and resource ('Create coupon codes') plus a scope ('in the provided event'), which cleanly separates it from update_coupon_code and delete_coupon_code. It does not explicitly name those siblings, so differentiation relies on the reader's inference.

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 batching rule ('create the first 10, then continue with the next 10') is genuine operational guidance for using the tool. However, there is no statement of when to choose this over update_coupon_code, no prerequisite that event_id comes from search_events (that lives only in the schema), and no guidance on duplicate codes or how to handle partial failure.

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