Edit a Porter report
edit_reportApply a batch of edits to a report and return the applied ops + diagnostics.
Update the report's data allowlist directly with accounts_used (each
just the account_id from list_accounts — the ref is expanded to the
full account automatically) and/or connectors_used (defaults to the
accounts' connectors). accounts_used REPLACES the whole list: pass every
account the report must keep. An entry Porter cannot resolve — such as a
native id get_report lists — refuses the whole call, nothing changed.
For structural edits pass operations — a list of
{action, ...} entries (update_file / set_theme / add_page /
update_page / remove_page); these change the report project, which
is (re)built and uploaded through the signed upload_url this call hands
back in applied_operations (POST the built zip there from your
code-execution tool; that upload is the authoritative audit gate). An
add_page op with no other change is the idiomatic way to obtain a fresh
upload_url for a rebuild. Metadata-only changes are applied inline and
need no action: an entry carrying only name / accounts_used /
connectors_used / allowed_blends is how a report is renamed
(operations=[{"name": "Q3 Costs"}]) — there is no top-level name.
params patches the report's params (the client name, logo, campaign…
it reads with useReportParams): only the keys you name change and
null deletes one — no rebuild needed.
Returns the report_id, applied_operations and diagnostics.
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": {
"report_id": "<report_id>"
},
"name": "edit_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| page_id | No | ||
| report_id | Yes | ||
| operations | No | ||
| accounts_used | No | ||
| connectors_used | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||