Skip to main content
Glama

Email and automation rules

list_email_rules
Read-only

The seller's automation rules: when something happens (a sale, an order bump, an upsell, a refund, a cancelled subscription, or someone who typed their email and didn't pay within waitHours) on which checkout, and what happens (add to a tag or sequence in their email tool, send to a webhook, or email them). Optionally for one checkout.

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": "list_email_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
productNoOptional: a checkout's id or slug, to list only its rules.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already establish readOnlyHint, destructiveHint false, and openWorldHint false. The description adds useful domain context about what rules contain (triggers and actions), but does not describe return format, pagination, ordering, or other runtime behavior.

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 compact and front-loads the resource definition. The main sentence is dense but every part contributes to explaining what the rules represent, and the final sentence cleanly states the optional filter.

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 simple list tool with two optional parameters and no output schema, the description covers the rule domain and the optional checkout scope adequately. It does not explicitly say the tool returns a list, but the name and phrasing make that clear enough.

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%, so both parameters are already documented. The description mirrors the product filter as 'optionally for one checkout' but adds no syntax, format, or meaning beyond 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 clearly identifies the resource as the seller's automation rules and enumerates the trigger events and resulting actions. It implicitly conveys listing via the tool name, but does not explicitly state the verb or name sibling tools like list_rules.

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

Usage Guidelines2/5

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

It mentions an optional checkout filter but gives no explicit guidance on when to use this tool versus alternatives such as list_rules, add_email_rule, or remove_email_rule. The intended read-only inspection use case is only inferable from the name.

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.