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.

Update Coupon Code

update_coupon_code

Update one coupon code in the provided event.

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>",
      "coupon_code_id": "<coupon_code_id>"
    },
    "name": "update_coupon_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoThe code buyers type. Editable; past orders keep the code they were bought with.
end_timeNoValidity window end as a local event-time datetime without a timezone designator, e.g. 2026-08-21T15:00:00; interpreted in the event's timezone. Pass null to clear it.
event_idYesEvent UUID returned by search_events.
is_enabledNo
start_timeNoValidity window start as a local event-time datetime without a timezone designator, e.g. 2026-08-21T15:00:00; interpreted in the event's timezone. Pass null to clear it.
coupon_code_idYes
ticket_type_idsNo

Output Schema

NameRequiredDescriptionDefault
hintYes
couponYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, and openWorld=false, so the safety profile is covered. The description adds nothing beyond that: it does not say whether omitted fields are left unchanged (partial vs. full replacement), whether permissions are required, or what happens to existing orders when a code is edited.

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

Conciseness3/5

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

One short sentence with zero padding, well front-loaded, but it is minimal to the point of under-specification rather than being a tight, informative summary. Nothing in it is wasted, yet it carries almost no payload.

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

Completeness2/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, but a 7-parameter mutation tool with only 2 required fields needs the description to establish partial-update semantics, which field edits are meaningful, and any side effects on past orders. None of that is present.

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

Parameters2/5

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

Schema description coverage is only 57%, and the description contributes no parameter meaning at all. Three parameters (coupon_code_id, is_enabled, ticket_type_ids) are undocumented in both places, and the description does not clarify that only the two required IDs are mandatory while the rest are optional edits.

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

Purpose3/5

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

The description gives a clear verb+resource ("Update one coupon code") and scopes it to a single record within an event, which distinguishes it from create_coupon_code and delete_coupon_code. However, it never says which attributes are editable (code, window, enablement, ticket types), so an agent must open the schema to know what this update actually covers.

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 guidance, no statement of prerequisites (event_id and coupon_code_id are required but that is only in the schema), and no mention of alternatives among the many update_* siblings. The phrase "in the provided event" implies an event-scoped operation but nothing more.

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