Skip to main content
Glama

drs__CreateConnection

Creates a single DRS connection to an on-premises or cloud database such as MySQL, PostgreSQL, Oracle, or MongoDB for replication and migration setup.

Instructions

[DRS] 创建单个连接,该连接可以为线下自建库或云上RDS等,目前支持的数据库引擎包括MySQL、PostgreSQL、Oracle和MongoDB。

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_type": "<db_type>",
      "endpoint": "<endpoint>",
      "name": "<name>",
      "project_id": "<project_id>"
    },
    "name": "drs__CreateConnection"
  }
}

Input Schema

NameRequiredDescriptionDefault
sslNo数据库SSL证书信息。
vpcNo数据库实例所在VPC,子网,安全组等信息。
nameYes连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。
cloudNo数据库实例所在Region,项目等信息。
configNo连接配置,不同类型的连接配置不同。
db_typeYes连接类型,包含:
endpointYes数据库基本信息体。
project_idYes租户在某一Region下的Project ID。 获取方法请参见[获取项目ID。](https://support.huaweicloud.com/api-drs/drs_api_0106.html)
descriptionNo描述,长度不能超过255个字符。
enterprise_project_idNo企业项目ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing beyond what is created: no permission/authentication requirements, no statement about name-uniqueness or duplicate handling, no indication whether the connection is validated/tested on creation, and no mention of what is returned. The engine list it does give is redundant with the db_type enum in the schema.

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?

One compact sentence with the verb and resource front-loaded and no filler. The bracketed '[DRS]' prefix is low-value noise, but overall the text is efficient and nothing is wasted.

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

Completeness2/5

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

This is a complex creation tool with 10 parameters, deeply nested objects (endpoint, vpc, cloud, ssl, config) and no annotations or output schema. The description never explains which nested blocks are required for which scenario (e.g., VPC for ecs_* endpoints versus cloud region/project for cloud_* endpoints), which is exactly the guidance an agent needs to construct a valid call.

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 is already documented in the schema; baseline is 3. The description adds no meaning beyond the schema – the supported-engine list it names is identical to the db_type enum, and nothing is said about the required nested vpc/cloud/endpoint objects.

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?

States a specific verb and resource ('创建单个连接' – create a single connection) and scopes it to on-premises self-built databases or cloud RDS, naming the supported engines. The word '单个' (single) distinguishes it from batch-creation siblings in the DRS family, though it does not name an explicit alternative.

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?

No statement of when to use this versus drs__ModifyConnection, drs__DeleteConnection, or other create-connection tools in the broader catalog, and no prerequisites or ordering guidance. The only implicit cue is '单个', which hints it is not the batch path, but the agent must infer everything else.

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