db_flush

清空当前数据库

Server Redis MCP pickstar-2002/redis-mcp
Category Destructive
Risk class Critical
Parameters 00 required

What db_flush does on Redis MCP

AI agents call db_flush to permanently remove resources in Redis MCP — typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

Why db_flush needs a policy

Flushing a Redis database is an irreversible bulk deletion of all data. This is the most severe destructive operation possible on a database, with a blast radius of total data loss for the selected Redis DB.

From the tool's definition 'db_flush' and description '清空当前数据库' (flush/clear the current database) — this irreversibly deletes all keys in the current Redis database

Questions about db_flush

What does the db_flush tool do? +

清空当前数据库. It is categorised as a Destructive tool in the Redis MCP MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

How do I enforce a policy on db_flush? +

Register the Redis MCP server in PolicyLayer and add a rule for db_flush: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Redis MCP. Nothing to install.

What risk level is db_flush? +

db_flush is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit db_flush? +

Yes. Add a rate_limit block to the db_flush rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block db_flush completely? +

Set action: deny in the PolicyLayer policy for db_flush. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides db_flush? +

db_flush is provided by the Redis MCP server (pickstar-2002/redis-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

db_flush is one line of Redis's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.