Skip to main content
Glama

create_automation

Destructive

Create an automation as a graph. An active rule runs on its own, as the user, whenever a trigger fires: each run costs 2 credits plus what its steps use, and its steps may add contacts to campaigns (which then email and message them from the user's connected accounts), post to Slack, enrich or validate contacts and find contacts through outside data providers, scrape web pages, run smart columns, create tasks and add records to lists. Steps and triggers that choose their operation only when the rule runs (mcp_call, composio_call, agent_step and run_code steps, and composio_event triggers) are refused here and nothing is saved; rules that need them are built in the FuseAI app. Body: name, summary (one plain sentence), triggers [{nodeKey, label (2-5 words), description (one short sentence on what starts this rule), attributes}] (min 1, any one fires the rule), steps [{stepId, nodeKey, label (2-5 words), description, dependsOn [stepIds], match ('is'|'is_not', gates only), forEach ('{{steps..output.}}' to run per item), attributes}] (min 1), status (draft|active|paused; omitted = draft — pass 'draft' for a rule the user has not yet activated, 'active' only on their explicit confirmation), optional expiresAt, sourcePrompt (the user's request) and compilerNotes. Attribute values may be literals or bindings: {{trigger.}} (ONLY fields in the trigger node's outputSchema: contactId or companyId, occurredAt, attributes., meta.; a name, email or LinkedIn URL is not on the event), {{steps..output.}}, {{item}} / {{item.}} inside a forEach. A binding to a field the trigger event does not carry is rejected at save with the fields it does carry. A step below a forEach step already runs once per item: never repeat that forEach on it (FOR_EACH_REPEATED at save), and a step that must run ONCE after a fan-out (a digest) depends on the array's producer, never on the per-item step (FAN_OUT_DEPENDENT_WITHOUT_ITEM_DATA when it uses no per-item data). A gate's path need not be in outputSchema.required; a missing value reads as false. Contact- and company-scoped condition/action nodes take the record from the trigger event when the trigger is about that entity; in any other rule (schedule, scrape, the other entity) bind their contactId / companyId attribute from an earlier step's output, or the save is rejected. nodeKeys and per-node attributes MUST come from list_automation_nodes; id-valued attributes (campaign, list, ICP, signal, email account) must be resolved with the corresponding list tools first.

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": {
      "name": "<name>",
      "triggers": "<triggers>",
      "steps": "<steps>"
    },
    "name": "create_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
stepsYes
statusNo
summaryNo
triggersYes
expiresAtNo
sourcePromptNo
compilerNotesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=true and openWorld=true; the description adds substantial context on top: active rules run autonomously as the user, each run costs 2 credits plus step usage, steps can email/message contacts via connected accounts and call external data providers. It also discloses failure behavior (nothing is saved on refusal, save-time rejections with named error codes like FOR_EACH_REPEATED and FAN_OUT_DEPENDENT_WITHOUT_ITEM_DATA).

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?

Purpose is front-loaded and nearly every clause carries invocation-relevant information (binding syntax, validation rules, prerequisites), so the length is largely earned for a 0%-coverage schema. Structure is the weak point: it is a single dense paragraph of run-on sentences with nested parentheticals, making the critical 'draft vs active' and 'refused node types' rules hard to scan.

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 complex, destructive, high-parameter creation tool with no output schema and no field documentation in the schema, the description supplies the essential graph semantics, binding rules, cost model, and prerequisites. It falls short only on runWhen and on what the call returns on success (e.g., the created automation id), which an agent may need for a follow-up update.

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?

With 0% schema description coverage, the description carries the full burden and does so for nearly every field: name, summary, triggers (min 1, any fires), steps (stepId, dependsOn, match, forEach), status semantics, expiresAt, sourcePrompt, compilerNotes, plus binding syntax and trigger-output restrictions. The notable gap is the schema's runWhen parameter, which is never mentioned, so an agent must infer it from the schema alone.

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?

Opens with a specific verb and resource plus structural detail: 'Create an automation as a graph,' then immediately defines what an active rule does and what it contains (triggers, steps). This separates it from update_automation/get_automation/delete_automation without needing to name them.

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

Usage Guidelines5/5

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

Explicit when-to-use rules are given: pass 'draft' unless the user explicitly confirms activation, and rules needing mcp_call/composio_call/agent_step/run_code or composio_event triggers must be built in the FuseAI app instead because they are refused here. It also prescribes prerequisite calls (list_automation_nodes for nodeKeys/attributes, the corresponding list tools for id-valued attributes).

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.