Skip to main content
Glama

unfour.redis.check_key

unfour.redis.check_key
Read-onlyIdempotent

Check whether an exact UTF-8 Redis key exists in a saved connection, optionally verify a hash field or compare the string value, and return metadata with the match result.

Instructions

Check one exact UTF-8 Redis key in a saved connection. Optionally check a hash field or compare the complete string/field against equals. Returns metadata and the comparison outcome.

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": {
      "connectionId": "<connectionId>",
      "key": "<key>"
    },
    "name": "unfour.redis.check_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
fieldNo
equalsNo
workspaceIdNo
connectionIdYes

Output Schema

NameRequiredDescriptionDefault
existsYes
pttlMsYes
keyTypeYes
matchedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely useful context beyond that: the key is matched exactly (not as a glob), the optional field targets hash members, and 'equals' performs a complete comparison rather than a partial one. It does not say what metadata is returned or how a missing key is reported, but with an output schema present that is a minor 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?

Two sentences, front-loaded with the core action and then the optional variations, with no filler. The closing clause about returning metadata and comparison outcome is slightly redundant given an output schema exists, which keeps it from a perfect score.

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 lookup with five parameters and an output schema, the description covers the action, the scope restriction, the two optional modes, and the general shape of the result. Missing pieces such as missing-key behavior and the exact metadata fields are handled or excusable via the output schema.

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

Parameters4/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 carry the load, and it does explain the three semantically ambiguous parameters: key is exact and UTF-8, field is a hash field, and equals compares the complete string or field value. The two connection parameters are only implied by 'in a saved connection', which is enough to infer connectionId and workspaceId from their names. This is meaningfully more than the bare schema.

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 gives a specific verb and resource ('Check one exact UTF-8 Redis key in a saved connection') and clarifies the scope with 'one exact' versus a pattern match. It also names the two optional behaviors (hash field, equals comparison), so the agent knows exactly what the tool can answer. It stops short of differentiating from any sibling, but no comparable Redis-inspection sibling is offered in context.

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 implied rather than stated: the description makes clear this is for single-key existence/value checks, which implicitly rules out scanning or bulk reads. There is no explicit 'use this instead of X' guidance, no note on when the equals comparison is preferable, and no stated prerequisites such as the key needing to exist on the saved connection.

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