Skip to main content
Glama

status

Check the undo system's current state: view checkpoint count, stack size, and whether undo operations are available.

Instructions

Get current status of the undo system (checkpoint count, number of checkpoints in the stack, and whether undo is possible)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:69-76 (registration)
    Registers the 'status' tool with its name, description, and input schema (no parameters required).
    { name: "status", description: "Get current status of the undo system (checkpoint count, number of checkpoints in the stack, and whether undo is possible)", inputSchema: { type: "object", properties: {}, }, },
  • The main handler for the 'status' tool in the CallToolRequestSchema switch statement. It calls changeTracker.getStatus() and formats a text response with checkpoint count and undo availability.
    case "status": { const status = changeTracker.getStatus(); return { content: [ { type: "text", text: `📊 Undo System Status:\nCheckpoints: ${status.checkpointCount}\nCan Undo: ${status.canUndo}`, }, ], }; }
  • Core implementation of status logic in ChangeTracker class. Deduplicates checkpoints and returns the count and whether undo is possible.
    getStatus(): { checkpointCount: number; canUndo: boolean; } { // Deduplicate checkpoints before returning status this.deduplicateCheckpoints(); return { checkpointCount: this.undoStack.length, canUndo: this.undoStack.length > 0, }; }
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/khalilbalaree/undo-mcp'

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