Skip to main content
Glama

Create a workflow from a template

create_workflow_from_template

Create a new workflow in the team by copying a prebuilt template. The workflow goes live at once when it can take requests; active in the result says whether it did, and message says why not. There is no way to keep it as a draft, so tell the user before calling if they asked for one. Call activate_workflow only for a workflow that is inactive. Prefer this over building a workflow field by field.

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": {
      "template_id": "<template_id>"
    },
    "name": "create_workflow_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional workflow name (max 75 chars). Defaults to the template name.
stepsNoOptional. Approval steps to wire into the clone. Omit or pass an empty array to leave approvers blank — that is a supported setup, and the person submitting picks the approver on the form. Resolve every approver to a TeamUser id with `search_team_users` BEFORE calling — never pass names or emails. For sequential approvals (e.g. manager → finance) pass multiple steps in order. For value-based routing ('under $1,000 to Julia, $1,000+ to Serge') give each branch its own step and put the rule in that step's `conditions`.
add_fieldsNoExtra fields to append beyond the template's (plain fields, no OCR binding).
template_idYesTemplate id from `list_workflow_templates`.
remove_fieldsNoLabels (or bindings) of template fields to drop, e.g. 'Cost center'. On OCR templates, removing the invoice-file field disables extraction.
rename_fieldsNoRename template fields while keeping their bindings (so OCR survives).
template_nameNoThe template's name exactly as `list_workflow_templates` returned it, e.g. 'Bill Approval'. ALWAYS pass this alongside `template_id` — the name is what the user said, and if the two disagree the name wins. Passing the id alone has created the wrong workflow when the id was misremembered across turns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-idempotent, non-destructive mutation. The description adds the critical side effect that the workflow goes live immediately with no draft option, and it explains the return contract (`active` says whether it went live, `message` says why not) even though no output schema exists.

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 tight sentences, each carrying a distinct decision-relevant fact: what it does, the immediate-activation side effect, the no-draft warning, and the alternative routing. The blocking side effect is stated up front rather than buried.

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 7-parameter creation tool with no output schema, the description covers the side-effect profile, the activation outcome, the failure signal, and the sibling routing. Combined with the exhaustive schema, an agent has everything needed to call it correctly.

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

Parameters3/5

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

Schema coverage is 100% and every parameter, including template_name's precedence rule and the conditions/fallback semantics, is documented in the schema itself. The description adds no parameter-specific meaning, so the baseline 3 applies.

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 and resource: 'Create a new workflow in the team by copying a prebuilt template.' It also distinguishes itself from the field-by-field construction path ('Prefer this over building a workflow field by field'), so an agent can pick it without opening the 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?

Gives explicit when-to-use and when-not-to guidance: use this instead of building a workflow field by field, call activate_workflow only for a workflow that is inactive, and warn the user first if they asked for a draft because drafts do not exist here. It also states a hard prerequisite (resolve approvers via search_team_users before calling).

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