Skip to main content
Glama

das__ListDbUsers

Retrieves database users registered in DAS and returns the db_user_id required for follow-up API calls such as querying instance session lists; it does not list database users on the instance.

Instructions

[DAS] 查询注册在DAS里的数据库用户列表,后续调用其他接口时(如查询实例会话列表接口)需要用到此接口返回的db_user_id。此接口不会返回数据库实例上的数据库用户对象。

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

Input Schema

NameRequiredDescriptionDefault
limitNo查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
offsetNo偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
db_user_idNo数据库用户ID。用户使用数据库账号与数据库建立的连接ID(数据库用户ID由注册数据库用户接口创建)。
project_idYes项目ID
db_usernameNo数据库用户名称
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It usefully clarifies that results are limited to DAS-registered users and are not instance DB user objects, but it does not state whether the call is read-only (only implied by 查询), how pagination defaults behave, or what the returned fields look like. The negative scope statement is real added value, but key behavioral traits remain undocumented.

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

Conciseness5/5

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

Three short sentences, front-loaded with the purpose, followed by the downstream dependency and the exclusion. Every sentence carries distinct information; nothing is redundant.

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

Completeness4/5

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

For a six-parameter list tool with full schema coverage and no output schema, the description covers identity, scope, and the reason to call it. It is nearly complete, though with no annotations and no output schema it could have said more about the read-only nature and result shape.

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 every parameter (limit, offset, db_user_id, project_id, db_username, instance_id) is already explained in the schema. The description adds no parameter-level detail such as whether db_username and db_user_id are mutually exclusive filters, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource (query the list of database users registered in DAS) and explicitly scopes it with a negative ('will not return database user objects on the database instance'). That negative scope distinguishes it from instance-level siblings such as rds__ListDbUsers without requiring the agent to open another schema.

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

Usage Guidelines4/5

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

It tells the agent when this tool is needed: the returned db_user_id is required by subsequent APIs such as the instance session list. The exclusion of instance-level users implies another tool is appropriate for that case, but it never names that alternative explicitly, so it stops short of full when/when-not routing.

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