Skip to main content
Glama
trustable-ai

openserverless-mcp

Official
by trustable-ai

action_add_redis

Add Redis to an endpoint, exposing it as ctx.REDIS and ctx.REDIS_PREFIX, and wire required authenticated endpoints atomically for consistent session storage.

Instructions

Add Redis to one endpoint as ctx.REDIS and ctx.REDIS_PREFIX. For authenticated pages, every login/registration, me/session, protected-resource, and logout endpoint must be wired; use auth_setup to configure the complete set atomically. Authentication uses opaque random tokens stored server-side in prefix-safe Redis keys with a bounded TTL, never JWT or an application signing secret.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endpointYesThe action endpoint. Use 'name' or 'package/name'. Each segment must start with a letter and contain only letters, numbers, and hyphens; underscores and spaces are invalid (example: 'v1/employees-photo').
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It states that this is a mutating operation ('Add Redis to one endpoint'), names the exact context bindings created, and discloses security-relevant design details: opaque random tokens, server-side storage, prefix-safe keys, bounded TTL, and no JWT or signing secret. It does not mention edge cases like overwriting existing Redis bindings, but the core behavioral profile is clear.

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?

Three sentences carry distinct, valuable information: what the tool does, when to use it vs auth_setup, and how the underlying authentication tokens work. There is no filler, and the primary action is front-loaded.

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 simple single-parameter tool with no output schema, the description is sufficiently complete: it explains the effect, the relevant usage constraints, and the security model. It could add return-value or idempotency details, but these are non-critical for selecting and invoking the tool correctly.

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%, and the endpoint parameter already has a precise format description. The tool description adds conceptual context about ctx.REDIS and ctx.REDIS_PREFIX but does not need to explain the endpoint syntax further. Baseline 3 is appropriate because the schema does the heavy lifting.

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 opens with a specific verb and resource: 'Add Redis to one endpoint as ctx.REDIS and ctx.REDIS_PREFIX.' This clearly distinguishes it from sibling actions like action_add_s3 or action_add_postgresql by naming the target binding and scope.

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

Usage Guidelines5/5

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

The description explicitly tells the agent when to avoid this tool for authenticated pages and to 'use auth_setup to configure the complete set atomically.' It also clarifies the per-endpoint purpose of action_add_redis, giving concrete routing guidance between the two sibling tools.

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/trustable-ai/openserverless-mcp'

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