Skip to main content
Glama

Decide an intake card

colliedesk_intake_decide

Decide a card that waits for a person or for AI: create opens a conversation with what the customer said, as one message (optional command: one of the channel's commands that opens a request, for its tags and priority; optional subject); attach adds it to conversation_id (one of the card's candidates, so the reply goes to the same customer); ignore sets it aside, with an optional ignore_reason (colliedesk_intake_requeue takes it back). To decide as AI suggested, send its action and conversation with follows_decision_id. The same decision again changes nothing; another one once the card is decided fails with gathering_decided and how it stands. Send item_count (the card's, as you read it): at auto a customer who writes again joins their waiting card, and a decision of fewer messages than it holds fails with gathering_changed: nothing is decided, AI reads the whole card again (state deciding), and it is back in the queue with every message (state review) when AI is not sure: read it then. Opening a conversation may tell the customer it was received, so create needs messages:send.

Needs: conversations:update.

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": {
      "gathering_id": "<gathering_id>",
      "action": "<action>"
    },
    "name": "colliedesk_intake_decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
commandNo
subjectNo
item_countNoThe card's item_count as you read it; the decision is refused (gathering_changed) when the customer added messages since.
gathering_idYesFrom colliedesk_intake_list.
ignore_reasonNoWith ignore: not a request, answered in the chat, said already, or another reason.
conversation_idNoWith attach.
follows_decision_idNoThe card's suggestion.decision_id when deciding as AI suggested; its reply_kind comes with it.

Output Schema

NameRequiredDescriptionDefault
cardYesSame shape as `card` in colliedesk_intake_get's output.
itemsNo
decisionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / card / description
      Added value: +"Same shape as `card` in colliedesk_intake_get's output."
    • removedOutput schema / properties / card / properties
      Removed value: -{
      -  "ai_decision": {
      -    "description": "On a card AI decided by itself (decided_by ai): decision_id, action, target_conversation_id, confidence, runner_up_confidence, model (the one the channel asked), fallback_model (the model that answered instead when the channel's model did not, else null), created_at; its reason under untrusted_customer_content. Null for a card the rules or a person decided.",
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "channel_id": {
      -    "type": "string"
      -  },
      -  "closed_at": {
      -    "type": "string"
      -  },
      -  "contact_id": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "conversation_id": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "conversation_ref": {
      -    "description": "The code people know the conversation by (CHD-2026-0008, #12).",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "decide_by": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "decided_at": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "decided_by": {
      -    "enum": [
      -      "rules",
      -      "ai",
      -      "agent",
      -      null
      -    ],
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "decided_by_agent_id": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "fallback": {
      -    "type": "boolean"
      -  },
      -  "files": {
      -    "description": "The card's first files (at most 8): read one with colliedesk_attachment_get and gathering_id, item_id, file_index. status stored can be read; failed says why in error (for example larger than the channel accepts).",
      -    "items": {
      -      "properties": {
      -        "content_type": {
      -          "type": "string"
      -        },
      -        "error": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "file_index": {
      -          "type": "integer"
      -        },
      -        "item_id": {
      -          "type": "string"
      -        },
      -        "size": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "status": {
      -          "type": "string"
      -        },
      -        "untrusted_customer_content": {
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "item_id",
      -        "file_index",
      -        "content_type",
      -        "status",
      -        "untrusted_customer_content"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "id": {
      -    "type": "string"
      -  },
      -  "ignore_reason": {
      -    "enum": [
      -      "chat",
      -      "handled_in_chat",
      -      "duplicate",
      -      "other",
      -      null
      -    ],
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "item_count": {
      -    "type": "integer"
      -  },
      -  "opened_at": {
      -    "type": "string"
      -  },
      -  "place_kind": {
      -    "description": "A one-to-one chat or a group.",
      -    "enum": [
      -      "direct",
      -      "group",
      -      null
      -    ],
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "review_reason": {
      -    "description": "Why it waits for a person: no_command, ai_unavailable, lane_blocked (behind an earlier card of the same sender), requeued…",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "rules": {
      -    "description": "What the channel's rules decided: what applies when AI does not decide in time.",
      -    "type": "object"
      -  },
      -  "scope": {
      -    "type": "string"
      -  },
      -  "state": {
      -    "enum": [
      -      "deciding",
      -      "review",
      -      "created",
      -      "attached",
      -      "ignored",
      -      "applied",
      -      "cancelled"
      -    ],
      -    "type": "string"
      -  },
      -  "suggestion": {
      -    "description": "What AI suggested and did not do (not_applied_reason says why), unless a person decided since: action, target_conversation_id, target_status, runner_up_conversation_id, runner_up_confidence, confidence, command, reply_kind, ignore_reason; its subject, reason and the conversations' subjects under untrusted_customer_content. Follow it with colliedesk_intake_decide and follows_decision_id = its decision_id.",
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "thread_id": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "untrusted_customer_content": {
      -    "properties": {
      -      "place_name": {
      -        "description": "The group's name on the channel.",
      -        "type": "string"
      -      },
      -      "preview": {
      -        "type": "string"
      -      },
      -      "sender": {
      -        "type": "string"
      -      },
      -      "sender_name": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / card / required
      Removed value: -[
      -  "id",
      -  "channel_id",
      -  "state",
      -  "rules",
      -  "item_count",
      -  "untrusted_customer_content"
      -]
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations the description discloses a lot: the required scopes (conversations:update, plus messages:send for create because the customer may be told the message was received), the failure modes (gathering_decided with the card's current standing, gathering_changed), and the state machine (deciding, review). One tension: 'The same decision again changes nothing' reads as idempotent while idempotentHint is false — arguably the hint describes the surface call and the description describes card-level semantics, but it is not fully reconciled.

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

Conciseness3/5

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

The three actions are front-loaded and nearly every clause carries operative information, so little is wasted. However, it is delivered as one long run-on paragraph of semicolon- and parenthetical-linked clauses, which makes the per-action parameter rules and the failure-mode rules hard to scan at a glance.

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 mutation tool with 8 parameters, an output schema, and real concurrency and state semantics, the description covers permissions, error codes, the optimistic-concurrency contract, the recovery path after gathering_changed, and the AI-suggestion path. Nothing an agent needs in order to call it correctly and interpret a failure appears to be 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?

At 63% schema coverage the description does real work: command is constrained to one of the channel's commands that opens a request and is used for tags and priority, subject is optional, conversation_id must be one of the card's candidates, ignore_reason carries four meanings, and item_count is framed as the card's count as read, with the concurrency consequence spelled out. It effectively documents which parameters pair with which action, which the flat schema cannot express.

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 definition names a specific verb+resource (decide an intake card) and immediately enumerates the three possible decisions and their distinct effects: create opens a conversation with the customer's message, attach adds the card to one of its candidate conversations, ignore sets it aside. It also distinguishes itself from the sibling that reverses it (colliedesk_intake_requeue takes an ignored card back), so an agent can place it without opening either 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?

Usage is spelled out per branch: use attach with a conversation_id drawn from the card's candidates so the reply reaches the same customer; use create when a new conversation is warranted; use ignore with a reason when it is not a request. It also tells the agent how to accept an AI suggestion (follows_decision_id with its action and conversation) and what to do when the card comes back in state review — 'read it then'. Alternatives and conditions are explicit rather than implied.

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