On-page SEO audit
audit_onpage_seoUse this when the user asks for a technical or on-page SEO check of specific pages or of the top pages. Crawls a property's pages and runs a technical on-page/SEO audit per URL: HTTP status, indexability (noindex / canonicalised), title & meta-description length, H1s, word count, canonical, internal/external links, image alt coverage, structured data, Open Graph, viewport, hreflang, and a scored list of issues by severity. Pages come back worst first: by issueCount, then impressions. Pass explicit urls, or omit them to audit the top pages by Search Console impressions. URLs must belong to the property. Fetches each page live and stops after about 50 seconds: when truncated is true, the pages in notAudited were not fetched, so call again with urls set to that list to finish. Not for whether Google indexed a URL: use inspect_url.
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": {
"siteUrl": "<siteUrl>"
},
"name": "audit_onpage_seo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Explicit page URLs to audit (max 25). Omit to auto-pick top pages. | |
| maxUrls | No | How many pages to audit when auto-picking (default 10, max 25). | |
| siteUrl | Yes | ||
| minImpressions | No | When auto-picking, only consider pages with at least this many impressions (28-day). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| thenBy | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| message | No | ||
| siteUrl | No | ||
| skipped | No | ||
| summary | No | ||
| nextStep | No | ||
| ordering | No | ||
| sortedBy | No | ||
| crawlNote | No | ||
| sortOrder | No | ||
| thenOrder | No | ||
| truncated | No | ||
| budgetNote | No | ||
| dataSource | No | ||
| notAudited | No | ||
| robotsNote | No | ||
| contextNote | No | ||
| auditedCount | No | ||
| contextRange | No | ||
| emptyBecause | No | ||
| methodLimits | No | ||
| metricsUnavailable | No |