Skip to main content
Glama

gaussdbfornosql__ShowRedisBigKeys

Queries large Redis keys by type and pagination to identify strings over the configured size threshold or hash/list/zset/set/stream keys exceeding the element threshold.

Instructions

[GAUSSDBFORNOSQL] 支持查询Redis实例的大key。value长度大于bigkeys-string-threshold参数的string类型的key或者元素数大于bigkeys-composite-threshold参数的hash/list/zset/set/stream类型key,会被判断为大key。

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

Input Schema

NameRequiredDescriptionDefault
limitNo查询个数上限值。 取值范围:1~100。不传该参数时,默认查询前100条大key。
offsetNo索引位置偏移量,表示从查询到的大key列表偏移offset条数据后查询对应的大key信息。 取值大于或等于0。不传该参数时,查询偏移量默认为0,表示从第一条大key开始查询。
key_typesNo大key的类型,一个字符串列表,支持"string","hash","zset","set","list","stream"六种类型。
project_idYes租户在某一region下的project ID。
instance_idYes实例ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/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 behavioral burden. It usefully discloses the threshold-based classification logic, but says nothing about whether the call is read-only, what permissions or instance state are required, whether results are paginated or capped, or what the response contains — significant gaps for a mutation-free but non-trivial query tool.

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?

The definition is a single, front-loaded sentence pair that leads with the action and follows with the qualifying criteria. It is compact and waste-free, though the threshold-parameter clause is dense and could be split for readability.

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

Completeness4/5

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

For a read-only Redis query tool with fully documented parameters and no output schema, the definition covers the essential semantics — what a big key is and which types qualify. The main remaining gap is the absence of any statement about result shape or paging, which matters because there is no output schema to fall back on.

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 the baseline is 3. The description's enumeration of the six key types loosely reinforces the key_types parameter, but it adds no syntax or constraint detail (such as limit/offset paging behavior) beyond what the schema already documents.

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 and resource (query Redis instance big keys) and goes further by defining the exact criteria that make a key 'big' (string value length over bigkeys-string-threshold, or element count over bigkeys-composite-threshold for hash/list/zset/set/stream). It never names or contrasts with the sibling ShowRedisHotKeys, so an agent gets a clear purpose but no explicit sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the purpose statement: an agent can infer it should call this when it wants to identify oversized keys in a Redis instance. There is no explicit when-to-use/when-not-to-use guidance and no mention of the closely related hot-key or slow-log siblings as alternatives.

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