Skip to main content
Glama

dws__CreateDataSource

Creates a data source for a Huawei Cloud DWS cluster using connection details, type, and credentials, enabling the cluster to connect to external databases for data loading and queries.

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": {
      "cluster_id": "<cluster_id>",
      "data_source_name": "<data_source_name>",
      "project_id": "<project_id>",
      "type": "<type>",
      "user_name": "<user_name>"
    },
    "name": "dws__CreateDataSource"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes类型
rebootNo重启
user_pwdNo密码
user_nameYes用户名
cluster_idYes**参数解释**:
project_idYes**参数解释**:
descriptionNo描述
connect_infoNo数据库
data_source_idNo数据源id
data_source_nameYes数据源名称

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 discloses nothing. It does not state permission or auth requirements, what happens on duplicate names, whether the operation is reversible, or what the response contains for a mutating call with 10 parameters.

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

Conciseness2/5

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

The single sentence contains no wasted words, but that is because it contains almost no content. For a 10-parameter creation tool the brevity reflects under-specification rather than efficient expression.

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?

With 10 parameters, 5 of them required, no annotations, and no output schema, the description supplies none of the information an agent needs to invoke this tool correctly. Nothing about required field intent, side effects, or return values is covered.

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 nominally documents all 10 parameters and the baseline of 3 applies. However the description adds no meaning at all, and the schema's own text is thin (cluster_id and project_id carry only '**参数解释**:'), leaving required-field intent such as connect_info or user_pwd unexplained.

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?

The description says only that the interface creates a data source, which is a restatement of the tool name and title rather than an explanation of what it does. It does not distinguish this tool from siblings such as dws__UpdateDataSource, dws__DeleteDataSource, or the near-duplicate mas__CreateDataSource.

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, no prerequisites, and no mention of alternatives. An agent must infer from the verb alone that this is the creation path rather than the update path offered by dws__UpdateDataSource.

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