Skip to main content
Glama

finance

Agent Chat: Delete agent chat session

delete_agent_chat_session
Destructive
    Delete one of the user's AI assistant chat sessions, including
    every message in it.

    This is irreversible — the cron-driven 90-day retention sweep
    does the same thing for old sessions, but this tool is for users
    who want to clear a session immediately (e.g. they shared
    context they no longer want stored). The persistent main
    conversation thread can't be deleted.

    Args:
        session_id: The chat session's ID.

    Returns:
        ``{"success": True, "deleted_session_id": ..., "deleted_messages": N}``
        or ``{"error": "..."}``.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond annotations: declares irreversibility, describes the retention-sweep relationship, notes the main thread exemption, and documents the return shape (success, deleted_session_id, deleted_messages) and error form. Annotations already flag destructive, but the description adds the specifics an agent needs before committing an irreversible action.

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?

Front-loads the action and irreversibility warning, then rationale, exclusion, args and returns. Structured with clear sections; slightly verbose with the retention-sweep aside but every part informs the agent's decision.

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

Completeness5/5

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

For a single-param destructive tool with no output schema, the description covers purpose, irreversibility, exclusions, the parameter, and the exact return payload. Nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate; it documents the sole parameter session_id as 'The chat session's ID' and clarifies the return includes deleted_messages count. Minor gap: does not state the type is an integer or how to obtain the ID, but adds enough meaning.

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?

States a specific verb (delete) and resource (agent chat session) with clear scope: 'including every message in it.' Distinguishes the target from the sibling get_agent_chat_session and list_agent_chat_sessions, and explicitly notes what cannot be deleted (the persistent main conversation thread).

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?

Explains when to use it (users clearing a session immediately, e.g. shared context no longer wanted) and contrasts with the automatic 90-day retention sweep, plus an exclusion (main thread cannot be deleted). Clear context but no explicit named alternative sibling; strong but not exhaustive of when-not scenarios.

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