Skip to main content
Glama

open_nodes

Retrieve specific entities from a knowledge graph synchronized with GitHub repositories for remote memory management and collaboration.

Instructions

특정 이름의 엔티티들을 조회합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namesYes

Implementation Reference

  • The handler function that implements the core logic for the 'open_nodes' tool. It retrieves entities by the provided names using the MemoryGraphManager and returns a JSON-formatted response with the found nodes.
    private async handleOpenNodes(args: any) { const nodes = this.memoryManager.getNodes(args.names); return { content: [{ type: 'text', text: JSON.stringify({ success: true, requestedNames: args.names, nodes: nodes, found: nodes.length, requested: args.names.length, }, null, 2), }], }; }
  • The input schema definition for the 'open_nodes' tool, specifying an array of names as input.
    inputSchema: { type: 'object', properties: { names: { type: 'array', items: { type: 'string' }, }, }, required: ['names'], },
  • src/index.ts:225-238 (registration)
    The tool registration in the ListTools response, including name, description, and input schema.
    { name: 'open_nodes', description: '특정 이름의 엔티티들을 조회합니다', inputSchema: { type: 'object', properties: { names: { type: 'array', items: { type: 'string' }, }, }, required: ['names'], }, },
  • src/index.ts:394-395 (registration)
    The switch case in the CallToolRequest handler that routes 'open_nodes' calls to the handleOpenNodes function.
    case 'open_nodes': return await this.handleOpenNodes(args);
  • The helper method in MemoryGraphManager that retrieves Entity objects by exact names from the graph, used by the open_nodes handler.
    getNodes(names: string[]): Entity[] { return names .map(name => this.graph.entities.get(name)) .filter((entity): entity is Entity => entity !== undefined); }

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/YeomYuJun/remote-memory-mcp-server'

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