analyze_database
Diagnose WordPress database health and bloat by checking table sizes, revisions, orphaned postmeta, spam/trash comments, transients, and autoloaded options, then return cleanup recommendations.
Instructions
Analyze WordPress database health and bloat. Checks: table sizes, post revisions, orphaned postmeta, spam/trash comments, transients, autoloaded options size. Returns cleanup recommendations with commands.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wpPath": "<wpPath>",
"conversationId": "<conversationId>"
},
"name": "analyze_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wpPath | Yes | Absolute path to the WordPress installation. | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |