Skip to main content
Glama
redis

Redis MCP Server

Official
by redis

set_vector_in_hash

Persist a numerical vector as a field in a Redis hash. Provide the hash key, field name (default 'vector'), and the vector to store.

Instructions

Store a vector as a field in a Redis hash.

Args: name: The Redis hash key. vector_field: The field name inside the hash. Unless specifically required, use the default field name vector: The vector (list of numbers) to store in the hash.

Returns: True if the vector was successfully stored, False otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
vectorYes
vector_fieldNovector

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description must disclose behavioral traits, but it only states the return value (True/False). It does not mention that storing a vector may overwrite an existing field (implied by the default field name), any permissions required, or side effects like data persistence or interaction with indexing tools.

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 description is concise with a clear one-line summary followed by structured Args and Returns sections. Each sentence serves a purpose, though the vector_field guidance could be slightly more succinct. Overall, it is well-organized and easy to parse.

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

Completeness3/5

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

The description covers the core parameters and return value but omits important context: storage format (e.g., JSON serialization), overwrite behavior, error conditions (e.g., non-existent hash), and interaction with vector search indexing. While adequate for basic use, it leaves gaps for an agent.

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 compensate. The Args section explains each parameter's purpose (e.g., 'name: The Redis hash key') and provides guidance (e.g., using default vector_field). This adds significant meaning beyond the schema's titles and types, though it lacks constraints like vector length or numeric precision.

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 explicitly states 'Store a vector as a field in a Redis hash,' which clearly identifies the action (store) and resource (Redis hash). This distinguishes it from sibling tools like 'hset' (generic hash set) and 'get_vector_from_hash' (retrieval), making the purpose unambiguous.

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?

The description provides no guidance on when to use this tool versus alternatives like 'hset' or 'set.' It does not mention prerequisites, use cases, or scenarios where another tool would be more appropriate, leaving the agent without decision support.

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/redis/mcp-redis'

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