Skip to main content
Glama

Create Workflow From Template

workflow.from_template

Create a workflow from a built-in template (workflow.list templates): on a sheet (sheetId), or standalone in a space (spaceId, folderId optional) when it is not about one sheet. It is a draft and off; adjust it with workflow.update and turn it on with workflow.publish.

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": {
      "templateId": "<templateId>"
    },
    "name": "workflow.from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
formIdNoA form id (sheet_schema peeks of kind form): a form of the sheet; the workflow runs only for that form's responses. Only for a template that starts on a new row
sheetIdNoThe sheet the workflow runs on
spaceIdNoIn place of sheetId: a standalone workflow in this space (schedule, manual, integration, several sheets)
folderIdNoA folder of spaceId; the space root without it
templateIdYesA template id from workflow.list templates

Output Schema

NameRequiredDescriptionDefault
refNoA standalone workflow's number: its page is /panel/space/<spaceId>/workflow/<ref>
nameYes
nodesYesEvery step after the trigger, in canvas order
sheetYes
stateYes
spaceIdNoA standalone workflow's space; it has no sheet
triggerYes
workflowIdYes
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / nodes / items / properties / onError / description
      Previous value: -"If the action fails (integration_action, agent, transcribe, run_workflow and save_file steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)"New value: +"If the action fails (integration_action, agent, transcribe, generate_image, run_workflow and save_file steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)"
    • changedOutput schema / properties / trigger / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "config": {
      -        "additionalProperties": {},
      -        "description": "Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "next": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "port": {
      -              "type": "string"
      -            },
      -            "ref": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "port",
      -            "ref"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "onError": {
      -        "description": "If the action fails (integration_action, agent, transcribe, run_workflow and save_file steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)",
      -        "enum": [
      -          "stop",
      -          "continue",
      -          "fallback_path"
      -        ],
      -        "type": "string"
      -      },
      -      "operation": {
      -        "type": "string"
      -      },
      -      "ref": {
      -        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ref",
      -      "name",
      -      "type",
      -      "config",
      -      "next"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "config": {
      +        "additionalProperties": {},
      +        "description": "Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "next": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "port": {
      +              "type": "string"
      +            },
      +            "ref": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "port",
      +            "ref"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "onError": {
      +        "description": "If the action fails (integration_action, agent, transcribe, generate_image, run_workflow and save_file steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)",
      +        "enum": [
      +          "stop",
      +          "continue",
      +          "fallback_path"
      +        ],
      +        "type": "string"
      +      },
      +      "operation": {
      +        "type": "string"
      +      },
      +      "ref": {
      +        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ref",
      +      "name",
      +      "type",
      +      "config",
      +      "next"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed7 schema fields changed
    • addedInput schema / properties / folderId
      Added value: +{
      +  "description": "A folder of spaceId; the space root without it",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / spaceId
      Added value: +{
      +  "description": "In place of sheetId: a standalone workflow in this space (schedule, manual, integration, several sheets)",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "templateId",
      -  "sheetId"
      -]New value: +[
      +  "templateId"
      +]
    • changedOutput schema / properties / nodes / items / properties / onError / description
      Previous value: -"If the action fails (integration_action, agent, transcribe and run_workflow steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)"New value: +"If the action fails (integration_action, agent, transcribe, run_workflow and save_file steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)"
    • addedOutput schema / properties / ref
      Added value: +{
      +  "description": "A standalone workflow's number: its page is /panel/space/<spaceId>/workflow/<ref>",
      +  "type": "number"
      +}
    • addedOutput schema / properties / spaceId
      Added value: +{
      +  "description": "A standalone workflow's space; it has no sheet",
      +  "type": "number"
      +}
    • changedOutput schema / properties / trigger / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "config": {
      -        "additionalProperties": {},
      -        "description": "Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "next": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "port": {
      -              "type": "string"
      -            },
      -            "ref": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "port",
      -            "ref"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "onError": {
      -        "description": "If the action fails (integration_action, agent, transcribe and run_workflow steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)",
      -        "enum": [
      -          "stop",
      -          "continue",
      -          "fallback_path"
      -        ],
      -        "type": "string"
      -      },
      -      "operation": {
      -        "type": "string"
      -      },
      -      "ref": {
      -        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ref",
      -      "name",
      -      "type",
      -      "config",
      -      "next"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "config": {
      +        "additionalProperties": {},
      +        "description": "Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "next": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "port": {
      +              "type": "string"
      +            },
      +            "ref": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "port",
      +            "ref"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "onError": {
      +        "description": "If the action fails (integration_action, agent, transcribe, run_workflow and save_file steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)",
      +        "enum": [
      +          "stop",
      +          "continue",
      +          "fallback_path"
      +        ],
      +        "type": "string"
      +      },
      +      "operation": {
      +        "type": "string"
      +      },
      +      "ref": {
      +        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ref",
      +      "name",
      +      "type",
      +      "config",
      +      "next"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed3 schema fields changed
    • addedInput schema / properties / formId
      Added value: +{
      +  "description": "A form id (sheet_schema peeks of kind form): a form of the sheet; the workflow runs only for that form's responses. Only for a template that starts on a new row",
      +  "maxLength": 64,
      +  "pattern": "^[A-Za-z0-9_-]+$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / nodes / items / properties / onError
      Added value: +{
      +  "description": "If the action fails (integration_action, agent, transcribe and run_workflow steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)",
      +  "enum": [
      +    "stop",
      +    "continue",
      +    "fallback_path"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / trigger / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "config": {
      -        "additionalProperties": {},
      -        "description": "Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "next": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "port": {
      -              "type": "string"
      -            },
      -            "ref": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "port",
      -            "ref"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "operation": {
      -        "type": "string"
      -      },
      -      "ref": {
      -        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ref",
      -      "name",
      -      "type",
      -      "config",
      -      "next"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "config": {
      +        "additionalProperties": {},
      +        "description": "Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "next": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "port": {
      +              "type": "string"
      +            },
      +            "ref": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "port",
      +            "ref"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "onError": {
      +        "description": "If the action fails (integration_action, agent, transcribe and run_workflow steps only): stop, continue (skip failed items) or fallback_path (error branch, its steps on port `error` in next)",
      +        "enum": [
      +          "stop",
      +          "continue",
      +          "fallback_path"
      +        ],
      +        "type": "string"
      +      },
      +      "operation": {
      +        "type": "string"
      +      },
      +      "ref": {
      +        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ref",
      +      "name",
      +      "type",
      +      "config",
      +      "next"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed2 schema fields changed
    • addedOutput schema / properties / nodes / items / properties / config / description
      Added value: +"Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them"
    • changedOutput schema / properties / trigger / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "config": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "next": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "port": {
      -              "type": "string"
      -            },
      -            "ref": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "port",
      -            "ref"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "operation": {
      -        "type": "string"
      -      },
      -      "ref": {
      -        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ref",
      -      "name",
      -      "type",
      -      "config",
      -      "next"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "config": {
      +        "additionalProperties": {},
      +        "description": "Secrets (authorization, API keys, tokens) read as ••••••; send them back unchanged to keep them",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "next": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "port": {
      +              "type": "string"
      +            },
      +            "ref": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "port",
      +            "ref"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "operation": {
      +        "type": "string"
      +      },
      +      "ref": {
      +        "description": "The node's id: name it in workflow.update as after, ref or {{steps.<ref>.<path>}}",
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ref",
      +      "name",
      +      "type",
      +      "config",
      +      "next"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. Added

TDQS

A4.5/5.0
Behavior4/5

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

The annotations only declare the generic mutation profile (readOnly=false, destructive=false, idempotent=false). The description adds the non-obvious state outcome that the created workflow 'is a draft and off,' which the annotations do not convey and which materially affects subsequent calls. It omits auth/permission requirements and any limits on template applicability, keeping it just short of a 5.

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?

Two dense sentences with the resource and the placement split front-loaded before the lifecycle guidance. The nested parentheticals ('(workflow.list templates)', '(spaceId, folderId optional)') make it slightly run-on, but no sentence is wasted.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and the description covers creation modes, resulting state, and next steps. It leaves the conditional formId behavior entirely to the schema, which is acceptable but means the description is not fully self-sufficient for a 6-parameter tool.

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 already 83%, so the baseline is 3; the description earns above that by articulating the relationship between parameters the schema states only in isolation — spaceId is 'in place of sheetId' and folderId is optional within a space. It does not restate name or formId, but those are covered in-schema.

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 workflow from a built-in template') and immediately scopes the two placement modes — sheet-bound (sheetId) versus standalone in a space (spaceId, optional folderId). It also names the sibling workflow.list as the source of template ids, so an agent can distinguish it from template.install or workflow.update without opening a 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?

Explicitly conditions the two modes: use sheetId when the workflow is about one sheet, use spaceId 'when it is not about one sheet.' It also prescribes the follow-up path — adjust with workflow.update, activate with workflow.publish — which tells the agent what not to expect from this call and where to go next.

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