Skip to main content
Glama

dws__RestoreTable

Restores database tables from a specified snapshot to target tables, enabling recovery of table data after accidental loss or corruption.

Instructions

[DWS] 该接口用于恢复表。

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": {
      "case_sensitive": "<case_sensitive>",
      "database": "<database>",
      "project_id": "<project_id>",
      "restore_table_list": "<restore_table_list>",
      "snapshot_id": "<snapshot_id>",
      "target_table_list": "<target_table_list>"
    },
    "name": "dws__RestoreTable"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYes数据库名称
project_idYes**参数解释**:
snapshot_idYes快照ID
case_sensitiveYes名称是否区分大小写
target_table_listYes目的表信息
restore_table_listYes源表信息

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

With no annotations provided, the description carries the full burden, yet it discloses nothing behavioral. It does not say this is a mutating/overwriting operation, that existing target tables (target_table_list) may be replaced, whether it is synchronous or returns a job ID, or what permissions are needed — all critical for a restore call.

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 front-loaded and contains no filler, but its brevity comes from under-specification rather than efficiency — there is nothing substantive to be concise about.

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

Completeness1/5

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

For a 6-required-parameter destructive restore with no annotations and no output schema, the description omits everything an agent needs: snapshot dependency, source-to-target table mapping semantics, case_sensitive behavior, and whether a rollback path exists. This is far below what the tool's complexity demands.

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%, so the schema already names 数据库名称, 快照ID, 源表信息 and 目的表信息. The description adds no syntax, format, or constraint hints (e.g. that restore_table_list and target_table_list must be equal length or map positionally), which is the baseline-3 outcome when the schema does the heavy lifting.

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

Purpose2/5

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

"该接口用于恢复表" only restates the tool name RestoreTable as a sentence; it adds no scope, no target resource identity, and no differentiation from siblings such as dws__CheckTableRestore or dws__RestoreCluster. An agent learns nothing beyond what the name already tells it.

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 when-to-use guidance at all: no mention that a snapshot must already exist, that dws__CheckTableRestore may be a prerequisite check, or when to prefer this over dws__RestoreCluster / dws__RestoreDisaster. The description is not misleading, but it leaves the agent to infer invocation conditions purely from the schema.

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