Skip to main content
Glama
devopam

MCPg - Production-grade PostgreSQL MCP Server

Describe Redis cache table

describe_redis_cache_table
Read-only

Inspect a Redis-backed foreign table in PostgreSQL, returning its server, key type, prefix, TTL, and column details.

Instructions

Describe one foreign table backed by redis_fdw: which server it's mapped to, the Redis-side key structure (hash / list / string / set / zset), key-prefix, TTL, and SQL-side column shape. Raises an error when the table doesn't exist or isn't backed by redis_fdw. Returns an object with schema, name, server, key_type, key_prefix, ttl_seconds, columns (list of {name, data_type}), and options (the full foreign-table options dict).

Example: describe_redis_cache_table(schema='public', table='sessions_cache')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
schemaYes
databaseNoOptional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
schemaYes
serverYes
columnsYes
optionsYes
key_typeYes
key_prefixYes
ttl_secondsYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, confirming safe read operation. The description adds value by detailing error conditions (table doesn't exist or isn't redis_fdw) and the complete return structure. It could mention permissions or latency but is sufficient given the annotation 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 concise, front-loaded with the core action, and every sentence adds value: purpose, attributes, error behavior, return structure, and an example. No wasted words.

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?

Given the presence of an output schema, the description still provides valuable return structure details, enhancing completeness. It covers purpose, parameters implicitly, errors, and output, but lacks explicit parameter descriptions or prerequisites. Still, it is fairly complete for a simple descriptive tool.

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

Parameters2/5

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

Schema description coverage is only 33% (only the database parameter is described in the schema). The description does not explain the 'schema' and 'table' parameters, relying solely on their names. With low coverage, the description fails to compensate for the missing parameter details, resulting in a score of 2.

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 tool describes a foreign table backed by redis_fdw, listing specific attributes such as server mapping, key structure, key-prefix, TTL, and column shape. It distinguishes itself from siblings like describe_table by specifying the redis_fdw requirement and from other describe tools by targeting Redis cache tables.

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 implicitly indicates when to use the tool—for Redis-backed foreign tables—but does not explicitly state when not to use it or provide alternatives. However, the specificity of 'redis_fdw' makes the intended use case clear, earning a 4.

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/devopam/MCPg'

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