Skip to main content
Glama

das__ShowDbUser

Retrieves details for a database user registered in DAS by its user ID, instance ID, and project ID. Use it to inspect DAS-registered user connections, not database user objects on the instance.

Instructions

[DAS] 查询注册在DAS里的数据库用户信息。此接口不能查询数据库实例上的数据库用户对象。

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": {
      "db_user_id": "<db_user_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "das__ShowDbUser"
  }
}

Input Schema

NameRequiredDescriptionDefault
db_user_idYes数据库用户ID。用户使用数据库账号与数据库建立的连接ID(数据库用户ID由注册数据库用户接口创建)。
project_idYes项目ID
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose the important scope limitation that only DAS-registered users are returned, which is behavior beyond the schema. It omits permission/auth requirements and says nothing about what the response contains, so disclosure is partial for a tool with zero annotation coverage.

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

Conciseness4/5

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

Two short sentences, front-loaded with the purpose and followed by the exclusion. Nothing is redundant, though the exclusion could be phrased more decisively as a routing hint to the instance-level siblings.

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

Completeness3/5

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

There is no output schema and no annotations, so the description is the only source of behavioral context; it covers purpose and scope but not return contents or error conditions (e.g. what happens for an unregistered ID). For a simple three-parameter read tool this is adequate but not complete.

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% and all three parameters are documented in the schema, including the note that db_user_id is the connection ID created by the register-user API. The description adds no further parameter meaning, so the baseline of 3 applies.

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 (query database user info registered in DAS) and adds a scope boundary distinguishing it from instance-level user objects. It does not explicitly contrast with the sibling das__ListDbUsers, but the single-resource focus is clear from the required db_user_id.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one negative usage rule (cannot query database user objects on the instance), which is genuinely useful for steering an agent away from instance-level APIs. However, it never says when to prefer this over das__ListDbUsers or the gaussdbfornosql/rds user tools, leaving the main selection decision implicit.

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