Skip to main content
Glama

Create flow from blueprint

create_flow_from_blueprint

Creates a new flow on a bot from a blueprint. Call get_blueprint_spec first. Call with dry_run true first: it checks the blueprint and returns every problem without saving. Fix them, then call again with dry_run false. Never use this to change an existing flow; use update_flow.

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": {
      "bot_id": "<bot_id>",
      "blueprint": "<blueprint>"
    },
    "name": "create_flow_from_blueprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
bot_idYesA bot_id from list_bots.
dry_runNotrue: check only and return every problem, nothing is saved. Use true first.
blueprintYesThe blueprint: YAML or JSON text, or the same as an object (get_blueprint_spec has the format). At most 256 KB.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

The annotations declare a non-read-only, non-destructive, non-idempotent write, and the description adds genuinely new behavioral detail: dry_run saves nothing and returns every problem at once, and the tool must never target an existing flow. What is missing is the consequence of the non-idempotent hint, namely that repeated real calls create duplicate flows, plus any permission or rate-limit context.

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?

Four short sentences, front-loaded with what the tool does, then ordered as a procedure the agent can follow verbatim. The repeated emphasis on dry_run is justified for a tool that writes new state, and no sentence is filler.

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

Completeness5/5

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

For a 3-parameter write tool with full schema coverage and an output schema, the description supplies everything the schema cannot: the prerequisite spec lookup, the mandatory validation pass, and the boundary against update_flow. Nothing an agent needs in order to call it safely is absent.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds sequencing meaning the schema does not: dry_run must be exercised first and only set false after the reported problems are fixed. The blueprint parameter's source is also pointed at get_blueprint_spec, which helps the agent locate the format rather than guessing.

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 first sentence gives a specific verb, resource, and source ('Creates a new flow on a bot from a blueprint'), and the last sentence names the sibling it must not be used for ('Never use this to change an existing flow; use update_flow'). An agent can distinguish this from update_flow and get_flow 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 states an explicit prerequisite ('Call get_blueprint_spec first'), an explicit call sequence (dry_run true, fix problems, then dry_run false), and an explicit exclusion with the correct alternative (update_flow for existing flows). When-to-use, how-to-use, and when-not-to-use are all covered with nothing left to inference.

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