Skip to main content
Glama

kiro_history_clear

Clear conversation history for a session to manage session data and maintain privacy in the Kiro CLI MCP Server environment.

Instructions

Clear conversation history for a session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNoOptional session ID

Implementation Reference

  • Executes the kiro_history_clear tool by retrieving the session and calling clear_history() on it.
    async def _handle_history_clear(
        session_manager: SessionManager,
        arguments: dict[str, Any]
    ) -> dict[str, Any]:
        """Handle kiro_history_clear tool call."""
        session_id = arguments.get("session_id")
    
        session = await session_manager.get_or_create_session(session_id)
        session.clear_history()
    
        return {
            "success": True,
            "session_id": session.id,
        }
  • Tool schema definition including name, description, and inputSchema for kiro_history_clear.
    {
        "name": "kiro_history_clear",
        "description": "Clear conversation history for a session",
        "inputSchema": {
            "type": "object",
            "properties": {
                "session_id": {
                    "type": "string",
                    "description": "Optional session ID"
                }
            }
        }
    },
  • Registers the tool handler by dispatching to _handle_history_clear in the main call_tool handler.
    elif name == "kiro_history_clear":
        result = await _handle_history_clear(session_manager, arguments)

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/vanphappi/kiro-cli-mcp'

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