Skip to main content
Glama

Discard an AI reply draft

colliedesk_ai_draft_discard
Idempotent

Stop an AI draft still being written, or discard a ready one. Nothing reaches the customer either way; a new draft can be asked for.

Needs: ai_assist:create.

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": {
      "conversation_id": "<conversation_id>",
      "draft_id": "<draft_id>"
    },
    "name": "colliedesk_ai_draft_discard"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYesFrom colliedesk_ai_draft_create, colliedesk_reply_draft or colliedesk_ai_drafts_list.
conversation_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / description
      Added value: +"Same shape as colliedesk_ai_draft_get's output."
    • removedOutput schema / properties
      Removed value: -{
      -  "draft": {
      -    "properties": {
      -      "cc": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "conversation_id": {
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "type": "string"
      -      },
      -      "decided_by_name": {
      -        "description": "Who sent, discarded or replaced it.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "error_code": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "files": {
      -        "description": "Files left with the draft; only the team sees them until a person sends it. Read one with colliedesk_attachment_get (attachment_id, conversation_id, draft_id).",
      -        "items": {
      -          "properties": {
      -            "content_type": {
      -              "type": "string"
      -            },
      -            "filename": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "size": {
      -              "description": "Bytes.",
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "filename",
      -            "size"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "missing_info": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "outcome": {
      -        "description": "Null while it waits for a person; superseded, expired and discarded written drafts can come back with colliedesk_reply_draft_restore.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "prompt": {
      -        "type": "string"
      -      },
      -      "ready_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "restored_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "similarity": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "source": {
      -        "description": "ai: written by the built-in AI; written: left by a token or a person (colliedesk_reply_draft).",
      -        "enum": [
      -          "ai",
      -          "written"
      -        ],
      -        "type": "string"
      -      },
      -      "sources": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "enum": [
      -          "queued",
      -          "running",
      -          "ready",
      -          "failed",
      -          "cancelled"
      -        ],
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "The draft, plain text, once ready. Generated text, not something a customer wrote.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "warnings": {
      -        "description": "An address, a number or another customer's name in the draft that the conversation does not hold.",
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "written_by": {
      -        "description": "Who left a written draft.",
      -        "properties": {
      -          "agent_name": {
      -            "type": "string"
      -          },
      -          "token_label": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "conversation_id",
      -      "status"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "draft"
      -]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and idempotentHint=true, but the description adds the genuinely useful reason: 'Nothing reaches the customer either way,' which explains why a discard is not destructive and reassures the agent about customer-visible side effects. It also surfaces the authorization requirement ('Needs: ai_assist:create'), which annotations do not carry. Repeat-call behavior is only implied, not stated.

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

Conciseness5/5

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

Three short sentences with the primary action front-loaded, the customer-impact reassurance second, and the permission requirement last. No redundant restatement of the title and no filler.

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 two-parameter terminal action with an output schema and full annotation coverage, the description supplies everything that isn't structured elsewhere: what the two draft states mean, the absence of customer-visible effects, and the required scope. The only gap is conversation_id semantics, which is minor given the otherwise complete picture.

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

Parameters2/5

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

With schema coverage at 50%, the description needs to compensate and does not: it says nothing about either parameter. The schema documents draft_id (including where to obtain it) but leaves conversation_id entirely undescribed in both places, so the agent must infer why the conversation identifier is required alongside the draft.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb pair ('Stop' / 'discard') applied to a specific resource ('AI draft'), and distinguishes the two lifecycle states the tool handles (still being written vs. ready). It does not explicitly distinguish itself from neighbors like colliedesk_ai_drafts_list or colliedesk_ai_draft_get, so it stops short of a 5.

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?

'Stop an AI draft still being written, or discard a ready one' gives clear when-to-use context for the two applicable states, and 'a new draft can be asked for' hints at the recreate-instead-of-keep path. It never names the alternative tool to call instead (e.g. create or list), and gives no explicit when-not-to-use condition.

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