Skip to main content
Glama

reset_session

Clear the current audit session to start fresh analysis, ensuring context isolation for accurate code review.

Instructions

Reset the current audit session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'reset_session' tool. It is decorated with @mcp.tool() for registration and executes the reset logic by calling session.reset() on the global session state, returning a success message.
    @mcp.tool() def reset_session() -> str: """Reset the current audit session.""" print("DEBUG: reset_session called", file=sys.stderr) session.reset() return "✅ Session reset successfully."
  • Supporting method in SessionState class that implements the actual session reset logic by clearing code, history, retries, and setting status to IDLE. Called by the reset_session tool handler.
    def reset(self): """Reset the session state.""" self.current_code = None self.retry_count = 0 self.audit_history = [] self.status = "IDLE"

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/Sim-xia/Blind-Audition-MCP'

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