Skip to main content
Glama

get_memory_bank_status

Retrieve the current status of the memory bank on the MCP server with SSH support. Use this tool to monitor and verify the central knowledge base's operational state.

Instructions

Check Memory Bank status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
random_stringYesDummy parameter for no-parameter tools

Implementation Reference

  • Implements the core logic for the get_memory_bank_status tool by retrieving the Memory Bank status via memoryBankManager.getStatus() and returning it as formatted JSON, with error handling.
    export async function handleGetMemoryBankStatus( memoryBankManager: MemoryBankManager ) { try { const status = await memoryBankManager.getStatus(); return { content: [ { type: 'text', text: JSON.stringify(status, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error checking Memory Bank status: ${error}`, }, ], isError: true, }; } }
  • Tool definition including name, description, and input schema (using a dummy required parameter). This is part of the coreTools array exported for registration.
    { name: 'get_memory_bank_status', description: 'Check Memory Bank status', inputSchema: { type: 'object', properties: { random_string: { type: 'string', description: 'Dummy parameter for no-parameter tools', }, }, required: ['random_string'], }, },
  • Dispatches the tool call to the handler function after checking if Memory Bank directory exists, part of the MCP server tool request handler.
    case 'get_memory_bank_status': { if (!memoryBankManager.getMemoryBankDir()) { return { content: [ { type: 'text', text: 'Memory Bank not found. Use initialize_memory_bank to create one.', }, ], isError: true, }; } return handleGetMemoryBankStatus(memoryBankManager); }

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/aakarsh-sasi/memory-bank-mcp'

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