Skip to main content
Glama

debug_wordpress

Troubleshoot WordPress problems by checking debug constants, reading debug.log errors, validating wp-config.php, running health checks, and listing active plugins for conflict detection.

Instructions

Debug and troubleshoot a WordPress installation. Actions: status (debug constants, PHP version, log size), errors (read debug.log), config (check wp-config.php constants), health (verify checksums, check DB, cron), conflicts (list plugins for conflict detection).

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": "debug_wordpress"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoNumber of log lines to read (for 'errors' action).
actionNoAction to perform: - status: Overall debug status (constants, PHP version, log size) - errors: Read last errors from debug.log - config: Check wp-config.php debug constants - health: Run WP-CLI diagnostics (verify checksums, check DB, cron) - conflicts: List active plugins for conflict detectionstatus
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.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden; it does convey that most actions are inspection-oriented (read debug.log, check constants, verify checksums, check DB and cron), which implies a largely read-only profile. However, it never states side effects, required permissions, whether the health action executes WP-CLI commands that could alter state, or what happens if the installation is unreachable.

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 zero filler: purpose is front-loaded, and the action breakdown is compressed into a single scannable list of mode-to-artifact pairs. Every clause contributes information an agent can act on.

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?

For a four-parameter tool with no output schema and no annotations, the definition covers what each action inspects but says nothing about the shape or granularity of results, nor about failure modes when wpPath is invalid. Adequate to select an action, but thin for correctly interpreting and recovering from calls.

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 the enum values, 'lines', 'wpPath' and the 'conversationId' prerequisite are already documented in the schema. The description's action list merely restates the enum rather than adding format details such as what 'lines' defaults to or expected path shape, so baseline 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?

Names a specific verb ('debug and troubleshoot') and resource ('a WordPress installation'), then enumerates five concrete action modes with the artifacts each inspects (debug constants, debug.log, wp-config.php, checksums, plugins). This is far more informative than the bare name, though it never distinguishes itself from the overlapping sibling 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 Guidelines4/5

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

The per-action parentheticals give clear context for choosing between status, errors, config, health and conflicts, which is the main routing decision for this tool. It stops short of explicit exclusions or pointing to sibling tools when the caller actually wants site-health scoring or plugin analysis.

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