Skip to main content
Glama

Find Matching Automation Rules

webinarstack.webinars.automations_find_matching
Read-onlyIdempotent

Check whether a tenant-owned webinar already has an automation rule matching a proposed trigger type, action type, and conditions BEFORE creating one — prevents creating a duplicate rule that would re-email live registrants. Returns the full matching rules under matches; an empty array means safe-to-create.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "webinarId": "<webinarId>",
      "triggerType": "<triggerType>",
      "actionType": "<actionType>"
    },
    "name": "webinarstack.webinars.automations_find_matching"
  }
}

Input Schema

NameRequiredDescriptionDefault
webinarIdYes
actionTypeYes
conditionsNo
triggerTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower; the description still adds the operational consequence of duplicates and the shape of the result. It does not mention authorization/tenant scoping beyond 'tenant-owned', but contributes meaningful context beyond the annotations.

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?

Two sentences, front-loaded with the pre-creation check, then the return contract. No restated field names or filler; every clause carries either purpose, risk rationale, or result semantics.

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 takes on the return contract (`matches` array, empty = safe to create), which an agent needs. The remaining gap is match semantics for the nested conditions array, which is the one thing an agent cannot infer from structured fields alone.

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 0%, and the description does map each of the four parameters loosely (webinar, trigger type, action type, conditions). However, it does not explain how conditions are compared — exact equality versus subset/overlap — which is the crux of a 'matching' tool and is left entirely to the enum-only schema.

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?

States a precise verb and resource: checks whether a webinar already has an automation rule matching a proposed trigger/action/conditions. It is unambiguous against siblings like automations_list or automations_get because it describes a match-test, not a retrieval.

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?

Explicitly frames the call as a pre-flight step ('BEFORE creating one') and gives the reason (avoiding a duplicate rule that would re-email live registrants). It stops short of naming a sibling alternative or stating when-not to call, so it is clear but not fully routed.

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