Skip to main content
Glama

workflows.referral_program

Manage referral program: generate referral codes for customers, send referral invites via SMS, track referral usage, and check rewards/stats. Requires Growth+ plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction: generate_code, send_invite, track_referral, or check_rewards. Required.
leadIdNoCustomer lead ID (for generate_code, send_invite).
referralCodeNoReferral code to track (for track_referral).
recipientPhoneNoOverride phone for send_invite.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rewardNo
successNo
referralCodeNo

TDQS

A4.1/5.0
Behavior4/5

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

The description adds context beyond annotations: it specifies that actions involve generating codes (write), sending SMS (destructive potential?), tracking, and checking. It also notes the plan requirement. Annotations already indicate non-read-only and non-destructive, so the description complements without contradiction.

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?

The description is a single sentence that efficiently covers the tool's core functionality and a prerequisite. It is front-loaded with the main verb 'manage' and lists actions compactly. Minor improvement could be structuring as bullet points, but it is concise and clear.

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?

Given the tool has an output schema and the description covers the main actions and a requirement, it is fairly complete. It doesn't detail return values, but the output schema likely handles that. Overall, sufficient for an agent to use the tool 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 coverage is 100% and each parameter is already described. The description restates the actions but does not add new semantic details beyond the enum values. Baseline 3 is appropriate given the schema's completeness.

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 purpose: managing a referral program. It lists specific actions (generate codes, send invites, track usage, check rewards) which distinguishes it from potential siblings like ecosystem.referral_link that may only handle link generation. The verb 'manage' and resource 'referral program' provide a specific scope.

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 includes a key prerequisite ('Requires Growth+ plan') and lists the available actions, giving clear usage context. While it doesn't explicitly exclude alternatives, the actions are well-defined, helping an agent decide when to invoke this tool over other workflow or referral tools.

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

A3.8/5.0
Disambiguation4/5

Most tools have distinct resource+action naming (e.g., leads.create, jobs.list), but some overlap exists in analytics tools (dashboard, detailed, financials) and workflow automations (process_lead vs google_ads_pipeline). Descriptions clarify purposes, so slight confusion is possible but limited.

Naming Consistency5/5

All tools follow a consistent `domain.action` pattern (e.g., leads.create, billing.status). No mixing of camelCase or snake_case. Even complex names like lifecycle.assess or scaling.readiness_score adhere to the convention.

Tool Count1/5

95 tools is far beyond typical well-scoped servers (3-15). While the server aims to cover an entire business management platform, this volume is overwhelming for an agent, making selection and memory difficult.

Completeness5/5

The tool surface is exceptionally comprehensive, covering formation, hiring, compliance, funding, leads, quotes, jobs, invoicing, payments, marketing, analytics, integrations, webhooks, workflows, and more. Almost no obvious gaps in the lifecycle of running a trade business.

Resources