Skip to main content
Glama

drs__ListConnections

Lists Data Replication Service connections and filters them by database type, name, IP, instance ID, or creation time to locate target connections.

Instructions

[DRS] 查询连接列表,可根据连接类型进行查询。

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

Input Schema

NameRequiredDescriptionDefault
ipNo连接IP。
nameNo连接名称,忽略大小写。
limitNo查询返回记录的数量限制,默认值为10。
offsetNo偏移量,默认值为0,表示查询该偏移量后面的记录。
db_typeNo连接类型。
inst_idNo云上数据库实例ID。
sort_dirNo降序或升序(分别对应desc和asc,默认为“desc”)。
sort_keyNo返回结果按该关键字排序,默认为“created_at”。
fetch_allNo值为“true”时会使得offset和limit参数失效并返回所有记录。
project_idYes租户在某一Region下的Project ID。 获取方法请参见[获取项目ID。](https://support.huaweicloud.com/api-drs/drs_api_0106.html)
create_timeNo时间区间用“,”分割。示例:2024-05-17T07:46:00.414Z,2024-05-20T07:46:00.999Z。
descriptionNo连接描述。
connection_idNo连接ID。
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 supplied, so the description carries the full burden and discloses almost nothing: it does not state that the call is read-only, whether it requires project-level permissions, how results are paginated by default, or how fetch_all changes behavior. An agent must infer all behavioral traits from the name alone.

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 short sentence with no filler, front-loaded with the action. It is efficiently sized, though the brevity reflects under-specification rather than disciplined editing of richer content.

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?

For a 14-parameter list endpoint with no annotations and no output schema, the description supplies only one filtering hint. It should at minimum explain default result size, pagination semantics, and what the returned records contain, none of which are covered elsewhere.

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 14 parameters are already documented in the schema, establishing a baseline of 3. The description only reiterates the db_type filtering idea and adds no format, default, or interaction detail (e.g., sort_key/sort_dir coupling or fetch_all overriding limit/offset) beyond the schema.

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+resource combination ("查询连接列表" / query connection list) plus one scoping capability (filter by connection type). It is clear what the tool returns, though it never distinguishes itself from same-named list tools in other services or from the DRS batch-validation siblings.

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?

The only usage hint is "可根据连接类型进行查询", which points at the db_type filter but gives no context on when to call this versus other listing or validation tools. There are no exclusions, prerequisites, or guidance about pagination versus fetch_all.

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