Upstash MCP Server

Official

redis_database_get_stats

Get SAMPLED usage statistics of an Upstash redis database over a period of time (1h, 3h, 12h, 1d, 3d, 7d). Use this to check for peak usages and latency problems. Includes: read_latency_mean, write_latency_mean, keyspace, throughput (cmds/sec), diskusage NOTE: If the user does not specify which stat to get, use throughput as default.

Input Schema

NameRequiredDescriptionDefault
idYesThe ID of your database.
periodYesThe period of the stats.
typeYesThe type of stat to get

Input Schema (JSON Schema)

{ "properties": { "id": { "description": "The ID of your database.", "type": "string" }, "period": { "description": "The period of the stats.", "enum": [ "1h", "3h", "12h", "1d", "3d", "7d" ], "type": "string" }, "type": { "anyOf": [ { "const": "read_latency_mean", "type": "string" }, { "const": "write_latency_mean", "type": "string" }, { "const": "keyspace", "description": "Number of keys in db", "type": "string" }, { "const": "throughput", "description": "commands per second (sampled), calculate area for estimated count", "type": "string" }, { "const": "diskusage", "description": "Current disk usage in bytes", "type": "string" } ], "description": "The type of stat to get" } }, "required": [ "id", "period", "type" ], "type": "object" }