Skip to main content
Glama

Put an intake card back

colliedesk_intake_requeue
Idempotent

Take a card that was set aside (by a person, AI or the rules) back to the queue; its decisions stay in its history. A card in the queue already is left as it is; one opened or joined fails with gathering_decided.

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

Input Schema

NameRequiredDescriptionDefault
gathering_idYesFrom colliedesk_intake_list.

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_intake_get's output."
    • removedOutput schema / properties
      Removed value: -{
      -  "candidates": {
      -    "description": "Where the card may be added without the reply going to someone else, the rules' target first; empty once decided.",
      -    "items": {
      -      "properties": {
      -        "channel_id": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "contact_id": {
      -          "type": "string"
      -        },
      -        "conversation_id": {
      -          "type": "string"
      -        },
      -        "resolved": {
      -          "description": "Joining it reopens it.",
      -          "type": "boolean"
      -        },
      -        "status": {
      -          "type": "string"
      -        },
      -        "untrusted_customer_content": {
      -          "properties": {
      -            "contact_name": {
      -              "type": "string"
      -            },
      -            "subject": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "updated_at": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "conversation_id",
      -        "status",
      -        "resolved",
      -        "untrusted_customer_content"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "card": {
      -    "properties": {
      -      "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"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "channel_id",
      -      "state",
      -      "rules",
      -      "item_count",
      -      "untrusted_customer_content"
      -    ],
      -    "type": "object"
      -  },
      -  "commands": {
      -    "description": "The channel's commands that open a request, for create.",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "decisions": {
      -    "items": {
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "items": {
      -    "items": {
      -      "properties": {
      -        "agent_id": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "body": {
      -          "description": "What the team or the channel said; a customer's words are under untrusted_customer_content.",
      -          "type": "string"
      -        },
      -        "contact_id": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "direction": {
      -          "enum": [
      -            "in",
      -            "out"
      -          ],
      -          "type": "string"
      -        },
      -        "disposition": {
      -          "enum": [
      -            "unresolved",
      -            "gathering",
      -            "conversation",
      -            "pending_review",
      -            "not_request",
      -            "staff",
      -            "bot",
      -            "archived"
      -          ],
      -          "type": "string"
      -        },
      -        "disposition_reason": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "id": {
      -          "type": "string"
      -        },
      -        "is_other_customer": {
      -          "description": "A customer who is not the conversation's (a group).",
      -          "type": "boolean"
      -        },
      -        "link_reason": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "linked": {
      -          "type": "boolean"
      -        },
      -        "message_id": {
      -          "description": "The conversation message it became, read with colliedesk_conversation_get.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "occurred_at": {
      -          "type": "string"
      -        },
      -        "role": {
      -          "enum": [
      -            "customer",
      -            "staff",
      -            "bot"
      -          ],
      -          "type": "string"
      -        },
      -        "thread_id": {
      -          "type": "string"
      -        },
      -        "untrusted_customer_content": {
      -          "properties": {
      -            "body": {
      -              "type": "string"
      -            },
      -            "files": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "quote_external_id": {
      -              "type": "string"
      -            },
      -            "sender": {
      -              "type": "string"
      -            },
      -            "sender_name": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "id",
      -        "thread_id",
      -        "direction",
      -        "role",
      -        "disposition",
      -        "occurred_at",
      -        "untrusted_customer_content"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "card",
      -  "items",
      -  "decisions",
      -  "candidates",
      -  "commands"
      -]
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that prior decisions are preserved in history, that the operation is a no-op for already-queued cards, that opened/joined cards return the specific error gathering_decided, and that the conversations:update scope is required. Those are exactly the mutation side effects and failure modes an agent needs and none are derivable from the annotations alone.

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?

Two compact sentences plus a short permission note, with the primary action front-loaded ahead of the edge cases. The clause 'A card in the queue already is left as it is' is awkwardly worded and could be tightened, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter mutation with full annotations and an output schema, the description supplies the behavioral and failure-mode context that structured fields cannot. The only gap is a precise definition of what 'set aside' means in state terms, which an agent must infer.

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?

There is one required parameter at 100% schema description coverage, and the schema already tells the agent to source the ID from colliedesk_intake_list. The description adds no further meaning about the identifier, so the baseline of 3 applies.

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 states a specific verb and resource: returning a set-aside card back to the queue, with the source of the set-aside (person, AI, rules) called out. It clearly distinguishes the reverse operation from a forward decision by noting decisions remain in the history. It stops short of naming a sibling such as colliedesk_intake_decide as the counterpart, which would have made the differentiation explicit.

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?

Usage preconditions are stated concretely: only cards that were set aside are eligible, cards already queued are no-ops, and cards that were opened or joined fail. That is a usable when/when-not guide for the agent. No named alternatives are offered for cases where requeue is not the right move.

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