Profile a page (Query Monitor style)
profile_urlProfile a WordPress front-end URL to expose its template, database queries, scripts, HTTP calls, errors, and memory usage without affecting other visitors.
Instructions
Profile how WordPress builds one front-end URL, like Query Monitor but over MCP: which template renders it, every database query (count, total time, slowest with caller and plugin/theme attribution, duplicates), printed scripts/styles, outbound HTTP calls, PHP warnings/notices, conditional tags, memory and timing, plus headline findings. Uses a single-use token so only this one request is instrumented; ordinary visitors are unaffected. Profiles as an anonymous visitor by default. Needs the companion plugin.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "profile_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Path or full URL on the site, e.g. "/about/" or "/?p=12". | / |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| sections | No | What to collect. Default: everything except "hooks" (counting every hook fired slows the request; ask for it explicitly). | |
| as_logged_in | No | Profile the page as the authenticated administrator (admin bar, logged-in queries) instead of as an anonymous visitor. The plugin switches the user for that request itself; no credentials are sent to the front end. | |
| slow_query_ms | No | Queries at or above this many milliseconds are listed as slow. |