Skip to main content
Glama

Create workflow

create_workflow

Create a workflow from a definition validate_workflow_definition approved.

Needs that call's validation_token, for these exact definition bytes. Without confirm=true it creates nothing and returns what to show the user, or a workflow you already have that does this (force=true skips the check). Returns workflow_id.

Input Schema

NameRequiredDescriptionDefault
nameYesWhat the user will see it called. Its own question; never invented.
forceNoSkips the offer of an existing workflow. Only after the user chose to build a new one.
confirmNofalse creates nothing and returns what would be created. true creates it.
definitionYesThe graph, as {"graph": {"nodes": [...], "edges": [...]}}. Get the skeleton from get_node_info.
validation_tokenYesFrom validate_workflow_definition, for these exact definition bytes. Expires in 10 minutes.

Output Schema

NameRequiredDescriptionDefault
nameNo
createdNo
next_stepNo
console_urlNo
workflow_idNo
not_includedNo
workspace_slugNo
workflow_summaryNo
requires_confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"What the user will see it called. Ask them rather than inventing one."New value: +"What the user will see it called. Its own question; never invented."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent, non-destructive, non-open-world mutation, so the safety profile is covered. The description adds real behavior on top: the two-phase validate-then-create gate, that no writes occur without confirm=true, and that the call may instead return a pre-existing matching workflow. It does not cover name collisions or error handling.

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?

Three dense sentences, front-loaded with the action and its precondition, no filler. Slight cost: the first sentence is grammatically malformed ('a definition validate_workflow_definition approved') and the second conflates two distinct outcomes ('what to show the user, or a workflow you already have'), requiring a re-read.

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?

The token requirement, dry-run semantics, force override, and the returned workflow_id are all stated, which is sufficient given an output schema exists and annotations cover the mutation profile. Nothing an agent needs before calling 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 description coverage is 100%, so the schema already carries the parameter burden and the baseline would be 3. The description still adds meaning the schema does not: that validation_token is bound to these exact definition bytes, tying the token to the payload rather than treating it as an opaque string.

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+resource (create a workflow) and pins down the exact provenance of the input: a definition previously approved by validate_workflow_definition. That provenance requirement is what separates it from siblings like create_workflow_from_intent and create_workflow_from_template, which need no validation_token.

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 preconditions and alternatives: it requires the token from validate_workflow_definition for these exact definition bytes, explains confirm=false as a no-op preview, and force=true as the escape hatch when the user has already chosen to build new rather than reuse an existing workflow. The when/when-not is fully specified.

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