Weekly Site Audits
project_site_audit_scheduleReads, turns on (or changes) and turns off a project's weekly site audits, the dashboard's Site audits "Weekly audit" panel. action get (the default) answers the schedule: next_run_at, the settings, and the last run (last_audit_id, or last_error saying why it did not start, for example not enough credits). action on saves it with seed_url (the page the audit starts from; default the project's main site's home page), max_pages (default 100) and check_external_links (also check up to 100 links to other sites, no extra credits); the first run is a week after the project's latest audit, or straight away when there was none in the last week, then every 7 days. Saving again replaces the settings. action off stops it: nothing more runs or is charged, and audits already made are kept. action now starts one audit straight away (the dashboard's "Start audit"), with the same seed_url, max_pages and check_external_links, whether or not weekly audits are on; the answer carries audit (status started with audit_id) and the schedule. A refused start (for example not enough credits) is an error and costs nothing. Once an audit is started the answer is never an error: if the schedule cannot be read just then, weekly_audits and schedule are null; if the audit service does not answer the start, audit status is unconfirmed (it may have started): check project_site_audits_list before starting another. Free to read and to turn on or off: turning it on spends nothing at once; each weekly run, and an audit action now starts, costs 1 credit per page audited, up to max_pages, and a run that cannot be paid for is not started and says so on the schedule. Needs a workspace editor to change it. Read the audits it makes with project_site_audits_list and project_site_audit_get.
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": {
"project_id": "<project_id>"
},
"name": "project_site_audit_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | get reads the schedule, on turns weekly audits on (or changes them), off turns them off, now starts one audit straight away. | get |
| seed_url | No | Optional, action on or now: the http(s) page the audit starts from. Default: the home page of the project's main site. | |
| max_pages | No | Optional, action on or now: the most pages each audit reads, and so the most credits it costs. | |
| verbosity | No | concise: short summary of the answer; full: the whole answer. Only shapes the output. | |
| project_id | Yes | Project ID, as listed by projects_list; it must belong to the authenticated organization. | |
| idempotency_key | No | Optional and ignored: a key does not make a repeated call safe. get, on and off never charge; each action now call starts, and charges for, a new audit, so check project_site_audits_list before repeating one. | |
| check_external_links | No | Optional, action on or now: also check up to 100 links to other sites and list the broken ones. No extra credits. |