Restores a LocalWP site from a .sql file or a backup_site directory. In full-access mode it can restore the database and, when available, the backup
AI agents use restore_backup to create or update resources in LocalWP MCP — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your LocalWP MCP environment.
This tool overwrites site data and database state by applying a backup, which is a reversible modification operation (can be undone by restoring to a different backup or state). While it has significant blast radius due to potential data loss if applied to the wrong backup, it is reversible (unlike Destructive operations) and does not irreversibly delete data.
From the tool's definition Tool description states it 'Restores a LocalWP site from a .sql file or a backup_site directory' and 'can restore the database and...the backup'. The term 'restores' indicates overwriting/modifying existing site data and database content.
Attacks that exploit this kind of access
Restores a LocalWP site from a .sql file or a backup_site directory. In full-access mode it can restore the database and, when available, the backup. It is categorised as a Write tool in the LocalWP MCP MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the LocalWP MCP server in PolicyLayer and add a rule for restore_backup: 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 LocalWP MCP. Nothing to install.
restore_backup is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the restore_backup 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.
Set action: deny in the PolicyLayer policy for restore_backup. 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.
restore_backup is provided by the LocalWP MCP server (kazimshah39/localwp-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →