Skip to main content
Glama

Start a new chat with an agent

clear_context
DestructiveIdempotent

Clears an agent's conversation history to start a fresh provider session on the next turn, while keeping instructions, model, tools, memories, and workspace intact.

Instructions

Same as New chat: the agent forgets the conversation and its next turn starts a fresh provider session. Instructions, model, tools, memories and workspace stay. 409 while the agent works or has queued messages — wait and retry.

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": {
      "agent": "<agent>"
    },
    "name": "clear_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesAgent ID or agent name (case-insensitive), as list_agents shows it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is declared. The description genuinely adds to that by scoping the destruction — the conversation is forgotten while instructions, model, tools, memories and workspace persist — and by disclosing the 409 concurrency failure mode with retry advice. It stops short of stating that lost conversation history is unrecoverable or what a successful call returns.

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?

Two tight sentences: the effect and what is preserved come first, then the failure/retry condition. Nothing is padded, and there is no restatement of the title or the schema.

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 one-parameter tool with a fully documented schema, annotations covering destructiveness and idempotency, and no output schema, the description supplies the behavioral picture an agent needs. The only gap is that it says nothing about what a successful invocation returns or confirms.

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 a single parameter with 100% schema description coverage, including the case-insensitive ID-or-name rule and the list_agents reference. The description adds nothing about the agent argument, which is acceptable given the schema already carries the semantics, 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 the operation concretely: the agent forgets the conversation and its next turn opens a fresh provider session, framed as equivalent to 'New chat'. That is a specific, unambiguous purpose an agent can act on, though the verb is implicit rather than a crisp imperative like 'clears conversation history', and no sibling is named for contrast.

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

Usage Guidelines3/5

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

Operational guidance is present and practical: a 409 is returned while the agent is working or has queued messages, and the caller should wait and retry. However, there is no explicit when-to-use or when-not-to-use versus the other siblings (e.g., send_message or create_agent), so the usage boundary is only implied by the described effect.

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