Skip to main content
Glama

Create voucher

create_voucher

Create a discount voucher for Shopee, Lazada, or TikTok marketplace. Set discount type, value, validity period, and usage limits to attract buyers.

Instructions

Create a shop or product voucher.

[SENSITIVE] This action changes live shop data and requires the seller's explicit confirmation before it executes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
scopeNoshop
end_atYesISO 8601 end time.
currencyNo
platformNoMarketplace to target. Defaults to shopee.
start_atYesISO 8601 start time.
min_spendNo
product_idsNo
usage_limitNo
discount_capNoMax discount for percent vouchers.
discount_typeYes
discount_valueYes
confirmation_tokenNoEcho back the token from a prior 'confirmation required' response to approve and execute this action. Only needed when the client cannot prompt directly.
Behavior4/5

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

The description adds value beyond annotations by stating the action changes live shop data and requires confirmation, though it does not detail the confirmation workflow or error states.

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 purpose and essential sensitivity warning, no unnecessary words.

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?

Despite complexity (13 parameters, confirmation_token, enums), the description lacks details on return values, the confirmation process, and parameter effects, leaving gaps.

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?

With only 38% schema parameter coverage, the description should compensate but does not elaborate on any parameters beyond the general scope mention.

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?

The description clearly states 'Create a shop or product voucher' with a specific verb and resource, distinguishing it from sibling tools like get_vouchers or create_listing.

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

Usage Guidelines4/5

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

It provides context on sensitivity and the need for explicit confirmation, but lacks explicit guidance on when to use this tool versus alternatives or when not to use it.

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/RextonWong/sellabot-mcp'

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