Skip to main content
Glama

dws__CreateDatabaseUser

Creates a database user or role in a specified DWS cluster, including login credentials, connection limits, and privilege grants.

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>",
      "name": "<name>",
      "project_id": "<project_id>",
      "type": "<type>"
    },
    "name": "dws__CreateDatabaseUser"
  }
}

Input Schema

NameRequiredDescriptionDefault
descNo**参数解释**:
nameYes**参数解释**:
typeYes**参数解释**:
loginNo**参数解释**:
inheritNo**参数解释**:
passwordNo**参数解释**:
create_dbNo**参数解释**:
cluster_idYes**参数解释**:
conn_limitNo**参数解释**:
grant_listNo**参数解释**:
project_idYes**参数解释**:
create_roleNo**参数解释**:
system_adminNo**参数解释**:
grant_membersNo**参数解释**:
logical_clusterNo**参数解释**:
password_disableNo**参数解释**:

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/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 behavioral burden, and it discloses almost nothing: it does not say that the call mutates cluster state, that it can also grant privileges and role membership (the grant_list / grant_members parameters), that a password is set, or whether the operation is idempotent or reversible. Only the bare fact that a user/role is created is conveyed.

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 free of waste, but its brevity is under-specification rather than efficiency given a 16-parameter creation tool. Nothing needs removing; significant content needs adding.

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 complex, high-impact creation tool with 16 parameters (privilege grants, role membership, password policy, admin flags), no annotations, and no output schema, a one-line description leaves the agent without the information needed to invoke it safely or correctly.

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 reported as 100%, so the baseline of 3 applies and the description is not expected to re-document all 16 parameters. That said, the schema 'descriptions' are empty '**参数解释**:' placeholders, so nothing in either the description or the schema explains fields like grant_list, system_admin, conn_limit, or logical_cluster — a real gap that the one-line description does nothing to close.

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 states a specific verb and resource ('创建数据库用户/角色' — create database user/role), which is unambiguous about the operation and the two object types it can produce. It does not, however, distinguish this DWS tool from the many sibling create-user tools (gaussdb__CreateGaussMySqlDatabaseUser, gaussdb__CreateClickHouseDatabaseUser, etc.), so the agent gets no signal on which creation tool applies.

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 (project/cluster selection, required permissions), and no mention of alternatives such as UpdateDatabaseUserInfo or the engine-specific create variants. The agent must infer entirely from the name and the sibling list when this tool is the right choice.

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