Skip to main content
Glama

Reorder automations

reorder_automations
Idempotent

Sets the execution order of the comment or the DM automations of a brand. Only the first matching automation of a type runs, so a specific automation (one post, one keyword) only runs when it comes before general ones. automationIds takes every automation id of that type, first to run first; move moves one automation to a position, or right before or after another automation of the same type. The others keep their order.

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

Input Schema

NameRequiredDescriptionDefault
moveNoMoves one automation and keeps the order of the others. Takes exactly one of position, beforeId and afterId. Not combined with automationIds.
typeYes
brandYes
automationIdsNoAll automation ids of this type, in the new order. Not combined with move.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is supplied. The description adds real behavioral context beyond that: the first-match execution rule, the fact that reordering is partial ('The others keep their order'), and that automationIds must contain every id of the type. It says nothing about failure behavior for invalid or incomplete id lists, or about authorization needs, which matters for a write tool that rewrites ordering.

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 in the first sentence, followed by the execution-order rationale and then the two parameter modes. The second sentence is dense but necessary for correct use; there is no filler or repetition of the schema.

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 four-parameter mutation with a nested move object and no output schema, the description covers both modes, their exclusivity, ordering semantics, and preservation of untouched automations. What remains thin is edge-case behavior (invalid ids, partial id lists) and confirmation of what a successful call returns.

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 50% schema description coverage, the description compensates by clarifying that automationIds must be 'every automation id of that type, first to run first' — a completeness requirement the schema alone does not state — and that move targets a position or a before/after neighbor 'of the same type'. Brand and type are only implicitly covered ('of a brand', 'comment or the DM automations'), which is the main remaining 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 opens with a specific verb and resource ('Sets the execution order of the comment or the DM automations of a brand'), which unambiguously separates it from list_automations, get_automation, delete_automation and duplicate_automation. It also names the scope (comment vs DM automation types) that the operation applies to.

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?

It explains the two operating modes and their mutual exclusivity: automationIds for a full reorder versus move for repositioning a single automation, with 'Not combined with move' in the schema reinforcing this. It also supplies the motivating rule ('only the first matching automation of a type runs') that tells an agent why a specific automation must be ordered ahead of general ones. It stops short of explicitly naming alternative tools for inspecting current order, but the mode selection is clear.

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