Skip to main content
Glama

dws__UpdateDatabaseAuthority

Grants or revokes permissions on DWS database objects for specified roles, covering databases, schemas, tables, views, columns, functions, sequences, node groups, and roles.

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>",
      "database": "<database>",
      "is_grant": "<is_grant>",
      "object_list": "<object_list>",
      "project_id": "<project_id>",
      "role_list": "<role_list>",
      "type": "<type>"
    },
    "name": "dws__UpdateDatabaseAuthority"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes对象类型 [DATABASE | SCHEMA | TABLE | VIEW | COLUMN | FUNCTION| SEQUENCE | NODEGROUP | ROLE]
tableNo表名
schemaNo模式名称
cascadeNo撤销权限是否级联撤销 默认 true
databaseYes数据库名称
is_grantYes是否授权操作
role_listYes被授权角色列表
all_objectNoschema下所有数据库对象权限,默认false
cluster_idYescluster_id
grant_listNo授权列表 is_grant为true时必填
project_idYesproject_id
object_listYes权限所属对象列表
revoke_listNo撤销权限列表 is_grant为false时必填

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/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 delivers almost nothing. "修改" implies a mutation, but the definition never mentions that this single tool both grants and revokes (controlled by is_grant), that cascade defaults to true on revoke, that grant_list/revoke_list are conditionally required, or what permissions or side effects are involved.

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?

One short sentence with zero waste, so there is no verbosity problem. The issue is the opposite: under-specification, with no structure or front-loaded scoping detail to guide invocation.

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?

This is a 13-parameter, 7-required mutation tool with no annotations and no output schema, and the description is a seven-character restatement. Nothing an agent needs in order to call it correctly — grant vs revoke mode, object-type dependent fields, cascade semantics — 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 documents all 13 parameters and the baseline is 3. The description adds nothing beyond that — notably it does not explain the is_grant switch or the mutual exclusivity between grant_list and revoke_list, which is where an agent most needs narrative help.

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?

"修改数据库对象权限" is essentially a Chinese restatement of the tool name UpdateDatabaseAuthority; it adds no scope, no object domain, and no distinction from dws__ShowDatabaseAuthority or the other authority-related siblings. It is not misleading, but it is tautological rather than informative.

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, when-not-to-use, or alternative-sibling guidance at all. The agent gets no signal about when to pick this over dws__ShowDatabaseAuthority for inspection or dws__UpdateDatabaseUserInfo for user-level changes.

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