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 obligation_id, fee_tx_hash, and recipient_tx_hash. Unconfirmed fee obligations block future mints. Accepts a 0x Base wallet address or customer email in recipient_address (or recipient_email), automatically resolving the customer's wallet.

Input Schema

NameRequiredDescriptionDefault
amountYesTokens to mint
recipientNoLegacy alias for recipient_address (0x address or email)
token_addressYesToken contract address
recipient_emailNoCustomer email address to resolve to their Base wallet
recipient_addressNoCustomer 0x Base wallet address or customer email receiving minted tokens. Preferred — matches REST.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / anyOf
      Previous value: -[
      -  {
      -    "required": [
      -      "recipient_address"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "recipient"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "required": [
      +      "recipient_address"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "recipient"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "recipient_email"
      +    ]
      +  }
      +]
    • changedInput schema / properties / recipient / description
      Previous value: -"Legacy alias for recipient_address"New value: +"Legacy alias for recipient_address (0x address or email)"
    • changedInput schema / properties / recipient_address / description
      Previous value: -"Customer wallet receiving minted tokens (0x...). Preferred — matches REST."New value: +"Customer 0x Base wallet address or customer email receiving minted tokens. Preferred — matches REST."
    • addedInput schema / properties / recipient_email
      Added value: +{
      +  "description": "Customer email address to resolve to their Base wallet",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "recipient_address"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "recipient"
      +    ]
      +  }
      +]
  3. Changed3 schema fields changed
    • changedInput schema / properties / recipient / description
      Previous value: -"Recipient wallet (0x...)"New value: +"Legacy alias for recipient_address"
    • addedInput schema / properties / recipient_address
      Added value: +{
      +  "description": "Customer wallet receiving minted tokens (0x...). Preferred — matches REST.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "token_address",
      -  "recipient",
      -  "amount"
      -]New value: +[
      +  "token_address",
      +  "amount"
      +]
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description discloses behavior well beyond the annotations: the protocol fee is charged in the merchant's own loyalty tokens rather than USDC, the fee mint must be first, both calls must be submitted in order, and unconfirmed fee obligations have downstream consequences. It also explains automatic wallet resolution from customer email, which is critical operational context.

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 front-loaded: it states the action and returned bundle first, then ordering, submission strategy, confirmation step, and recipient handling. Every sentence contributes operational information needed to invoke the tool correctly.

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?

For a multi-step blockchain mint with no output schema, the description explains the returned calls[] structure, required ordering, atomic submission option, follow-up confirmation tool, and the consequence of leaving a fee obligation unconfirmed. That is sufficient context for an agent to complete the intended workflow 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?

Schema description coverage is 100%, so the schema already documents recipient_address, recipient_email, recipient, token_address, and amount. The description reinforces that recipient_address accepts a 0x Base address or customer email and resolves automatically, but that meaning is already present in the schema, so this is a baseline case rather than meaningful added parameter guidance.

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 states a specific verb and resource ('Record mint intent') and immediately clarifies that this tool returns a fee-first calls[] bundle rather than executing the mint directly. It also explicitly names the follow-up sibling confirm_mint_fee, so an agent can distinguish this preparation step from the confirmation step without inspecting other tools.

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

Usage Guidelines5/5

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

It gives clear when-to-use guidance: submit both calls in order, atomically via EIP-5792 send_calls when supported, then call confirm_mint_fee with specific fields. It also names the alternative confirmation path (POST /agent-api/mint/confirm) and warns that unconfirmed fee obligations block future mints, which is actionable exclusion/ordering guidance.

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