Skip to main content
Glama

Delete a chat flow

delete_flow
DestructiveIdempotent

Delete a chat flow and its run history. Cannot be undone; nothing is cancelled or sent. Refused while an entry point (an ice breaker or menu item) still starts the flow — the answer names it. Prefer set_flow_active false unless the user wants it gone. Also needs the organization's "Allow deleting via remote MCP" setting (else 403 MCP_DELETE_DISABLED). Writing also needs chat enabled for the organization and an ADMIN or OWNER role in it, and a new flow counts against the plan's flow limit (403 CHAT_FLOW_LIMIT_REACHED) — the same refusals a person gets in the app. Needs the organization's "Let AI assistants create and edit chat flows" setting (mcpFlowsEnabled; only the organization's OWNER can switch it on, in Settings → Organization → General → AI Assistants; without it the api answers 403 MCP_FLOWS_DISABLED) and a connection authorized with the flows permissions — one authorized before they existed must remove PostRite from the assistant and add it again.

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": {
      "flowId": "<flowId>"
    },
    "name": "delete_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowIdYesThe flow's ID (from list_flows)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
flowIdNo
deletedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructive and read/write annotations, it discloses irreversibility, run-history deletion, the absence of cancellation or sending side effects, entry-point refusal behavior, and specific authorization prerequisites and 403 error codes. These details help the agent anticipate failures and explain remediation without conflicting with the annotations.

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

Conciseness2/5

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

The critical deletion warning and alternative are front-loaded, but the single dense paragraph then accumulates generic write prerequisites, UI navigation, reauthorization steps, and an irrelevant statement about a new flow's plan limit. Much of this material belongs in shared setup documentation or creation-tool guidance, so not every sentence earns its place.

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 a destructive two-parameter operation, the definition covers permanent scope, a safer alternative, domain-specific refusal conditions, authorization and settings prerequisites, and concrete error codes. The schema fully documents the inputs and an output schema exists, so additional return-value documentation is unnecessary.

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

Parameters3/5

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

Both parameters are fully documented in the schema, including the source of `flowId` and the conditional requirement for `organizationId`, so the high-coverage baseline applies. The description adds no parameter syntax, selection, or interaction guidance beyond that structured coverage.

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 specifies the action, resource, and additional scope: deleting a chat flow together with its run history. Preferring `set_flow_active false` unless permanent removal is wanted also clearly distinguishes this tool from the deactivation sibling.

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

Usage Guidelines5/5

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

It gives an explicit when-not-to-use alternative: use `set_flow_active false` unless the user wants the flow gone. It also identifies a concrete invocation blocker, explaining that deletion is refused while an ice breaker or menu item still starts the flow.

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