Skip to main content
Glama

Edit a Porter report

edit_report
Destructive

Apply 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

NameRequiredDescriptionDefault
paramsNo
page_idNo
report_idYes
operationsNo
accounts_usedNo
connectors_usedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructive and openWorld annotations, it discloses non-obvious behavior: accounts_used replaces the whole allowlist, unresolved entries refuse the entire call with nothing changed, structural edits require a rebuild and upload through the signed upload_url, and params null deletes keys. These details materially inform safe invocation.

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?

The description is front-loaded with the core action and return values, and most sentences add useful semantics. It is dense and somewhat long with nested parentheticals, but the complexity of the edit modes justifies most of the length.

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

Completeness4/5

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

The output schema exists and annotations already carry the safety profile, so the description focuses appropriately on invocation behavior. For a six-parameter destructive tool with no schema descriptions, it is largely complete, though page_id and detailed operation-entry fields are still underspecified.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It explains accounts_used, connectors_used, operations, and params well, including replacement and merge semantics, but it does not explain page_id and only partially describes fields inside operation entries.

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?

It states a specific verb and resource: apply a batch of edits to a report and return applied ops plus diagnostics. It also distinguishes metadata changes, params patches, and structural operations, so an agent can tell what this tool does without opening the schema.

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?

The description clearly explains when to use structural operations versus metadata-only edits versus params patches, and calls out the idiomatic add_page-only call for obtaining a fresh upload_url. It lacks explicit when-not guidance or direct comparison to sibling edit tools, but the mode-selection guidance is 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