Skip to main content
Glama

Sergio by Serviche

Clear old conversations in bulk

bulk_clear_conversations
Idempotent

Clears every thread older than a cutoff at once, as the inbox's bulk Clear does (owner or admin seats only): mode date clears threads quiet for olderThanDays (default 14) or since cutoff (ISO date); mode leads clears threads a lead follow-up owns. includeTasks also closes their open tasks; includeReplyOwed also clears threads the customer wrote last in (date mode). The Quo inbox follows when the business's write setting allows. Pass the same idempotency_key when retrying.

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": {
      "idempotency_key": "<idempotency_key>"
    },
    "name": "bulk_clear_conversations"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNodate
cutoffNo
includeTasksNo
olderThanDaysNo
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.
includeReplyOwedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds substantial context beyond annotations: seat-level authorization, side effects ('includeTasks also closes their open tasks'), a conditional scope rule ('includeReplyOwed... in date mode'), and an external-system propagation note ('The Quo inbox follows when the business's write setting allows') that gives meaning to openWorldHint=true. The idempotency retry instruction aligns with idempotentHint=true rather than contradicting it. What is missing is what 'clear' actually does to a thread (archive vs. permanent delete) and whether it is reversible, which is the key unknown for a bulk mutation and creates mild tension with destructiveHint=false.

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?

It is front-loaded with the action and every clause carries information, but the mode/parameter rules are crammed into a single run-on paragraph of nested parentheses that is hard to scan. Splitting the mode rules and the flag rules into separate sentences would improve retrieval without losing content.

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

Completeness3/5

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

For a bulk mutation with six parameters, low schema coverage, no output schema, and open-world side effects, the description covers parameters and permissions well. The remaining gap is outcome semantics: nothing says whether cleared threads are recoverable, whether the call reports how many threads were cleared, or what happens on partial failure when the downstream write setting forbids propagation.

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?

Schema description coverage is only 17%, so the description must compensate, and it does: it defines both enum values of mode, the default and meaning of olderThanDays, that cutoff is an ISO date used as an alternative to olderThanDays, and the effects of includeTasks and includeReplyOwed including that the latter only applies in date mode. That is meaning well beyond the bare schema types.

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?

States a specific verb and resource with scope: 'Clears every thread older than a cutoff at once, as the inbox's bulk Clear does'. The word 'bulk' plus 'every thread' makes it distinguishable from single-thread siblings like set_conversation_status or disposition_conversation. It stops short of naming an explicit sibling alternative or exclusion, so a 4 rather than 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?

Gives concrete selection criteria between the two modes: 'mode date clears threads quiet for olderThanDays (default 14) or since cutoff (ISO date); mode leads clears threads a lead follow-up owns'. It also states the eligibility prerequisite 'owner or admin seats only'. No explicit when-not-to-use guidance or pointer to the single-conversation alternative, which keeps it at 4.

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