Skip to main content
Glama

create_loyalty_program

Get factory calldata to deploy a new loyalty token on Base. Defaults to B20 (Base native ERC-20 superset, single tx, active immediately). Pass token_standard='erc20' for the legacy factory. For B20, MINT_ROLE is granted atomically to the merchant admin AND to the agent's CDP wallet (or explicit extra_minters) so autonomous agents can mint with no follow-up transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoProgram name (required for external agents)
localeNo
symbolNoToken symbol, 2-5 chars (required for external agents)
auto_generateNoInternal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol.
extra_mintersNo(B20 only) Extra addresses to grant MINT_ROLE atomically in the same deploy tx.
token_standardNo'b20' (default, single-tx deploy on Base precompile factory) or 'erc20' (legacy factory, requires activate_loyalty_program follow-up)
expiration_daysNoProgram duration in days (default: 365)
preferred_styleNo
target_audienceNo
business_contextNoOptional context for examples only
agent_wallet_addressNo(B20 only) Additional wallet to grant MINT_ROLE atomically. Defaults to the agent's active CDP MPC wallet if not provided.

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are provided, so the description carries full burden. It reveals that the tool returns calldata rather than executing a deployment, defaults to B20 with immediate activation, and atomically grants MINT_ROLE to the merchant admin and the agent's wallet (or explicit extra_minters). These are critical behavioral traits that an agent needs to know before invoking the tool, and they go well beyond what the schema 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?

The description is three sentences, front-loaded with the core purpose. The second sentence explains the default and alternative, and the third sentence conveys an important side-effect. Every sentence earns its place, with no redundant or filler content.

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 an 11-parameter tool with no output schema and no annotations, the description covers the core deployment workflow, the B20 vs erc20 choice, and a critical mint role behavior. Still, it omits explicit guidance on what to do with the returned calldata (e.g., send as a transaction) and does not mention the erc20 follow-up in the description itself, although the schema does. The undocumented locale/preferred_style/target_audience parameters also remain unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description enriches meaning for key parameters: token_standard (default vs legacy), extra_minters/agent_wallet_address (MINT_ROLE atomic granting), and implies the need for name/symbol. Schema coverage is 73%, leaving locale, preferred_style, and target_audience undocumented in both schema and description. However, the description still adds substantial value beyond the schema for the most operationally important parameters.

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 opens with 'Get factory calldata to deploy a new loyalty token on Base,' providing a specific verb, resource, and platform. It clearly distinguishes from sibling tools like create_reward or create_gift_certificate by focusing on deploying a token rather than creating rewards or certificates, and it differentiates from activate_loyalty_program as a deployment-time action.

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 explicitly states the default token_standard ('b20') and how to switch to the legacy factory via 'token_standard='erc20''. It also explains the benefit of B20's atomic MINT_ROLE granting, which helps the agent decide when to use B20. However, it does not explicitly direct users to alternative tools like activate_loyalty_program for the erc20 follow-up, so exclusions are only implicit.

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.