Skip to main content
Glama

Create an alert

create_alert

Emails site members when a goal is completed (trigger goal + goal_name), on every payment (payment) or on a customer's first payment (new_customer). Each email includes the source, location, device and a visitor journey link; a busy alert batches into an hourly summary. Requires the write scope.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoLabel for the alert.
notifyNoOlder shortcut instead of recipients: the token's user or every current member.
enabledNoDefault true.
messageNoCustom text shown at the top of each email.
subjectNoCustom email subject.
triggerNoWhat fires the alert. Default goal.
channelsNoAlert channel IDs (Slack, Discord, Telegram, webhook) it also posts to, from list_alert_channels. With channels and no recipients, it posts only to the channels.
goal_nameNoGoal (custom event) name, exactly as tracked. Required for trigger goal; see list_alerts goals.
recipientsNoMembers who receive it, by email or user ID (members are listed by list_alerts). Only current members of the website. Default: the token's user.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / channels
      Added value: +{
      +  "description": "Alert channel IDs (Slack, Discord, Telegram, webhook) it also posts to, from list_alert_channels. With channels and no recipients, it posts only to the channels.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (not read-only, not destructive, not idempotent), so the description's value is the added behavior: emails are dispatched per event, busy alerts collapse into an hourly summary, each email carries source/location/device and a journey link, and the caller needs write scope. The auth requirement and batching behavior are genuine additions not present in annotations. It stops short of saying what a created alert returns or whether repeated calls create duplicates.

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?

Three sentences with the firing conditions leading, delivery behavior and batching second, and the auth prerequisite last. There is no filler and no repetition of schema 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 a 10-parameter mutation with no output schema, the description covers the critical dimensions: what fires the alert, who is notified by default, that recipients must be current members, batching behavior, and scope requirements. It omits which parameters are actually required (the schema requires none) and what the call hands back, which is acceptable given the absent output schema but leaves a small gap for an agent wiring the result into a follow-up call.

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 already 100%, so the baseline is 3, but the description adds interpretive meaning to the trigger enum by spelling out what 'goal', 'payment' and 'new_customer' actually fire on, and by tying the goal trigger to goal_name. It says nothing extra about notify versus recipients, channels, subject or message, leaving those to the schema.

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 description gives a concrete verb-and-resource: it creates an alert that emails members, and it enumerates the three firing conditions (goal completed, every payment, first payment). An agent can tell exactly what the tool produces and when it fires. It never names a sibling (e.g. list_alerts) to contrast with, so sibling differentiation is left implicit.

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?

Usage is implied through the trigger vocabulary and the note that goal_name is needed for the goal trigger, plus the requirement of the write scope. There is no explicit when-to-use versus when-not, and no pointer to list_alerts to inspect existing alerts or to list_alert_channels for channel IDs, even though those would be the natural companions.

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