Skip to main content
Glama

restore_profile

Restore a deleted profile from the recycle bin using the backup kept there; recovery is refused when a profile with the same name already exists, preventing overwrite of new data.

Instructions

从回收站恢复档案。

何时调用:用户删除档案后又想找回时。恢复的是回收站中最新一份备份; 目标位置已存在同名档案时拒绝恢复(防覆盖新数据)。

Args: profile_name: 要恢复的档案名(用 list_trash 查看可恢复项)

Returns: 恢复结果 + 档案摘要。

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": {
      "profile_name": "<profile_name>"
    },
    "name": "restore_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses which backup is chosen (the most recent one in the trash) and a concrete failure mode (refuses when a same-named profile exists, to avoid overwriting newer data). It stops short of saying whether the restore consumes/removes the trash entry, whether it is reversible, or whether permissions are required.

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, then scoped by a clearly labeled call condition and an Args block. Slightly padded by a Returns line that duplicates the existing output schema, but nothing is confusing or out of order.

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 and the description defers returns to it, correctly focusing on behavior. For a state-changing tool with zero annotations the definition is nearly complete; only permission requirements and the fate of the trash entry are left unaddressed.

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 description coverage is 0%, so the description must compensate, and it does: profile_name is explained as the name of the profile to restore, with a pointer to list_trash as the way to find valid values. It does not specify matching rules (exact vs. fuzzy name, case sensitivity), which is the remaining gap.

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 (恢复档案 / restore a profile) plus the source of the restore (回收站 / trash), which distinguishes it cleanly from sibling delete_profile and from list_trash. An agent can tell what it does 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?

Explicitly gives the triggering condition (user deleted a profile and wants it back) and routes discovery to the sibling list_trash for enumerating restorable items. When-to-use and the companion tool are both spelled out.

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