Skip to main content
Glama
Anythink-MCP

Anythink-MCP

Official

Workflows: step add

workflows_step_add

Add a configured action step to a workflow so you can build automations; set its parameters as JSON, then link it to other steps.

Instructions

Add a step to a workflow. Params are the action's settings as JSON, e.g. {"script":"return {}"} for RunScript or {"entity":"orders","data":{...}} for CreateData. The new step is unlinked: set start on the workflow's first step and chain the rest with workflows_step_link. For FileHandler or Integration steps, workflows_file_handler_add and workflows_integration_add build the params for you.

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": {
      "workflow_id": "<workflow_id>",
      "key": "<key>"
    },
    "name": "workflows_step_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesStep key (unique identifier)
nameNoStep display name
startNoSet as start step
actionNoAction type: ReadData, CreateData, UpdateData, UpsertData, DeleteData, CallAnApi, RunScript, Condition, SendAnEmail, SendACommand, SendPushNotification, AdjustBalance, FileHandler, Integration (for Integration, prefer 'integration-add')
paramsNoStep parameters as JSON
enabledNoEnable step immediately
workflow_idYesWorkflow ID. Find it with workflows_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.38
    • changedInput schema / properties / action / description
      Previous value: -"Action type: ReadData, CreateData, UpdateData, UpsertData, DeleteData, CallAnApi, RunScript, Condition, SendAnEmail, SendACommand, SendPushNotification, FileHandler, Integration (for Integration, prefer 'integration-add')"New value: +"Action type: ReadData, CreateData, UpdateData, UpsertData, DeleteData, CallAnApi, RunScript, Condition, SendAnEmail, SendACommand, SendPushNotification, AdjustBalance, FileHandler, Integration (for Integration, prefer 'integration-add')"
  2. Changed1 schema field changedv0.2.37
    • changedInput schema / properties / workflow_id / description
      Previous value: -"Workflow ID"New value: +"Workflow ID. Find it with workflows_list."
  3. Addedv0.2.27

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare it as a non-read-only, non-destructive, closed-world write, so the description's added context is the key value: a newly added step is unlinked and must be wired up separately via `workflows_step_link`. It does not cover failure modes such as duplicate `key` handling or what is returned on success, which keeps it below 5.

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: creation, param format, linking requirement, and alternative tools, in that order. No repetition of the title or restatement of schema field descriptions, and the most consequential constraint (the step is unlinked) is front-loaded after the core verb.

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?

For a 7-parameter creation tool with annotations and no output schema, the description covers the important operational semantics: param encoding, the unlinked-initial-state gotcha, and which sibling builders to prefer. It is slightly thin on whether `action` is mandatory in practice (only workflow_id and key are required) and on what happens with a duplicate key.

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 description coverage is 100%, so the schema already documents all 7 parameters and the action list. The description's JSON examples (`{"script":"return {}"}` for RunScript, `{"entity":"orders","data":{...}}` for CreateData) do add concrete format guidance for the `params` string, but it leaves the `action` parameter's role in pairing with those params implicit, so the gain over the schema is modest.

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 ("Add a step to a workflow") and immediately distinguishes itself from siblings by routing FileHandler/Integration steps to `workflows_file_handler_add`/`workflows_integration_add` and chaining to `workflows_step_link`. An agent can tell exactly what this tool creates 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?

Explicit when-to-use-alternative guidance: use the file-handler and integration tools instead of raw params for those action types, and use `workflows_step_link` to chain steps. The prerequisite that start must be set on the workflow's first step is stated rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools