Skip to main content
Glama

Get automation

get_automation
Read-onlyIdempotent

Returns one automation in the editable model: a DM automation as flow (triggers and a tree of steps with refs), a comment automation as rules (conditions, actions, waitTime). Includes validation findings, all-time and 30-day performance, the per-step funnel of DM automations (sent, read, clicked, failed, waiting) and the editor URL. The returned flow or rules can be edited and passed back to the matching update operation.

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>",
      "automationId": "<automationId>"
    },
    "name": "get_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYes
automationIdYesAutomation id from list_automations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered; the description still earns credit by disclosing the actual payload — validation findings, all-time and 30-day performance, a per-step funnel (sent, read, clicked, failed, waiting), and the editor URL. This is substantial return-content disclosure that annotations cannot provide.

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?

Front-loaded with the resource and its two model shapes, then the payload, then the round-trip purpose. Dense but every clause carries information; the one weakness is that it is a single long sentence-chain rather than clearly delimited sections.

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 must carry return semantics, and it does so thoroughly, including both model variants and the analytics bundled with them. Minor gaps remain: no mention of behavior when the automation is missing or not a valid id, and no hint about which update operation matches each shape by name.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description says nothing about `brand` or `automationId`; the only parameter documentation comes from the schema, where `automationId` is tied to list_automations and `brand` is undocumented. At 50% schema coverage the description should compensate for the bare `brand` parameter but does not.

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 specific verb and resource ("Returns one automation") and then names the two concrete shapes it can take — DM automation as `flow`, comment automation as `rules` — with the internals of each. That is enough to distinguish it from `list_automations` and `get_automation_performance` without opening any 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?

The final sentence establishes the decisive workflow: the returned flow/rules can be edited and passed back to the matching update operation, which tells the agent this is the read half of a read-modify-write loop. It stops short of explicit exclusions (e.g. use get_automation_performance for deeper analytics, list_automations to find ids), so it is clear context without full when-not guidance.

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