Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Nunify. If you published it, claim ownership there.

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.

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": {
      "event_id": "<event_id>",
      "coupons": "<coupons>"
    },
    "name": "create_coupon_code"
  }
}

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 as a non-read-only, non-idempotent, closed-world mutation, and the description usefully adds the batching constraint that requires multiple calls for large sets. It does not disclose what happens on duplicate codes, partial batch failure, or permission requirements—notable gaps given idempotentHint=false.

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 short sentences, front-loaded with the action and scope, with no filler. The second sentence slightly restates the first by re-explaining the 10-code limit, which is a minor redundancy rather than a defect.

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 annotations covering the safety profile, an output schema covering returns, and full schema coverage of both parameters, the description carries the remaining load well by explaining the chunked-call pattern. Only failure/duplicate handling is left unaddressed.

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%, including a detailed explanation of the 10-item cap and the timezone semantics of the time fields, so the baseline is 3. The description merely restates the max-of-10 rule already encoded in maxItems and the coupons field description, adding no new parameter meaning.

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 description uses a precise verb and resource ('Create coupon codes') and scopes it to 'the provided event' and a batch size of 10, so an agent can identify it as the creation counterpart to update_coupon_code/delete_coupon_code. It stops short of explicitly naming a sibling for comparison, which keeps it at 4 rather than 5.

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?

It gives clear operational guidance on how to handle more than 10 codes (call repeatedly in chunks of 10), which is genuine when/how guidance for invocation. It offers no exclusions, prerequisites, or alternatives (e.g., when to use update_coupon_code instead), so usage context is only implied.

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