Skip to main content
Glama

clear_conversation

Clears a specific conversation history by conversation ID, removing stored context for that conversation.

Instructions

Clear a specific conversation history

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": {
      "conversationId": "<conversationId>"
    },
    "name": "clear_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
conversationIdYesThe conversation ID to clear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not disclose whether clearing is permanent/destructive, whether messages are archived or lost, what permissions are required, or what happens to the conversation record afterward — all critical for a likely-destructive operation.

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?

One short, front-loaded sentence with no redundant wording. Its brevity reflects under-specification rather than waste, but the sentence itself is efficient.

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

Completeness2/5

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

For a mutation-style tool with no annotations, no output schema, and no disclosure of effects or reversibility, the definition is too thin. An agent cannot predict the outcome of clearing a conversation or whether the action can be undone.

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?

The single conversationId parameter has 100% schema description coverage ('The conversation ID to clear'), so the schema already documents it. The description adds no format, sourcing, or validation detail beyond what the schema provides; baseline 3 applies.

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

Purpose3/5

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

States a verb+resource ('Clear a specific conversation history'), so the agent knows the target object. However, 'clear' is ambiguous — it could mean deleting the conversation, resetting its messages, or truncating history — and nothing distinguishes it from siblings like get_conversation or list_conversations beyond the verb.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no preconditions, and no alternatives named. The agent is not told when clearing is appropriate versus simply reading (get_conversation) or listing (list_conversations) conversations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.