Skip to main content
Glama

Validate automation

validate_automation
Read-onlyIdempotent

Dry run: checks a DM flow or comment rules exactly as create and update would, without saving. Returns errors (which would block saving), warnings (overlaps with other automations, broad keywords, Instagram-only steps, disabled link tracking, contacts mid-flow) and suggestions. With automationId it checks the input as a change to that automation.

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": {
      "brand": "<brand>",
      "type": "<type>",
      "definition": "<definition>"
    },
    "name": "validate_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
typeYes
brandYes
definitionYesFor type "dm" the flow {triggers, steps}, for "comment" the rules {conditions, actions, waitTime}, in the shape the create operations take
automationIdNoCheck as an update of this automation
triggerOncePerUserNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, and the description still adds real substance: nothing is persisted, errors are specifically the ones that would block saving, and the warning taxonomy (overlaps, broad keywords, Instagram-only steps, disabled link tracking, contacts mid-flow) is disclosed up front.

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, front-loaded with the dry-run framing, then the return categories, then the automationId variant. The long parenthetical is dense but every item is a distinct signal an agent would otherwise have to discover by calling the tool.

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 carries the return-value burden and does so well by naming errors, warnings, and suggestions. Somewhat incomplete for a 6-parameter nested-object tool, since name and triggerOncePerUser are neither described nor obvious from their type 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 33% across 6 parameters. The description does explain automationId's alternate mode and implies the type values through 'DM flow or comment rules', but it says nothing about name or triggerOncePerUser, so it only partially compensates for the coverage gap.

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 states a specific verb and resource ('Dry run: checks a DM flow or comment rules') and immediately scopes it against the real write path ('exactly as create and update would, without saving'). An agent can tell this apart from save_dm_automation / save_comment_automation without opening either schema.

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?

Usage context is clear: this is a pre-save dry run that mirrors the create/update path, and the 'With automationId' sentence tells you which mode to pick for a change rather than a new definition. No sibling tool is named explicitly and there are no stated exclusions, 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