Skip to main content
Glama

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

NameRequiredDescriptionDefault
wpPathYesAbsolute path to the WordPress installation.
conversationIdYesThe conversation ID obtained from learn_wordpress_api.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the inspected artifacts and that output is recommendations with commands, implying a non-destructive scan, but it never states that it is read-only, whether it requires authentication, how expensive a full-table scan is on a large database, or whether it mutates anything.

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?

Two sentences with the purpose front-loaded and the checks compressed into a compact list; every clause (table sizes, revisions, orphaned postmeta, spam/trash comments, transients, autoloaded options) earns its place by telling the agent exactly what will be audited.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, and the description does partially compensate by describing the returned recommendations and commands. However, for a database-scanning analysis tool it omits safety/permission notes and any sense of runtime cost or result structure, leaving the agent short of what it would want before calling.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented in the schema, including the conversationId provenance. The description adds no further meaning about wpPath format or how conversationId is used, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Analyze WordPress database health and bloat") and enumerates the exact checks performed plus the shape of the output (cleanup recommendations with commands). It is clear what the tool does, but it never differentiates itself from adjacent siblings such as check_site_health or analyze_plugin.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is for database health/bloat auditing, but there is no explicit when-to-use, when-not-to-use, or pointer to alternatives like check_site_health. No prerequisites (e.g. needing a valid wpPath from learn_wordpress_api) are restated beyond the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.