Create a Porter report
create_reportCreate a hosted Porter report and get the build instructions to author it.
This is the SLOW path (you build a bundle and upload it: minutes). A NEW
report over the user's accounts goes the fast way: draft_report_spec →
publish_report_spec(draft_id=…, patch=[…]), live in about a minute with
any theme, the free layout, viz nodes for any chart and custom sections.
Use this tool only for what the spec cannot express, or a self-contained
report (below).
A report is a full front-end project you build against a data simulator and
ship. Provide a name — it is the only human label Porter stores, so put
the identifying text there. description is NOT persisted (the result
says so in warnings). Optionally a template (the
starter to build from), and the report's data allowlist —
accounts_used (the accounts its charts may query, each just the
account_id from list_accounts — the ref is expanded to the full
account automatically) and connectors_used (defaults to the accounts'
connectors). These may be passed top-level or nested inside pages —
both are honored. Returns the new report_id, its public url, and
edit_hints — the authoring brief and build/upload instructions to fill
the report with charts (then finalize with edit_report).
Omit both when the report is SELF-CONTAINED — its data was gathered while building and is frozen into the bundle, so it queries nothing when viewed (e.g. a competitor teardown built from public sources, which has no Porter account behind it).
Sharing: a report is born PRIVATE to its owner. When it is built for a team
or a client, share it here instead of with a later share_report call —
share_with_domain=True opens it to everyone signed in with the owner's
email domain (refused for public providers such as gmail.com), and
allowed_emails names people one by one.
params stores the values that name ONE client — its name, logo,
campaign, budgets — on the report instead of in the build. The report reads
them with useReportParams(defaults), so duplicate_report can later
make the same report for another client without a rebuild. Anyone who can
open the report can read them, so nothing its viewers should not see.
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": {
"name": "<name>"
},
"name": "create_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| pages | No | ||
| params | No | ||
| template | No | ||
| description | No | ||
| accounts_used | No | ||
| allowed_emails | No | ||
| connectors_used | No | ||
| share_with_domain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||