Skip to main content
Glama

restore_workflow

Restore a deleted workflow from trash using its original ID or trash filename, and set overwrite to true when the target ID already exists.

Instructions

从归档(trash)恢复一条工作流。id 可以是原工作流 id(取最近一次删除)或 trash 里的文件名;目标 id 已存在时需 overwrite=true。

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": {
      "id": "<id>"
    },
    "name": "restore_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes原工作流 id 或 trash 文件名
overwriteNo目标 id 已存在时是否覆盖,默认 false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it discloses the key traits: this is a mutation that can overwrite an existing workflow ('目标 id 已存在时需 overwrite=true'), and it gives an ambiguous-id resolution rule. It omits what happens to the restored workflow's id and what the response contains, so it falls short of full transparency.

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?

Two short sentences: the action is front-loaded and the two conditional rules follow with zero filler.

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?

This is a simple two-parameter tool with no annotations and no output schema, and the description covers the action, the id ambiguity and the overwrite condition. It only lacks a note on return behavior and on finding trash filenames.

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 100%, so the baseline would be 3, but the description adds meaning that the schema lacks: an original id resolves to the most recent deletion, and overwrite is required rather than merely available when the target exists. That disambiguates the two parameters' real behavior.

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?

The description gives a specific verb and resource ('从归档(trash)恢复一条工作流'), which clearly distinguishes this tool from its sibling delete_workflow, since restore and delete are opposites. It never names a sibling tool, though, so it misses the final degree of differentiation that a 5 would require.

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

Usage Guidelines3/5

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

The guidance is implied: you use this tool when a workflow is in trash, and the description mentions the overwrite condition. It never says to first call list_trash to find a trash filename, which is a real prerequisite given that 'id' can be a filename, and it does not compare alternatives except by implication.

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