Skip to main content
Glama

mint_loyalty_tokens

Record mint intent and get a fee-first calls[] bundle: protocol fee mint FIRST, then the recipient mint. The protocol fee is charged in the merchant's own loyalty tokens (not USDC). Submit both calls in order (atomically via EIP-5792 send_calls if your wallet supports it), then call confirm_mint_fee (or POST /agent-api/mint/confirm) with the fee tx hash. Unconfirmed fee obligations block future mints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesTokens to mint
recipientYesRecipient wallet (0x...)
token_addressYesToken contract address

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description fully discloses key behavioral traits: fee-first ordering, fee charged in merchant's loyalty tokens (not USDC), the need to confirm via a follow-up call, and blocking behavior for unconfirmed fees. This goes beyond minimal and gives the agent a clear picture of side effects and dependencies.

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?

The description is dense but every sentence adds value: purpose, fee order, fee currency, submission method, follow-up requirement, and blocking condition. No fluff; the structure flows logically from what the tool does to how to use it. The length is justified by the tool's complexity.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a complex workflow with no output schema and no annotations, yet the description covers the critical context: what is returned (a calls[] bundle), how to execute it (EIP-5792), what to do next (confirm_mint_fee), and downstream effects (blocked mints). This is complete for an agent to invoke the tool correctly.

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 input schema already describes all three parameters with 100% coverage. The description adds context about the fee being in merchant tokens but does not elaborate on parameter formats or constraints beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 the tool's function: 'Record mint intent and get a fee-first calls[] bundle.' It specifies the resource (loyalty tokens) and the exact behavior (fee mint before recipient mint), distinguishing it from siblings like confirm_mint_fee and transfer_loyalty_tokens.

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?

The description provides a clear usage workflow: submit the calls in order, optionally via EIP-5792, then call confirm_mint_fee with the fee tx hash. It also warns that unconfirmed fee obligations block future mints. It does not explicitly name alternatives to avoid, but the context is strong enough for an agent to know when to use this tool.

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.

TDQS

B3.4/5.0
Disambiguation3/5

Several tools have overlapping purposes, such as mint_loyalty_tokens vs earn_points (both mint loyalty tokens with fee bundles), create_loyalty_program vs register_loyalty_program (deploy vs register existing token), and activate_loyalty_program vs update_program_status (both manage program status). Some pairs like check_voucher_status and list_gift_certificates also overlap on voucher/certificate tracking. However, descriptions are detailed enough to reduce ambiguity for careful agents.

Naming Consistency4/5

Most tools follow a consistent verb_noun snake_case pattern (e.g., create_reward, list_loyalty_programs). Subtle deviations include earn_points vs mint_loyalty_tokens (different verbs for similar mint operations) and use_voucher vs redeem_reward (different verb styles for redemption). Overall, the naming is predictable and understandable.

Tool Count2/5

With 39 tools, this server is bloated for a loyalty platform. The addition of Bazaar discovery/payment tools and report management expands the scope, but many tools overlap or cover minor variations (e.g., two workflow planners: generate_program_defaults and get_program_workflow_status). A leaner set of 20-25 tools would be more appropriate.

Completeness4/5

The tool surface covers the full loyalty program lifecycle: creation, activation, registration, token minting/transfer, rewards, gift certificates, vouchers, offers, customer export, analytics, and reports. Notable gaps include no CRUD for personalized offers (only create), no edit capability for rewards (only status changes), and no direct function to list all vouchers by merchant (only status check by code). These are minor workarounds.