Skip to main content
Glama

css__RestoreSnapshot

Manually restore a CSS snapshot to a target cluster, optionally selecting indices, filtering by regex, renaming restored indices, or replacing existing indices.

Instructions

[CSS] 该接口用于手动恢复一个快照。

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": {
      "cluster_id": "<cluster_id>",
      "project_id": "<project_id>",
      "snapshot_id": "<snapshot_id>",
      "targetCluster": "<targetCluster>"
    },
    "name": "css__RestoreSnapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
indicesNo指定要恢复的索引名称,多个索引用逗号隔开,默认恢复所有索引。支持使用“\*”匹配多个索引,例如:2018-06\*,表示恢复名称前缀是2018-06的所有索引的数据。
cluster_idYes恢复快照所属的集群ID。
project_idYes项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。
snapshot_idYes快照ID。
renamePatternNo匹配要恢复的索引规则,最大支持1024个字符。根据此处定义的过滤条件去恢复符合条件的索引,过滤条件请使用正则表达式。
targetClusterYes快照要恢复到的集群的ID。
renameReplacementNo索引重命名的规则。0~1024个字符,不能包含空格和大写字母,且不能包含\"\\<|>/?,特殊字符。例如,“restored_index_$1”表示在所有恢复的索引名称前面加上“restored_”。
replace_exist_indicesNo替换已存在的索引。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it discloses essentially nothing. It does not say whether the restore overwrites existing indices by default (a key question given the replace_exist_indices parameter), whether the operation is asynchronous and returns a job identifier, whether the target cluster is locked during restore, or what permissions are required for this mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is grammatically clean, front-loaded, and free of redundancy, but for an 8-parameter mutating restore it is undersized rather than appropriately sized. Conciseness is not the problem; the sentence simply does too little work for the operation's complexity.

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

Completeness2/5

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

With no annotations, no output schema, and 8 parameters including branching rename/replace behavior, the description should explain outcome and side effects. It instead consists of one generic sentence that leaves the agent unable to predict what the call does to existing data on the target cluster.

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%, with each of the 8 parameters documented inline, including the comma-separated indices syntax, regex-based renamePattern, and renameReplacement rules. The description adds no additional parameter meaning whatsoever, so the baseline 3 for fully documented schemas is appropriate.

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 names a specific verb and resource ('手动恢复一个快照' / manually restore a snapshot), which is enough to distinguish it from sibling operations like CreateSnapshot, DeleteSnapshot, and StopSnapshot by intent. It stops short of any explicit differentiation from other restore-family tools (e.g., cbr__RestoreBackup, evs__RollbackSnapshot), so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus other snapshot operations, no mention of prerequisites (snapshot must exist and be usable, target cluster must be reachable), and no discussion of the automatic-vs-manual restore distinction beyond the single word '手动'. The agent is left to infer usage conditions entirely.

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