Skip to main content
Glama

Plan a multi-step workflow

plan_workflow
Read-onlyIdempotent

Use when a multi-step job has no steps chosen yet: it finds candidate steps. Once you have step ids, in order, use prepare_workflow to check or change them; to read one ready workflow, use get_item. Results are suggestions, not a complete context-validated plan. Before calling, form a task brief from the current chat, supplied files and the user's me.md if they shared it: outcomes, formats, audience, constraints, available inputs and checks. Keep private context in the host; send focused task terms here. Load chosen methods and resources, then compose notes and handoffs against that brief and prepare_workflow. Returns a diagram you can show the user. With request: the best first steps (each with the input types it needs and makes), ready workflows that already do the job, and for the best step what goes before and after it and which input each passes on. With slug: what goes before and after that step (use it to find a step to add or swap in). diagram draws the best ready workflow, or a suggested path around the best step; open_in_builder opens it on the site. Returns compact rows (id, type, title, url, one_line, tested); load full instructions only for the chosen ids with get_item, and cite their url. Plain code; does not use a server-side model.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plan_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoOne step to map before and after.
limitNoFirst steps for a request (default 5), or before and after steps for a slug (default 3).
requestNoWhat the user wants, in their words. Send request or slug, not both.
response_formatNoconcise (default): 3 steps before and after the best first step. detailed: 5, plus the optional inputs of each step and why it was picked.

Output Schema

NameRequiredDescriptionDefault
schemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties / after
      Removed value: -{
      -  "items": {
      -    "properties": {
      -      "basis": {
      -        "enum": [
      -          "ready_workflow",
      -          "hand_off",
      -          "built_on"
      -        ],
      -        "type": "string"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "one_line": {
      -        "type": "string"
      -      },
      -      "passes": {
      -        "description": "Input types handed over between the two steps.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "required": {
      -        "description": "The receiving step cannot start without one of them.",
      -        "type": "boolean"
      -      },
      -      "tested": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "skill",
      -          "workflow",
      -          "agent",
      -          "prompt",
      -          "mind",
      -          "ai_tool",
      -          "mini_tool"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "type",
      -      "title",
      -      "url",
      -      "one_line",
      -      "tested",
      -      "passes",
      -      "required",
      -      "basis"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / anchor
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "null"
      -    },
      -    {
      -      "properties": {
      -        "after": {
      -          "items": {
      -            "properties": {
      -              "basis": {
      -                "enum": [
      -                  "ready_workflow",
      -                  "hand_off",
      -                  "built_on"
      -                ],
      -                "type": "string"
      -              },
      -              "id": {
      -                "type": "string"
      -              },
      -              "one_line": {
      -                "type": "string"
      -              },
      -              "passes": {
      -                "description": "Input types handed over between the two steps.",
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "required": {
      -                "description": "The receiving step cannot start without one of them.",
      -                "type": "boolean"
      -              },
      -              "tested": {
      -                "type": "boolean"
      -              },
      -              "title": {
      -                "type": "string"
      -              },
      -              "type": {
      -                "enum": [
      -                  "skill",
      -                  "workflow",
      -                  "agent",
      -                  "prompt",
      -                  "mind",
      -                  "ai_tool",
      -                  "mini_tool"
      -                ],
      -                "type": "string"
      -              },
      -              "url": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "type",
      -              "title",
      -              "url",
      -              "one_line",
      -              "tested",
      -              "passes",
      -              "required",
      -              "basis"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "before": {
      -          "items": {
      -            "properties": {
      -              "basis": {
      -                "enum": [
      -                  "ready_workflow",
      -                  "hand_off",
      -                  "built_on"
      -                ],
      -                "type": "string"
      -              },
      -              "id": {
      -                "type": "string"
      -              },
      -              "one_line": {
      -                "type": "string"
      -              },
      -              "passes": {
      -                "description": "Input types handed over between the two steps.",
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "required": {
      -                "description": "The receiving step cannot start without one of them.",
      -                "type": "boolean"
      -              },
      -              "tested": {
      -                "type": "boolean"
      -              },
      -              "title": {
      -                "type": "string"
      -              },
      -              "type": {
      -                "enum": [
      -                  "skill",
      -                  "workflow",
      -                  "agent",
      -                  "prompt",
      -                  "mind",
      -                  "ai_tool",
      -                  "mini_tool"
      -                ],
      -                "type": "string"
      -              },
      -              "url": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "type",
      -              "title",
      -              "url",
      -              "one_line",
      -              "tested",
      -              "passes",
      -              "required",
      -              "basis"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "id": {
      -          "type": "string"
      -        },
      -        "needs": {
      -          "items": {
      -            "properties": {
      -              "made_by": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "type": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "made_by"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "id",
      -        "before",
      -        "after",
      -        "needs"
      -      ],
      -      "type": "object"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / before
      Removed value: -{
      -  "items": {
      -    "properties": {
      -      "basis": {
      -        "enum": [
      -          "ready_workflow",
      -          "hand_off",
      -          "built_on"
      -        ],
      -        "type": "string"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "one_line": {
      -        "type": "string"
      -      },
      -      "passes": {
      -        "description": "Input types handed over between the two steps.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "required": {
      -        "description": "The receiving step cannot start without one of them.",
      -        "type": "boolean"
      -      },
      -      "tested": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "skill",
      -          "workflow",
      -          "agent",
      -          "prompt",
      -          "mind",
      -          "ai_tool",
      -          "mini_tool"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "type",
      -      "title",
      -      "url",
      -      "one_line",
      -      "tested",
      -      "passes",
      -      "required",
      -      "basis"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / diagram
      Removed value: -{
      -  "description": "Show diagram.mermaid to the user in a ```mermaid code block; use outline (detailed) where diagrams do not render.",
      -  "properties": {
      -    "format": {
      -      "enum": [
      -        "mermaid"
      -      ],
      -      "type": "string"
      -    },
      -    "legend": {
      -      "type": "string"
      -    },
      -    "mermaid": {
      -      "type": "string"
      -    },
      -    "outline": {
      -      "type": "string"
      -    },
      -    "shows": {
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "format",
      -    "mermaid"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / first_steps
      Removed value: -{
      -  "items": {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "makes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "needs": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "one_line": {
      -        "type": "string"
      -      },
      -      "optional": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "tested": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "skill",
      -          "workflow",
      -          "agent",
      -          "prompt",
      -          "mind",
      -          "ai_tool",
      -          "mini_tool"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      },
      -      "why": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "type",
      -      "title",
      -      "url",
      -      "one_line",
      -      "tested",
      -      "needs",
      -      "makes"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / needs
      Removed value: -{
      -  "items": {
      -    "properties": {
      -      "made_by": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "made_by"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / next_action
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / notice
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / open_in_builder
      Removed value: -{
      -  "description": "Opens this workflow in the AI Blocks builder on useaiblocks.com, where the user can edit, save or download it.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / ready_workflows
      Removed value: -{
      -  "items": {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "makes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "needs": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "one_line": {
      -        "type": "string"
      -      },
      -      "optional": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "steps": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "tested": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "skill",
      -          "workflow",
      -          "agent",
      -          "prompt",
      -          "mind",
      -          "ai_tool",
      -          "mini_tool"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      },
      -      "why": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "type",
      -      "title",
      -      "url",
      -      "one_line",
      -      "tested",
      -      "needs",
      -      "makes",
      -      "steps"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / ready_workflows_using_it
      Removed value: -{
      -  "items": {
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "makes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "needs": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "one_line": {
      -        "type": "string"
      -      },
      -      "optional": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "steps": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "tested": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "skill",
      -          "workflow",
      -          "agent",
      -          "prompt",
      -          "mind",
      -          "ai_tool",
      -          "mini_tool"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      },
      -      "why": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "type",
      -      "title",
      -      "url",
      -      "one_line",
      -      "tested",
      -      "needs",
      -      "makes",
      -      "steps"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / request
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / schema / enum
      Removed value: -[
      -  "abb-workflow-plan/1",
      -  "abb-step-map/1"
      -]
    • removedOutput schema / properties / step
      Removed value: -{
      -  "properties": {
      -    "id": {
      -      "type": "string"
      -    },
      -    "makes": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "needs": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "one_line": {
      -      "type": "string"
      -    },
      -    "optional": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "tested": {
      -      "type": "boolean"
      -    },
      -    "title": {
      -      "type": "string"
      -    },
      -    "type": {
      -      "enum": [
      -        "skill",
      -        "workflow",
      -        "agent",
      -        "prompt",
      -        "mind",
      -        "ai_tool",
      -        "mini_tool"
      -      ],
      -      "type": "string"
      -    },
      -    "url": {
      -      "type": "string"
      -    },
      -    "why": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "id",
      -    "type",
      -    "title",
      -    "url",
      -    "one_line",
      -    "tested",
      -    "needs",
      -    "makes"
      -  ],
      -  "type": "object"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "schema",
      -  "next_action",
      -  "notice"
      -]New value: +[
      +  "schema"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Despite readOnly/idempotent annotations already covering safety, the description adds genuinely behavioral facts: results are "suggestions, not a complete context-validated plan," returns are compact rows (id, type, title, url, one_line, tested) with a pointer to get_item for full instructions, and it notes "Plain code; does not use a server-side model." It also warns about context handling ("Keep private context in the host; send focused task terms here").

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The routing guidance is front-loaded, but the body is a dense run of fragments ("Returns a diagram you can show the user." sandwiched between mode descriptions; "Load chosen methods and resources, then compose notes and handoffs against that brief and prepare_workflow.") that are hard to parse. Return-shape detail is expanded at length even though an output schema exists, while the nonexistent diagram/open_in_builder switches add noise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The definition covers setup (forming a task brief from chat, files, me.md), both invocation modes, and follow-up steps, which is ample for a read-only planning tool. However, it references parameters absent from the schema and gives confusing workflow advice about composing notes against prepare_workflow, leaving ambiguity about correct invocation even though an output schema covers the response shape.

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?

Schema coverage is 100%, so the baseline is 3, but the description describes switches that do not exist in the schema — "diagram draws the best ready workflow" and "open_in_builder opens it on the site" are not among the four documented properties. That mismatch can lead an agent to attempt invalid arguments. The request/slug mode explanations duplicate what the schema already states ("Send request or slug, not both").

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?

"Use when a multi-step job has no steps chosen yet: it finds candidate steps" states a specific action (finding candidate steps) and the exact condition for it, and the description names the adjacent tools (prepare_workflow for ordering/altering, get_item for reading one workflow). An agent can distinguish this from its siblings 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 Guidelines5/5

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

It gives an explicit trigger condition (no steps chosen yet), routes away to prepare_workflow once step ids exist, and routes to get_item for reading a ready workflow. It further splits the two modes — "With request: the best first steps..." vs "With slug: what goes before and after that step" — including the intended use of the slug mode ("use it to find a step to add or swap in").

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