Skip to main content
Glama

Save Workflow

save_workflow
Destructive

Save a valid spec as an owner-only visual using existing storage quotas. Omit id for a new copy; an existing owned id updates that visual only when requested. Included in the Unseen connection approval. No generation credits; no browser UI or draft is controlled.

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

Input Schema

NameRequiredDescriptionDefault
idNoID of a saved workflow owned by the current account.
specYesA source-cited VisualSpec v0.1. Preserve original excerpts and attribution.
titleNo
authTokenNoOptional existing session token for non-OAuth transports.
sourceVisualIdNoID of a saved workflow owned by the current account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

The description adds genuine behavioral facts beyond the annotations: it draws on existing storage quotas, produces owner-only output, consumes no generation credits, and does not touch browser UI or drafts. That is useful cost/side-effect context on top of destructiveHint=true. However, "Included in the Unseen connection approval" is opaque jargon the agent cannot act on, and the update path is described generically without saying what gets overwritten.

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?

Four short sentences, front-loaded with the verb and output type, then the branching rule, then cost/scope negatives. Nothing is wasted except the cryptic approval sentence, which reads as boilerplate rather than actionable information.

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

Completeness3/5

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

For a write tool with a nested `spec` object, one required parameter, and no output schema, the definition omits what the call returns (e.g., the new visual id the caller needs) and what "valid spec" validation rejects. The mutation, cost, and scope boundaries are covered, but the success/return path is not.

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?

With schema coverage at 80%, the baseline is a 3, and the description earns more by defining the create/update semantics of `id` — the single most consequential parameter decision. `title`, `authToken`, and `sourceVisualId` get no added explanation, but the schema already carries those.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Save a valid spec as an owner-only visual" gives a specific verb (save) plus resource (visual built from a VisualSpec) and adds a visibility qualifier (owner-only). It is clear on its own, but it never explicitly contrasts itself with siblings like compile_workflow or share_workflow, so differentiation is left to the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The create-vs-update fork is spelled out precisely: omit id for a new copy, supply an owned id to update, and only when the user requests it. That is real routing guidance for the main ambiguity, though it says nothing about when to prefer a sibling such as compile_workflow or revise_workflow first.

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.