Skip to main content
Glama

Create a Wiro workflow

create_workflow

Save a new private workflow in the API key's workspace from a step graph. Read get_playbook topic "workflow-graph" first: it has the graph format, the reference syntax and examples. Check every model's parameter ids and values with get_model_schema: a model step's values, such as a duration, a size or an option, are checked when that step runs. Wiro checks the graph against the live model catalog, fills catalog defaults and lays the steps out before saving; every problem it finds comes back together, so fix them all and call again. Set every model input you care about: a left-out one gets the model's default (the Notes in the result list what was filled). The graph can be at most 40 KB of JSON with those defaults. Free. Each call creates another workflow. The result gives the full slug, the page link and the input keys, so no get_workflow call is needed to run it.

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": {
      "title": "<title>",
      "contents": "<contents>"
    },
    "name": "create_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoUp to 20 tags.
titleYesWorkflow title (1-160 characters).
contentsYesThe workflow graph (version "1"): {version, nodes, output, schema, metadata}. Read get_playbook topic "workflow-graph" for the format and an example.
descriptionNoWhat the workflow does (up to 1000 characters).

Output Schema

NameRequiredDescriptionDefault
urlYes
stateNo
titleYes
inputsYes
outputsYes
renamedYes
fullSlugYes
warningsYes
nextActionNo
updatetimeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare the write, open-world and non-idempotent profile, and the description reinforces this consistently rather than contradicting it. Beyond the annotations it discloses catalog validation against live models, automatic default filling and step layout, aggregated error reporting so all problems return at once, the 40 KB post-default size cap, and that the operation is free.

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?

The action and its scope are front-loaded in the first sentence, followed by prerequisites, then behavior, then cost and result. Every sentence carries distinct operational information, with no restatement of the schema or annotations.

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 high-complexity, nested-graph creation tool this covers format source, validation semantics, size limit, default behavior, cost, idempotency and result contents. An output schema exists, yet the description still usefully notes the returned slug, page link and input keys suffice to run the workflow without a get_workflow call.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds real meaning: contents must be a version "1" step graph defined in a get_playbook topic, and every model input the caller cares about must be set explicitly or the model default is applied and reported in the Notes.

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: "Save a new private workflow in the API key's workspace from a step graph." The word "new" plus the later note that "Each call creates another workflow" separates it from update_workflow, clone_workflow and save_workflow_from_agent without ambiguity.

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 explicit prerequisites in order: read get_playbook topic "workflow-graph" for the format, then verify parameter ids and values with get_model_schema. It also states the alternative-implicit condition, that repeated calls create additional workflows rather than modifying one, which effectively warns against using it as an update path.

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.