Skip to main content
Glama

create_gift_certificate

Create a gift / welcome certificate (UDS-style) with a unique random redemption code (LOYAL-XXXX-XXXX-XXXX). Customer redeems via QR or by entering the code; merchant then mints tokens on-chain. Use for welcome bonuses, promo campaigns, partnership gifts.

Input Schema

NameRequiredDescriptionDefault
titleNoDisplay title (default: 'Gift Certificate')
quantityNoNumber of certificates to create as a batch (1–100, default 1)
image_urlNoOptional public image URL for the cert design
usd_amountYesCertificate face value in USD (positive)
descriptionNoOptional descriptive text shown to the customer
token_addressYesERC-20 loyalty token address (must belong to the agent's merchant)
expires_in_daysNoValidity period in days (omit for no expiry)
points_per_dollarNoOptional override of program rate (e.g. 10 = 10 tokens per $1). Defaults to program's points_per_dollar.
max_redemption_percentNoMax % of any future purchase the customer can pay with these tokens (5–100). Default 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description genuinely adds value: it discloses the two-phase lifecycle (create cert now, merchant mints tokens on-chain later) and the customer redemption path via QR or code entry. It does not cover error cases such as an invalid or foreign token_address, nor whether certificates can expire, beyond the expires_in_days schema hint.

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?

Three tight sentences, each carrying distinct information: what is created, how it is redeemed and fulfilled, and when to use it. The core identity and the unique-code detail are front-loaded with no filler.

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 9 parameters (2 required) fully documented in the schema and no output schema, the description covers the concept and lifecycle well. The remaining gap is that it never says what the caller receives back — presumably the generated codes/QR payloads — which matters for a batch creation tool with no output schema.

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 every parameter including quantity ranges (1–100), points_per_dollar override, and max_redemption_percent is already documented. The description adds no parameter-level meaning beyond the code format, so the baseline 3 applies.

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 a gift / welcome certificate (UDS-style) with a unique random redemption code" — and even pins down the code format (LOYAL-XXXX-XXXX-XXXX). The scope is unmistakable versus list_gift_certificates, revoke_gift_certificate, or mint_loyalty_tokens, though no sibling is named explicitly.

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?

"Use for welcome bonuses, promo campaigns, partnership gifts" gives concrete trigger scenarios, and the redemption flow sentence clarifies when this tool belongs in the workflow (pre-mint). It stops short of stating when NOT to use it or which sibling to pick instead (e.g. create_reward or create_personalized_offer for non-certificate incentives).

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