Skip to main content
Glama

Site Doctor — WordPress diagnosis

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Site Doctor — WordPress diagnosis. If you published it, claim ownership there.

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. LIGHT (wp.org) edition — from connector 1.8.0 it supports the same read-only deep ops as the full connector: files_get (file content, secrets redacted), db_query (SELECT/SHOW/DESCRIBE/EXPLAIN only — writes rejected), option_get, files_list/files_recent. It ALSO has curated bundles that run on-site and return a verdict + metadata: core_integrity (core files vs api.wordpress.org checksums), files_scan (on-site malware signature scan of plugins/themes/uploads), security_posture (hardening flags/perms), user_audit (admin roster + 2FA), updates (outdated plugins/themes/core). Pass op-specific params in "params". If an op returns "unknown_op"/"unsupported", the site is on an OLD connector (a light connector before 1.8.0 lacks the deep ops) — tell the user to update the SiteDoctor connector plugin. The light edition cannot WRITE (no fixes-writer, no self-update); magic_login is opt-in and only via the panel, never a probe op. 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.

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": {
      "site_id": "<site_id>",
      "op": "<op>"
    },
    "name": "probe"
  }
}

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.9/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 burden and does: read-only scope, write rejection for db_query, secrets redacted in files_get, 90-day retention, ~99% of successful requests filtered out of sd_logevents, capability classification codes (ok/waf/timeout/old_connector/path_unresolved), the 10-40s cost of capabilities, and unknown_op signaling an old connector. This is unusually rich behavioral disclosure.

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 rule and organized by uppercase section headers (READ-ANYTHING, LOGS, ACCESS MAP), so the structure aids scanning. However it is a dense wall of text with some repetition (the SSH-fallback and db_query read-only points recur), slightly taxing to parse despite being appropriate for a many-op dispatcher.

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 complex multi-op tool with no output schema, it covers edition differences (light vs full connector, 1.8.0 cutoff), failure-mode interpretation, and the sd_logevents-vs-ah_events data-location distinction an agent needs to answer correctly.

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?

Although schema coverage is 100% for the three top-level params, the schema treats params as an opaque object while the description supplies per-op parameter shapes and constraints: {name} for option_get, {sql,max_rows:1000} for db_query, ah_events limits (hours<=720, limit<=2000), files_get {path,max_bytes}. This is meaningful semantics beyond the schema.

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 and resource: 'Relay a read-only forensic operation to the site through the SaaS broker,' then enumerates the concrete op families (option_get, db_query, ah_events, files_get, capabilities). An agent can distinguish this dispatcher from saas_query and get_site 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?

Explicit when/when-not routing: use probe rather than SSH for reads, use option_get for a specific option and db_query for any other DB read, and NEVER answer traffic questions from saas_query (use ah_events instead). It also mandates running capabilities before claiming a path is unreachable, with a clear rule not to assume an unverified block.

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.

Resources