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

TableJSON 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.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does useful work: it discloses the redemption flow (QR or code entry) and that tokens are minted on-chain only after redemption, clarifying that creation does not itself mint. It omits permission/ownership prerequisites and batch behavior implications for the unique code.

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?

Three tight sentences, front-loaded with the core action and code format, followed by mechanics and use cases. Minimal waste, though '(UDS-style)' is unexplained jargon.

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?

For a nine-parameter creation tool with full schema coverage and no output schema, the description covers the artifact, code, and post-creation flow adequately. It leaves the batch/quantity-to-unique-code relationship and required merchant ownership implicit.

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 the schema already documents all nine parameters in detail (defaults, ranges, token ownership). The description adds no param-level syntax beyond the code format, so baseline 3 is appropriate.

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?

States a specific verb and resource ('Create a gift / welcome certificate') and identifies the concrete artifact, including its unique LOYAL-XXXX redemption code format. This clearly distinguishes it from sibling creation tools like create_reward or create_loyalty_program.

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?

Explicitly names intended use cases ('welcome bonuses, promo campaigns, partnership gifts'), which gives the agent solid context. It does not, however, contrast against alternatives such as create_reward or when to prefer a voucher/reward instead.

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.