Skip to main content
Glama

save_workflow

Destructive

Save 1–20 ordered steps on this computer, to rerun later with run_workflow; saving runs nothing. Each step is one call to a tool listed here (read_file, read_multiple_files, list_directory, search_files, search_content, stat_path, write_file, edit_block, make_directory, move_path, copy_path, write_pdf, edit_spreadsheet, edit_docx, run_command) with that tool's own arguments, so a run does only what those calls do on their own. Use {{inputName}} in file arguments to supply new values later; commands must be fixed text. Definitions and inputs are stored locally, not in the relay: do not put secrets in them. Saving sets no schedule; schedule_workflow, where listed, runs a saved workflow on one. With an existing workflowId it replaces that definition (only this caller’s), and the earlier steps are not kept.

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": {
      "name": "<name>",
      "steps": "<steps>"
    },
    "name": "save_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
stepsYes
deviceIdNoComputer name or id
workflowIdNo
descriptionNo
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / description / maxLength
      Removed value: -1000
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / name / maxLength
      Removed value: -120
    • removedInput schema / properties / name / minLength
      Removed value: -1
    • removedInput schema / properties / steps / maxItems
      Removed value: -20
    • removedInput schema / properties / steps / minItems
      Removed value: -1
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed5 schema fields changed
    • addedInput schema / properties / steps / items / properties / arguments / description
      Added value: +"The arguments of that tool, as its own input schema takes them (no workSessionId)"
    • addedInput schema / properties / steps / items / properties / tool / description
      Added value: +"The tool this step calls"
    • addedInput schema / properties / steps / items / properties / tool / enum
      Added value: +[
      +  "read_file",
      +  "read_multiple_files",
      +  "list_directory",
      +  "search_files",
      +  "search_content",
      +  "stat_path",
      +  "write_file",
      +  "edit_block",
      +  "make_directory",
      +  "move_path",
      +  "copy_path",
      +  "write_pdf",
      +  "edit_spreadsheet",
      +  "edit_docx",
      +  "run_command"
      +]
    • removedInput schema / properties / steps / items / properties / tool / maxLength
      Removed value: -96
    • removedInput schema / properties / steps / items / properties / tool / minLength
      Removed value: -1
  4. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, and the description earns credit by explaining why: an existing workflowId replaces the definition and 'the earlier steps are not kept.' It further discloses that steps execute only what the named tool calls do, that commands must be fixed text, that definitions/inputs live locally rather than in the relay with an explicit secrets warning, and that saving triggers no execution.

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?

Front-loaded with the core action and the 'saving runs nothing' distinction, and nearly every sentence adds a distinct constraint (limit, tool scope, placeholders, storage locality, schedule separation, replacement). It is dense and slightly run-on, with the workflowId caveat tacked on at the end rather than grouped with the save behavior.

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 six-parameter mutation tool with no output schema and only 33% schema coverage, the description covers the risky parts: execution semantics, destructive replacement, storage location, and step argument rules. The main gap is that it never says what a successful save returns (e.g., the created workflow identifier), which an agent would need to chain into run_workflow or schedule_workflow.

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 33%, so the description carries real weight: it defines step structure (tool + that tool's own arguments, no workSessionId), the {{inputName}} placeholder mechanism for deferred values, the fixed-text constraint for commands, and the replace semantics of workflowId. It does not explain deviceId, description, or workSessionId, though the schema supplies short descriptions for most of those; name and description remain undocumented.

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?

Opens with a specific verb and resource plus the scope limit: 'Save 1–20 ordered steps on this computer, to rerun later with run_workflow.' It immediately disambiguates from the sibling run_workflow by stating 'saving runs nothing.' An agent can tell exactly what this tool does and what it does not do 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?

Explicit routing: use run_workflow to rerun, use schedule_workflow to attach a schedule, and this tool sets no schedule. It also states the replace-vs-create condition via workflowId ('With an existing workflowId it replaces that definition') and notes the workflow is scoped to this caller. Both when-to-use and when-not-to-use are present.

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