Skip to main content
Glama

Ask Colliedesk AI for a reply draft

colliedesk_ai_draft_create

Ask the workspace's AI provider for a draft of a reply to a conversation, with an optional prompt (what the reply should say). It is written in the background from the conversation (never its private notes), matching knowledge base articles and similar solved tickets; poll colliedesk_ai_draft_get with wait. The draft is never sent: a person (or colliedesk_reply_send with ai_draft_id) sends a reply. Fails with ai_feature_off when reply drafts are off, ai_allowance_reached when the included AI is used up.

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>"
    },
    "name": "colliedesk_ai_draft_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNo
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

A4.9/5.0
Behavior5/5

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

Goes well past the annotations: discloses that generation is asynchronous and requires polling, that the source material is the conversation plus KB articles and solved tickets but never private notes, that nothing is sent automatically, and it names two specific error codes and the required permission (ai_assist:create). The annotations' readOnlyHint=false and destructiveHint=false are consistent with a create-a-draft-but-never-send tool.

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?

Front-loads the purpose, then mechanism, safety, failure modes and permission in tightly packed sentences with no filler. The parenthetical on private notes and the sibling callouts each add decision-relevant information.

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?

Covers everything an agent needs despite only 2 parameters: async behavior, how to retrieve the result, the fact that it is not a send, error codes, and the required permission. Return values need no explanation because an output schema exists.

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 coverage is 0%, so the description carries the burden; it explains that prompt means 'what the reply should say' and implies conversation_id identifies the conversation being replied to. conversation_id itself gets no explicit statement of format or where to obtain it, which is the only real gap.

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?

Names a specific verb and resource ('Ask ... for a draft of a reply to a conversation') and scopes the optional prompt inline. It explicitly separates itself from colliedesk_ai_draft_get (polling) and colliedesk_reply_send (sending), so an agent can route without opening any schema.

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?

States the full workflow: generation happens in the background, poll colliedesk_ai_draft_get with wait, and the draft is never sent until a person or colliedesk_reply_send with ai_draft_id acts. Failure conditions (ai_feature_off, ai_allowance_reached) tell the agent when this tool will not work at all.

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