saas_query
Read-only SQL against Site Doctor's OWN database: why a job failed, whether a report was opened, seats per organization, run history. This is the platform's data — use "probe" with db_query for a monitored site's WordPress database instead. CAUTION about sd_logevents: it holds only the SIGNAL (errors + sensitive writes) — successful traffic is filtered out on ingest, so it is useless for "how much traffic / which pages" questions; the full access log lives on each site and is read with probe op "ah_events". Superadmin only. Name the columns you want: SELECT * is refused, because it would return columns you did not ask for. Session and API tokens live in this database, so credential tables and columns cannot be named at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One SELECT/WITH/SHOW/DESCRIBE statement, no semicolon. | |
| max_rows | No | default 200, max 1000 |