Skip to main content
Glama

Manage a custom domain for Porter reports

manage_report_domain
Destructive

Serve 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 assigned report_ids and root_url. Also says whether this workspace is eligible and the caller is_owner.

  • connect — register hostname (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) as dns_records and a paste-ready next_step. Optional brand_name is 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 the brand_name of hostname and/or set use_for_all_reports (true makes it the workspace's default domain — only one can be; false switches it off).

  • set_root_report — assign report_id to hostname AND show it at https://hostname/ (empty report_id clears the root; the report stays assigned at /<report_id>).

  • add_report — assign report_id to hostname (served at https://hostname/<report_id>). Assigning a report to a non-default domain switches the default domain's use_for_all_reports off (the reports it was serving stay assigned to it, so no link breaks).

  • remove_report — take report_id off hostname (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

NameRequiredDescriptionDefault
actionYes
hostnameNo
report_idNo
brand_nameNo
use_for_all_reportsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true and openWorldHint=true, yet the description adds substantial operational context: disconnect revokes the certificate and breaks all links under the domain while report.portermetrics.com links keep working; unassigned reports 404 under the domain; assigning a report elsewhere silently moves it off its current domain; add_report quietly switches the default domain's use_for_all_reports off. Status transitions (PENDING_DNS → PROVISIONING → ACTIVE/FAILED) are also disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Long but dense and well-organized: a front-loaded concept paragraph, then per-action bullets with consistent dash formatting, then secondary topics (logo, URL propagation, UI location). A few clauses restate the same routing rule (assigned vs unassigned URL handling) more than once, but nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-action mutation tool with no enum and zero schema coverage, the description covers prerequisites, per-action effects, side effects, and state transitions. An output schema exists, so the extra description of dns_records, next_step and status fields is bonus rather than requirement, and cross-tool effects on get_report/list_reports/PDF exports are noted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and action has no enum, so the description carries the full burden — and it does. Every action is enumerated with the parameters it consumes, and the semantics of the non-obvious ones are given: empty report_id clears the root but leaves the report assigned, use_for_all_reports makes this the sole workspace default, brand_name controls the browser-tab name instead of 'Porter'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource — serving hosted reports under the client's own domain instead of report.portermetrics.com — and names the exact actor and prerequisite (workspace owner + paid plan). The per-action breakdown (list/connect/verify/update/set_root_report/add_report/remove_report/disconnect) makes clear this is a domain-management tool, not a report or account tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is spelled out at the action level with triggering conditions: call verify again to poll, certificates may take up to an hour after DNS propagates, empty report_id clears the root, one subdomain per client is just another connect. It also routes to a sibling explicitly — prepare_upload(purpose='domain_logo', ...) for logos. What it lacks is any statement of when to use list first versus acting blind, but the guidance is otherwise strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources