Skip to main content
Glama

dws__CheckTableRestore

Checks whether source table names from a snapshot can be restored to specified target tables in a database, accounting for case-sensitive naming.

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__CheckTableRestore"
  }
}

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?

No annotations are supplied, so the description carries the full behavioral burden and delivers none of it: it does not state that the operation is read-only, whether it mutates anything, what it returns (e.g. which tables fail the check), whether errors are raised or reported, or what 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.

Conciseness3/5

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

It is a single short sentence with a bracketed product prefix, so nothing is bloated. The brevity comes at the cost of substance, though: the one sentence is under-specified rather than efficient.

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 tool with six required parameters, no annotations and no output schema, the description should explain what is validated and what the caller gets back. It explains neither, so an agent cannot tell what the check verifies or how to interpret the result.

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 all six required parameters (database, snapshot_id, case_sensitive, source/target table lists, project_id) are already documented in the schema. The description adds no meaning on top of that, which is the baseline case when the schema does the work.

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?

"该接口用于用户恢复表名检测" essentially restates the tool name CheckTableRestore: a 'check' related to restore table names. It never says what is actually checked (name validity? conflicts? case sensitivity?) or what a successful check means, and it does nothing to distinguish it from sibling dws__RestoreTable.

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 statement that it is a pre-flight validation before dws__RestoreTable, no ordering or prerequisites, and no conditions under which it should be skipped. At best the word '检测' faintly implies a validation step, but that is inference, not guidance.

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