Skip to main content
Glama

das__ListInnodbLocks

Query the InnoDB lock wait list for a database instance to identify blocked sessions and troubleshoot database contention.

Instructions

[DAS] 查询InnoDB锁等待列表。

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__ListInnodbLocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.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, yet it only states the query subject. It does not confirm this is a read-only operation, mention pagination or result limits, disclose permission requirements on the instance, or say whether it returns waiting locks only or all held locks. For a diagnostic listing over three required path/query identifiers, that is a substantial gap.

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 sentence with zero filler, and the resource is stated immediately. It is efficient, though the brevity borders on under-specification for the tool's diagnostic role.

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

Completeness3/5

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

The parameters are fully documented in the schema and the operation is a simple read, so the description is minimally sufficient. With no annotations and no output schema, however, the agent has no information about what the returned lock entries contain or how contention is represented.

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%, and all three required parameters (db_user_id, project_id, instance_id) are documented in the schema with their location (query vs path). The description adds no meaning beyond this, so the 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 verb and resource ('查询InnoDB锁等待列表' — query the InnoDB lock wait list), which is far more concrete than a tautology. It does not, however, distinguish this from the sibling das__ListMetadataLocks, leaving the agent to infer that one covers metadata locks and this one covers InnoDB row/table lock waits.

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 at all: nothing says whether to reach for this when diagnosing lock contention versus ListTransactions or ListMetadataLocks, and no prerequisites or exclusions are stated. The agent must infer the intended scenario purely from the resource 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