Skip to main content
Glama

clear_chat_history

Delete local chat history files to manage storage and privacy by removing client-side session data while preserving server-side records.

Instructions

Delete the local history file for a chat session.

Only removes the client-side JSON file. Server-side stored responses are untouched.

Args:
    session: Session name whose `chats/{session}.json` file should be deleted.

Returns:
    Confirmation string or a not-found message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionNodefault
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly explains the scope of deletion (client-side only vs. server-side), which is crucial context for a destructive operation. It also mentions the return value format, though it doesn't cover error conditions or permissions required.

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?

The description is perfectly structured with three focused sentences: purpose statement, important limitation, and parameter/return documentation. Every sentence earns its place, and key information is front-loaded. No wasted words.

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 destructive tool with no annotations and no output schema, the description does an excellent job covering the essential context: what gets deleted, what doesn't, parameter meaning, and return format. The only minor gap is lack of explicit error handling or permission requirements, but it's largely complete for its complexity.

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?

With 0% schema description coverage for the single parameter, the description fully compensates by explaining the 'session' parameter's purpose ('Session name whose `chats/{session}.json` file should be deleted'), including the file path format. This adds essential meaning beyond what the bare schema provides.

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 description clearly states the specific action ('Delete the local history file') and resource ('for a chat session'), distinguishing it from sibling tools like 'delete_file' (general file deletion) and 'get_chat_history' (read-only access). The verb 'delete' is precise and unambiguous.

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?

The description provides clear context about when to use this tool ('Only removes the client-side JSON file. Server-side stored responses are untouched'), helping differentiate it from server-side deletion operations. However, it doesn't explicitly mention when NOT to use it or name specific alternatives among the sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/merterbak/Grok-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server