Skip to main content
Glama
eyalbarash
by eyalbarash

cigchat_shop_discount_codes_update

Update an existing shop discount code by providing its ID and the fields to change, such as discount type, amount, validity period, and usage limits.

Instructions

Update discount code. [PUT /shop/discount-codes/{codeId}/update] Requires the "Manage Team" scope on the token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
typeNoExample: percentage,amount,free_shipping
codeIdYesDiscount Code Id
min_qtyNoExample: 10
end_timeNoExample: 2022-12-27 00:00:00
min_priceNoExample: 100
start_timeNoExample: 2022-12-25 00:00:00
min_requireNoExample: none,price,qty
once_per_orderNoExample: 0
discount_amountNoExample: 5.05
has_usage_limitNoExample: 0
max_usage_countNoExample: 1
one_per_customerNoExample: 0
discount_percentageNoExample: 100
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the required 'Manage Team' scope and the HTTP method, which is useful transparency. However, it does not mention idempotency, partial vs full update semantics, or response format, leaving significant gaps for a mutation tool.

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 concise sentences: one for purpose and endpoint, one for auth requirement. Every word earns its place, no redundancy or filler.

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?

With 14 parameters and no output schema or annotations, the description provides only auth context. It is minimally viable because the schema covers parameter names and examples, but it lacks critical behavior details like whether unspecified fields are retained or reset, and what the return value looks like.

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?

The description does not discuss parameters, but schema coverage is high (93%) with example values for most fields. The examples hint at allowed values (e.g., type: percentage, amount, free_shipping), but the description adds no additional meaning beyond the schema.

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?

Description clearly states 'Update discount code' with the PUT endpoint, distinguishing it from create/delete/get siblings. It identifies the specific resource and action with no ambiguity.

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 description implies usage (use when you need to update an existing discount code) but does not explicitly state when not to use or list alternatives like create/delete. The auth requirement provides some context but no exclusions or alternative tool references.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eyalbarash/cig-chat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server