Skip to main content
Glama

Thmenu

Join the loyalty programme

join_loyalty

Enrol the authenticated customer in the restaurant loyalty programme. Returns the member id, current points balance, and tier. Safe to call even if the customer is already enrolled — returns existing data in that case. Requires an active agent_session_id and the customer email or phone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNoCustomer email (either email or phone required).
phoneNoCustomer phone in E.164 format (either email or phone required).
display_nameNoOptional display name shown in the loyalty dashboard.
agent_session_idYesActive session id from start_order_session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, openWorld=false, idempotent=false, so the safety profile is partly covered; the description adds real value by disclosing the return fields (member id, points balance, tier) and the repeat-enrolment behavior. There is a mild tension with idempotentHint=false, since "returns existing data in that case" reads as repeat-safe, but it is not a flat contradiction of the read/write nature of the tool.

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?

Three tight sentences, front-loaded with purpose, then return values, then safety and prerequisites. The final sentence largely duplicates what the schema already states, which is the only wasted 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?

With no output schema, the description correctly compensates by naming the returned fields. It covers required inputs, repeat-call behavior, and the return shape; only error cases and permission details are absent, which is minor for this operation.

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 four parameters, including the email-or-phone requirement and E.164 formatting. The description only restates the session and email/phone requirement without adding format or validation detail, so the baseline 3 applies.

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

Purpose4/5

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

The opening sentence gives a precise verb and resource: "Enrol the authenticated customer in the restaurant loyalty programme." This clearly separates it from the read-side sibling check_loyalty, though that sibling is never named explicitly, so the differentiation is inferred rather than stated.

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?

It states prerequisites ("Requires an active agent_session_id and the customer email or phone") and gives a useful when-to-call condition ("Safe to call even if the customer is already enrolled"), which tells the agent not to gate on a prior check_loyalty call. No explicit alternative or when-not-to-use guidance is given, so it falls short of a 5.

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