Skip to main content
Glama

das__ListMetadataLocks

Lists metadata locks for a Huawei Cloud DAS database instance so you can identify blocking sessions by database, table, or thread ID.

Instructions

[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__ListMetadataLocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNo表名
databaseNo数据库名称
thread_idNo会话ID
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

C2.8/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 burden and discloses nothing about behavior: not whether this is a live snapshot or historical, whether results are paginated or capped, what permissions are needed, or whether the required IDs cause an error when wrong. Only the bare 'list' semantics are implied by the verb.

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

Conciseness3/5

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

It is a single short sentence with zero waste and is front-loaded with the resource name. However, it is terse to the point of under-specification rather than being efficiently informative, so it does not earn a high score.

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 tool with six parameters, three of them required path/query identifiers, no annotations, and no output schema, the description is far too thin. It says nothing about the lock record fields returned, filtering behavior of table/database/thread_id, or failure modes, leaving the agent to call it essentially blind.

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 six parameters including table, database, thread_id, db_user_id, project_id and instance_id are already documented in the schema. The description adds no meaning beyond that, which meets the baseline for fully covered schemas but no more.

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 pair: query (查询) the metadata lock list (元数据锁列表). That is enough for an agent to know it retrieves current metadata locks, though it never distinguishes this from the sibling das__ListInnodbLocks, which covers a different lock type.

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?

There is no when-to-use guidance, no prerequisites (e.g., that the instance must be reachable or the DB user must exist), and no mention of when to prefer ListInnodbLocks or ListTransactions instead. The agent must infer everything from the name.

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