Manage a custom domain for Porter reports
manage_report_domainServe hosted reports under the client's OWN domain (e.g.
reports.example.com) with their brand, instead of
report.portermetrics.com. Owner of the workspace + paid plan required.
A domain is PER REPORT: it serves only the reports you assign to it — the
ROOT report at https://hostname/ (no id in the URL) and the other assigned
reports at https://hostname/<report_id>; query params such as ?page=
keep working. Unassigned reports of the workspace 404 under the domain and
stay on report.portermetrics.com. A report belongs to at most one domain
(assigning it elsewhere moves it). Exception: the workspace's DEFAULT domain
(use_for_all_reports, the first one connected) serves every report not
assigned to another domain. One subdomain per end client
(clienta.example.com) is simply another connect. There are no
custom paths/subfolders.
action:
list— every connected domain, its status, DNS records still pending,root_report_id, the assignedreport_idsandroot_url. Also says whether this workspace iseligibleand the calleris_owner.connect— registerhostname(a domain the client owns; not a Porter/Google domain, not an IP). Returns the DNS records the client must create (a CNAME/A record and a TXT verification record) asdns_recordsand a paste-readynext_step. Optionalbrand_nameis the name shown in the browser tab instead of "Porter".verify— check the client's DNS and, once it resolves to Porter, issue the TLS certificate. Status moves PENDING_DNS → PROVISIONING → ACTIVE (or FAILED with a readable reason). Call it again to poll; certificates can take up to an hour after DNS propagates.update— change thebrand_nameofhostnameand/or setuse_for_all_reports(true makes it the workspace's default domain — only one can be; false switches it off).set_root_report— assignreport_idtohostnameAND show it athttps://hostname/(emptyreport_idclears the root; the report stays assigned at/<report_id>).add_report— assignreport_idtohostname(served athttps://hostname/<report_id>). Assigning a report to a non-default domain switches the default domain'suse_for_all_reportsoff (the reports it was serving stay assigned to it, so no link breaks).remove_report— takereport_idoffhostname(back to the report.portermetrics.com link only).disconnect— remove the domain (its certificate is revoked; links under it stop working; report.portermetrics.com links keep working).
Logo: prepare_upload(purpose='domain_logo', hostname=…, path='logo.png') then
POST the image bytes; it becomes the browser-tab icon and sign-in image of the
domain. update with brand_name sets the name shown next to it.
For reports assigned to an ACTIVE domain, get_report/list_reports return
the branded url, and PDF exports and scheduled emails use it too. The hub's
AI Reports → Custom domain modal (and each report's "…" menu) manages the same
settings.
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": {
"action": "<action>"
},
"name": "manage_report_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| hostname | No | ||
| report_id | No | ||
| brand_name | No | ||
| use_for_all_reports | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||