Skip to main content
Glama

get_current_library_info

Retrieve details about the active memory library, including its name, node count, sessions, and metadata for enhanced reasoning workflows.

Instructions

Get information about the currently active memory library.

Shows current library name, number of nodes, sessions, and other metadata.

Returns current library information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function getCurrentLibraryInfo() in AdvancedReasoningServer class. Returns JSON with current library name and memory statistics.
    public getCurrentLibraryInfo(): { content: Array<{ type: string; text: string }>; isError?: boolean } { try { return { content: [{ type: "text", text: JSON.stringify({ currentLibrary: this.memory.getCurrentLibraryName(), memoryStats: this.memory.getMemoryStats(), status: 'success' }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ error: error instanceof Error ? error.message : String(error), status: 'failed' }, null, 2) }], isError: true }; } }
  • Tool schema definition for 'get_current_library_info' with empty input schema as it takes no parameters.
    const GET_LIBRARY_INFO_TOOL: Tool = { name: "get_current_library_info", description: `Get information about the currently active memory library. Shows current library name, number of nodes, sessions, and other metadata. Returns current library information.`, inputSchema: { type: "object", properties: {}, required: [] } };
  • src/index.ts:1395-1407 (registration)
    Registration of the tool in the ListToolsRequestSchema handler, including it in the tools list.
    tools: [ ADVANCED_REASONING_TOOL, QUERY_MEMORY_TOOL, CREATE_LIBRARY_TOOL, LIST_LIBRARIES_TOOL, SWITCH_LIBRARY_TOOL, GET_LIBRARY_INFO_TOOL, CREATE_SYSTEM_JSON_TOOL, GET_SYSTEM_JSON_TOOL, SEARCH_SYSTEM_JSON_TOOL, LIST_SYSTEM_JSON_TOOL ], }));
  • src/index.ts:1431-1432 (registration)
    Dispatch/execution handler in the CallToolRequestSchema switch statement that calls the tool handler.
    case "get_current_library_info": return reasoningServer.getCurrentLibraryInfo();

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/angrysky56/advanced-reasoning-mcp'

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