Skip to main content
Glama

gaussdb__ShowClickHouseSlowLogDetail

Retrieves detailed slow query logs for a Huawei Cloud GaussDB ClickHouse instance by node, database, operation type, and time range. Use it to diagnose performance issues and find slow queries.

Instructions

[GAUSSDB] 获取内核慢日志信息。

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": {
      "end_time": "<end_time>",
      "instance_id": "<instance_id>",
      "limit": "<limit>",
      "node_id": "<node_id>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "gaussdb__ShowClickHouseSlowLogDetail"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes查询记录数。
node_idYes实例节点ID。
databaseNo数据库名。
end_timeYes开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
line_numNo日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。
project_idYes租户在某一Region下的project ID。
start_timeYes开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
instance_idYesClickHouse实例ID,严格匹配UUID规则。
operate_typeNo慢日志操作类型。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, and it delivers almost nothing: "获取" weakly implies a read-only call, but there is no statement about pagination (line_num only needed on subsequent pages), result limits, or whether a wide time range is restricted. Even the pagination-critical behavior hinted at only in the line_num param is not surfaced at the description level.

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?

A single short sentence with no wasted words, but the brevity reflects under-specification rather than efficiency; there is no front-loaded statement of scope or return 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 9-parameter, 6-required query tool with no output schema and no annotations, the description is far too thin. An agent gets no sense of what the returned log records contain, how many are returned per page, or how to paginate, which is exactly the kind of context this tool's description should supply.

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 nine parameters, including time format, UUID rules, and the line_num pagination contract, are already documented in the schema. The description adds no parameter-level meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description "获取内核慢日志信息" essentially restates the tool name (Show...SlowLogDetail) without adding specificity. It does not identify which engine (ClickHouse) or how it differs from siblings such as ShowSlowLogStatistics or DownloadSlowLogFile, leaving sibling differentiation entirely to the name.

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 guidance on when to use this tool versus the related slow-log tools (statistics, desensitization status, log download), nor any preconditions such as required node state or time-range limits. The agent must infer usage from the name alone.

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