Skip to main content
Glama

Site Doctor — WordPress diagnosis

probe

Relay a read-only forensic operation to the site through the SaaS broker. You can read ANYTHING inside the site read-only — including arbitrary options and arbitrary SQL — so never fall back to SSH for a read. READ-ANYTHING ops: "option_get" reads any single WP option by name (params: {"name":"the_option_name"}); "db_query" runs arbitrary READ-ONLY SQL (params: {"sql":"SELECT ... ","max_rows":1000} — only SELECT/SHOW/DESCRIBE/EXPLAIN/WITH, writes are rejected). LOGS — READ THIS BEFORE ANSWERING ANY TRAFFIC/ACCESS QUESTION: the FULL access log lives ON THE SITE, not in Site Doctor. The connector self-logs every request (status, URI, IP, duration, memory, queries — including successful 200s) to the site's own disk, 90-day retention. Read it with op "ah_events" (params: {"hours":<=720,"type":"request"|"php_error"|"php_fatal"|"exception","level","status_min","limit":<=2000}). Site Doctor's own DB (sd_logevents, via saas_query) keeps only the SIGNAL — errors and sensitive writes; ~99% of successful requests are filtered out on ingest — so NEVER answer "how much traffic / which pages / where do visitors come from" from saas_query: query the site with ah_events instead. Other ops: info, plugins, themes, users, options_sensitive, options_scan (curated/IOC option sweep), files_list, files_get (params: {"path","max_bytes"}), files_recent, posts_scan, logs_read (raw host log files), cron, db_health, perf, hooks, template_scan, log_digest, ah_pagespeed. Pass op-specific params in "params". If an op returns "unknown_op"/"unsupported", the site is on an OLD connector — tell the user to update the SiteDoctor connector plugin. ACCESS MAP: op "capabilities" (no params, ≈10-40 s) probes what THIS site's connector can answer right now — options, DB, files under ABSPATH and under wp_content_dir, request log — and classifies each as ok / waf: / timeout / old_connector / path_unresolved, with advice. get_site shows the cached result as access. Run it BEFORE telling the user something is unreachable; never assume a block you did not verify.

Input Schema

NameRequiredDescriptionDefault
opYesProbe operation name. To read a specific option use "option_get"; for any other DB read use "db_query".
paramsNoOperation parameters, e.g. {"name":"siteurl"} for option_get or {"sql":"SELECT option_name FROM wp_options LIMIT 20"} for db_query.
site_idYesSite id from list_sites

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 entire burden and does so: it declares read-only enforcement (writes rejected, only SELECT/SHOW/DESCRIBE/EXPLAIN/WITH), 90-day log retention, self-logging of every request including 200s, ~99% ingest filtering in saas_query, old-connector failure modes (unknown_op/unsupported), and a 10-40s capability probe with ok/waf/timeout/path_unresolved classifications.

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 purpose, then the critical traffic-log warning is placed prominently before the op inventory. The remaining text is dense and run-on with heavy caps and em dashes, and the long op-name list is close to a schema dump, but nearly every sentence carries operative information given the breadth of the tool.

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

Completeness4/5

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

Complete enough to call correctly: ops, param contracts, caveats, verification path, and failure modes are all covered for a 25+ op multiplexer. It does not describe return shapes for any op, and with no output schema that is the one remaining gap, though it is impractical to cover per-op here.

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

Parameters5/5

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

Schema coverage is 100% and only offers a generic object for params, but the description adds real meaning on top: concrete param shapes for option_get and db_query, plus bounded values for ah_events (hours<=720, limit<=2000, type enum values). This is the only place the op vocabulary and per-op parameter contracts are discoverable since the schema has no enum on op.

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?

States a specific verb (relay a read-only forensic operation to the site via the SaaS broker) plus a full enumeration of the underlying ops, which is the real resource surface. It explicitly distinguishes itself from the sibling saas_query (signal DB) and from SSH fallback, so an agent can differentiate it without opening the schema.

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?

Gives explicit routing rules: use ah_events for any traffic/access question and NEVER saas_query, use option_get/db_query instead of falling back to SSH for reads, and run capabilities before declaring anything unreachable. Alternatives and the conditions selecting them are spelled out, not implied.

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.