Skip to main content
Glama
AIops-tools

queue-aiops

redis_kill_client

Disconnect a Redis client by ID or address, capturing its state before the irreversible kill; dry-run preview available.

Instructions

[WRITE][risk=medium] Disconnect one redis client by id or addr. IRREVERSIBLE.

Captures the client's CLIENT LIST row as priorState (who/where/last command) before the kill — the connection cannot be restored, so no undo is recorded; most clients transparently reconnect. Pass dry_run=True to preview.

Refuses this tool's own connection, by id or by addr — including under dry_run, which must report a refusal rather than preview a call that will be refused.

Args: client_id: Client id from redis_clients (preferred). addr: Or the client's 'ip:port' address. dry_run: If True, preview without disconnecting. target: redis target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addrNo
targetNo
dry_runNo
client_idNo
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses irreversibility, priorState capture, that no undo is recorded, client reconnection behavior, and the refusal to kill its own connection even under dry_run. This is rich, non-obvious behavioral context.

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

Conciseness5/5

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

The description is well-structured and front-loaded with the critical warning ('[WRITE][risk=medium]', 'IRREVERSIBLE'), followed by concise paragraphs and a clean Args list. Every sentence adds value; no filler.

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

Completeness5/5

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

Despite having no output schema, the description covers purpose, parameters, side effects, safety measures, and edge-case refusal behavior. It is sufficient for an agent to select and invoke the tool correctly, including using dry_run and avoiding self-kills.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains each parameter in the Args block: 'client_id' (preferred), 'addr' (alternative), 'dry_run' (preview), and 'target' (default behavior). This goes beyond the schema's type/default info.

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

Purpose5/5

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

The description clearly states the action ('Disconnect') and the resource ('one redis client by id or addr'), with explicit scope. It distinguishes itself from sibling tools like redis_clients (listing) and redis_config_set (config) by focusing on the kill operation.

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

Usage Guidelines4/5

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

The description provides clear usage context, such as preferring client_id from redis_clients and the dry_run preview option. However, it does not explicitly state when to use this tool instead of alternatives or list exclusions (e.g., don't use on cluster-wide operations).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Queue-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server