Skip to main content
Glama

das__RegisterDbUser

Registers an existing database username and password with DAS and returns a database user ID required for later API calls, such as querying instance sessions.

Instructions

[DAS] 此接口是将数据库用户和密码注册进DAS系统,同时会返回一个数据库用户ID ,后续调用其他接口时(如查询实例会话列表接口)需要用到此数据库用户ID。密码为加密存储,且仅用于DAS API相关功能。此接口不会在数据库实例上创建数据库用户对象。请确保输入的用户名和密码是已经存在并且是正确的。

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": {
      "datastore_type": "<datastore_type>",
      "db_user_password": "<db_user_password>",
      "db_username": "<db_username>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "das__RegisterDbUser"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID
db_usernameYes数据库用户名称
instance_idYes实例ID
datastore_typeYes数据库类型,取值为MySQL
db_user_passwordYes数据库用户密码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that the password is stored encrypted, used only for DAS API functions, that no user object is created on the instance, and that an ID is returned. It does not cover failure behavior for wrong credentials, permission requirements, or re-registration/idempotency semantics.

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?

A single front-loaded paragraph that leads with the action and return value before the caveats. It is slightly dense but every clause adds information; no filler sentences.

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 registration mutation with no annotations and no output schema, the description covers what is stored, what is not created, preconditions, and the returned ID. Gaps around error handling and duplicate registration are minor but real.

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 all five parameters are already documented. The description adds only cross-parameter meaning (credentials must pre-exist and be valid) and does not add syntax, format, or constraint detail beyond the schema; baseline 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 names a specific action and resource: registering a database username/password into DAS and returning a database user ID. It further clarifies the negative scope ('此接口不会在数据库实例上创建数据库用户对象'), which separates it from CreateDbUser-style siblings, though it never names an alternative tool explicitly.

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 states the downstream context in which the returned ID is needed ('后续调用其他接口时...需要用到此数据库用户ID') and gives a precondition: the username and password must already exist and be correct. It stops short of naming the sibling tools to use instead for user creation or listing.

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