Skip to main content
Glama

register_loyalty_program

Register a deployed token as a loyalty program in the database. B20 tokens are registered as active; legacy ERC-20 as inactive (activate next).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesProgram name
symbolYesToken symbol
cashback_rateNoDefault cashback percent for earn (1–100). Omit for DB default (5).
token_addressYesDeployed token contract address (0x...)
token_standardNo'b20' (default) or 'erc20' (legacy)
expiration_daysNoDuration in days (default: 365)
points_per_dollarNoLoyalty points per $1 spent (1–1000). Omit for DB default (1).

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden of disclosure. It does reveal a key behavioral trait: the active/inactive status depends on token standard. However, it does not disclose other side effects like idempotency, failure modes, or required prior steps (beyond 'deployed'), leaving some transparency gaps.

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 two clear sentences. The first sentence front-loads the action and resource; the second adds a critical conditional behavior. No wasted words, and it is easy to parse.

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

Completeness3/5

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

The description covers the main purpose and a key behavioral distinction, but with 7 parameters and no output schema or annotations, more context could be useful—such as how this differs from create_loyalty_program, behavior on duplicate token addresses, or what the tool returns. It is adequate but not comprehensive.

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?

Schema coverage is 100%, giving a baseline of 3. The description adds semantic meaning to the token_standard parameter by explaining that B20 tokens become active and legacy ERC-20 become inactive, which helps agents map the parameter to real-world behavior. This extra context justifies a score above baseline.

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: registering a deployed token as a loyalty program in the database. It distinguishes from siblings like create_loyalty_program by specifying 'deployed token' and adds behavioral nuance (B20 active, ERC-20 inactive), making the purpose unmistakable.

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

Usage Guidelines3/5

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

The description implies usage when a token is deployed and needs to be registered, and the B20/ERC-20 distinction gives conditional behavior. However, it does not explicitly mention when to use this tool versus alternatives like create_loyalty_program or activate_loyalty_program, nor does it provide exclusions.

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.