Skip to main content
Glama
Alpha4-Labs

Loyalteez MCP Server

by Alpha4-Labs

loyalteez_track_event

Fire any event type, predefined or custom, to authenticate users, check eligibility, and deliver rewards from balance in your loyalty program.

Instructions

Fire any event. Works for ANY event type - predefined or custom. The backend handles: check auth (brandId) → check eligibility → reward from balance.

See also: loyalteez://docs/api/rest-api

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNoYour website domain (required for web events). Must match configured domain in Partner Portal. If not provided, extracted from sourceUrl or Origin header.
brandIdNoYour brand wallet address. If not provided, uses LOYALTEEZ_BRAND_ID environment variable.
metadataNoAdditional event data
channelIdNoDiscord channel ID or name where event occurred (for Discord events with channel constraints). If event has channel constraints configured, this must match an allowed channel.
eventTypeYesEvent type (any string - predefined or custom)
sourceUrlNoURL where event occurred (must be HTTP/HTTPS, max 2048 chars)
userIdentifierYesUser identification

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the backend pipeline: auth via brandId, eligibility check, then reward issued from balance — useful side-effect and prerequisite context. It stops short of idempotency, duplicate-event handling, failure modes, or rate limits, which matter for an event-firing tool that can move rewards.

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?

Very short and front-loaded, with the pipeline summary compactly conveyed. "Works for ANY event type" slightly restates "Fire any event," but the see-also pointer to the REST docs is a useful, low-cost addition.

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?

For a 7-parameter tool with a nested object and no output schema, the description covers the auth/eligibility/reward flow but says nothing about what a successful call returns, what errors look like, or whether repeated events double-reward. Adequate but with clear gaps for a mutation-adjacent tool.

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 7 parameters including the nested userIdentifier object, making the baseline 3 appropriate. The description adds only that brandId is used for the auth step, which is marginal beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Fire any event" names a resource (event) but the verb "fire" is informal and vague, and the description never distinguishes this from close siblings like loyalteez_create_event, loyalteez_log_activity, or loyalteez_process_third_party_event. The "ANY event type - predefined or custom" clause broadens scope but doesn't clarify the tool's distinct purpose.

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?

It implies usage by stating the tool accepts any event type, predefined or custom, which tells an agent the applicability is broad. However, it gives no when-to-use vs. when-not guidance and names no alternative, so an agent choosing between this and the other event-writing siblings must guess.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.