Skip to main content
Glama

Delete a pipeline

delete_pipeline
Destructive

Delete a pipeline and its stages. Only allowed when nothing would be lost: it is not the default (make another one the default first), it has no deals, no automation rule moves deals into it, and no website form files deals into it. Each refusal says which of these to resolve. This permanently deletes data and cannot be undone. Without confirm, nothing is deleted and the result shows what would be deleted.

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": {
      "pipeline_id": "<pipeline_id>"
    },
    "name": "delete_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNotrue performs the deletion. Without it nothing is deleted, and the result is a summary of exactly what would be destroyed.
pipeline_idYesThe pipeline to delete, as returned by list_pipeline_stages

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true to actually perform this. Call once WITHOUT it to receive a summary of exactly what will be destroyed, show that summary to the user, and only then call again with true."New value: +"true performs the deletion. Without it nothing is deleted, and the result is a summary of exactly what would be destroyed."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the 'destructive' annotation, the description is highly transparent. It details the irreversible nature of the action, the mandatory confirmation step, and the specific 'dry-run' behavior when 'confirm' is false.

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?

While highly detailed, the length is justified by the critical safety information being conveyed. The structure is logical, moving from the primary action to safety constraints, and then to execution mechanics.

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?

Given the complexity of a destructive operation that depends on external system state (deals, rules, forms), the definition is exceptionally complete, leaving no critical information regarding risk or prerequisite management missing.

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?

The description provides crucial semantic meaning to the 'confirm' parameter by explaining that setting it to false results in a summary of destroyed data rather than an error, defining the dual function of the tool.

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 description clearly states the action—'Delete a pipeline and its stages'—and distinguishes it from stage-specific deletion by explicitly mentioning the comprehensive nature of the removal.

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 provides exhaustive guidelines on when the tool is safe to use, listing several mandatory preconditions (no deals, no automations, no forms). This proactive safety checking is the primary value of the description.

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