Skip to main content
Glama

Site Doctor — WordPress diagnosis

draft_fix

Draft an ACTIVATABLE fix for a site and leave it for the OWNER to turn on from their own wp-admin. You do NOT change the site — you write the mu-plugin PHP, the reason in plain language, and how to roll back; the connector only shows it, and a logged-in admin activates it with one click (auto-disables itself if it fatals on first load). PAID plans only: if the site\x27s organization is free this is refused with "plan_required" — when that happens, just explain the fix in text instead so they can apply it by hand. The code must be a complete, self-contained mu-plugin file starting with <?php, guarded (e.g. function_exists / class_exists checks) so re-activation is safe.

Input Schema

NameRequiredDescriptionDefault
codeYesThe complete mu-plugin PHP, starting with <?php. Guarded so activating twice is harmless.
titleYesOne line: what it fixes.
reasonYesWhy, in the owner's language. This is what they read before activating.
run_idNoThe diagnosis run this came from, if any.
site_idYesSite id from list_sites
rollbackNoHow to revert if deleting the mu-plugin is not enough. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full behavior burden and does: it discloses that nothing is applied immediately, that activation is a one-click admin action, that the plugin auto-disables if it fatals on first load, and that re-activation must be idempotent thanks to guards. These are non-obvious safety traits an agent could not infer from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and the 'you do not change the site' constraint, then the plan gate, then code requirements — a sensible ordering. Slight redundancy: the guard requirement is stated twice ('guarded ... so re-activation is safe' and 'starting with <?php, guarded'), which costs a little density.

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

Completeness5/5

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

For a mutation-adjacent, no-annotation tool with no output schema, the description covers activation model, permission/plan gating, failure semantics, idempotency, and payload constraints — everything needed to call it correctly. No dependency on undefined return values.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description still adds meaning by requiring that 'code' be a complete, self-contained mu-plugin starting with <?php and guarded with function_exists/class_exists checks — constraints the schema states more tersely. It says nothing extra about run_id, rollback, or title beyond the schema text.

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

Purpose5/5

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

The first sentence states a precise verb and artifact: draft an ACTIVATABLE fix (mu-plugin PHP + reason + rollback) for a site, explicitly not applying it. The contrast with siblings that mutate or diagnose (scan_site, draft_report) is made explicit by 'You do NOT change the site'.

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

Usage Guidelines5/5

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

It names the gating condition (PAID plans only), the failure mode ('plan_required'), and the exact fallback action ('just explain the fix in text instead') so the agent knows what to do when refused. The handoff model — agent drafts, owner activates — is stated up front.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.