Skip to main content
Glama

get_auto_save_status

Retrieve the auto-save status for a session in the CSV Editor to track whether data changes are automatically saved, ensuring data integrity during processing.

Instructions

Get auto-save status for a session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes

Implementation Reference

  • Main handler function that executes the get_auto_save_status tool logic: retrieves session, calls session.get_auto_save_status(), wraps in OperationResult
    async def get_auto_save_status( session_id: str, ctx: Context = None ) -> Dict[str, Any]: """ Get auto-save status for a session. Args: session_id: Session identifier ctx: FastMCP context Returns: Dict with auto-save status """ try: manager = get_session_manager() session = manager.get_session(session_id) if not session: return OperationResult( success=False, message="Session not found", error=f"No session with ID: {session_id}" ).model_dump() status = session.get_auto_save_status() if ctx: await ctx.info(f"Auto-save status retrieved for session {session_id}") return OperationResult( success=True, message="Auto-save status retrieved", session_id=session_id, data=status ).model_dump() except Exception as e: logger.error(f"Error getting auto-save status: {str(e)}") if ctx: await ctx.error(f"Failed to get auto-save status: {str(e)}") return OperationResult( success=False, message="Failed to get auto-save status", error=str(e) ).model_dump()
  • MCP tool registration and thin wrapper that delegates to the implementation in auto_save_operations.py
    async def get_auto_save_status( session_id: str, ctx: Context = None ) -> Dict[str, Any]: """Get auto-save status for a session.""" return await _get_auto_save_status(session_id, ctx)
  • Session class helper method that returns the auto-save manager status, called by the tool handler
    def get_auto_save_status(self) -> Dict[str, Any]: """Get current auto-save status.""" return self.auto_save_manager.get_status()
  • Import statement registering the auto-save tool implementations for use in server.py tool wrappers
    from .tools.auto_save_operations import ( configure_auto_save as _configure_auto_save, disable_auto_save as _disable_auto_save, get_auto_save_status as _get_auto_save_status, trigger_manual_save as _trigger_manual_save )

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/santoshray02/csv-editor'

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