Skip to main content
Glama

gaussdb__ShowSlowLogStatistics

Retrieves slow query log statistics for a GaussDB instance within a specified time range, supporting database, node, and statement-type filters with sorting and pagination.

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>",
      "node_id": "<node_id>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "gaussdb__ShowSlowLogStatistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo指定排序字段。
typeNo语句类型,取空值,表示查询所有语句类型。
limitNo每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。
orderNo排序顺序。默认desc。
offsetNo索引位置,偏移量。默认为0,表示从第一条数据开始查询。
node_idYes节点ID。
databaseNo数据库名称。数据库名称不支持包含特殊字符 < > & 等的搜索。
end_timeYes结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
project_idYes租户在某一Region下的project ID。
start_timeYes开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。
instance_idYes实例ID,严格匹配UUID规则。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 disclosure burden, and it delivers almost nothing. It implies a read operation via '查询', but says nothing about permissions, whether statistics are pre-aggregated or computed on demand, rate limits, or result shape. For an 11-parameter query tool with zero annotation coverage, this 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.

Conciseness3/5

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

The single sentence contains no wasted words and front-loads the resource, but it is terse to the point of under-specification rather than deliberately concise. Brevity here is a symptom of missing content, not efficiency.

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?

With 11 parameters, 5 required, no output schema, and no annotations, this definition needs to explain behavior and usage context itself. A one-line purpose statement leaves the agent without the information required to invoke the tool confidently or interpret the returned statistics.

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 including sort, type, order, limit, offset, and the required time/instance/node/project fields is already documented in the schema. The description adds no meaning beyond that, but per the schema-coverage baseline a 3 is the correct score when the schema does the heavy lifting.

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

Purpose3/5

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

The description states a verb and resource ('查询慢日志统计信息' / query slow-log statistics), so the general function is identifiable. However, it gives no scope detail — which statistics, aggregated how, over what time window — and does nothing to distinguish it from siblings like rds__ListSlowLogStatisticsForLts or das__ExportSlowSqlStatistics. This is a vague purpose rather than a clear one.

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, and no mention of alternatives. An agent cannot tell from this text whether this tool is the right choice versus the many other slow-log tools in the sibling list, nor under what conditions it should be preferred.

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