Check custom domain DNS
check_domainRun an on-demand DNS check for a custom domain to view its status, DNS records, and any problem to fix; repeat only after DNS changes.
Instructions
Run a DNS check of a custom domain now and return its status, problem and DNS records. One check after the DNS records exist is enough: BrewPage keeps checking on its own (nextCheckAt) and reading the status needs no check; another check fits only after a DNS change. Status: pending_dns (DNS records not seen yet), verifying (DNS records found, HTTPS being issued), active (live), lost (DNS records broke after going live; still served until graceEndsAt; restored records and one more check bring it back). problem names the fix. Addressed by publication (type, namespace, id; a profile token or an owner token added to the profile) or by hostname (an admin profile token). A repeat within seconds answers 429 with Retry-After.
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": "check_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Publication ID | |
| type | No | Publication type; with namespace and id, instead of hostname | |
| hostname | No | Custom domain as a bare hostname, e.g. www.example.com; instead of type, namespace and id | |
| namespace | No | Publication namespace | |
| ownerToken | No | By publication: a profile token or an owner token added to the profile. By hostname: an admin profile token. Default: env BREWPAGE_OWNER_TOKEN (local server only). |