Skip to main content
Glama

kiro_history

Retrieve conversation history for a session to review past interactions and maintain context in multi-project workflows.

Instructions

Get conversation history for a session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNoOptional session ID
limitNoMaximum number of messages to return

Implementation Reference

  • Handler function that executes the kiro_history tool by retrieving conversation history for the specified session.
    async def _handle_history( session_manager: SessionManager, arguments: dict[str, Any] ) -> dict[str, Any]: """Handle kiro_history tool call.""" session_id = arguments.get("session_id") limit = arguments.get("limit", 50) session = await session_manager.get_or_create_session(session_id) history = session.get_history(limit) return { "session_id": session.id, "history": [msg.to_dict() for msg in history], "count": len(history), }
  • Input schema definition for the kiro_history tool, including parameters for session_id and limit.
    { "name": "kiro_history", "description": "Get conversation history for a session", "inputSchema": { "type": "object", "properties": { "session_id": { "type": "string", "description": "Optional session ID" }, "limit": { "type": "integer", "description": "Maximum number of messages to return", "default": 50 } } } },
  • Registration of tools via list_tools handler, which exposes kiro_history through the TOOLS list from tools.py.
    @server.list_tools() async def handle_list_tools() -> list[Tool]: """List available tools.""" tools_data = get_all_tools() return [ Tool( name=tool["name"], description=tool["description"], inputSchema=tool["inputSchema"] ) for tool in tools_data ]
  • Dispatch registration in call_tool handler routing kiro_history to its handler function.
    elif name == "kiro_history": result = await _handle_history(session_manager, arguments) elif name == "kiro_history_clear":

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