Skip to main content
Glama

delete_nodes

Remove multiple nodes and their connected edges from the MemoryMesh knowledge graph by specifying node names to streamline graph management and maintain data integrity.

Instructions

Delete multiple nodes and their associated edges from the knowledge graph

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeNamesYesAn array of node names to delete

Implementation Reference

  • The handler logic for the 'delete_nodes' tool in GraphToolHandler.handleTool switch statement. It delegates deletion to knowledgeGraphManager and returns a formatted response confirming the action.
    case "delete_nodes": await this.knowledgeGraphManager.deleteNodes(args.nodeNames); return formatToolResponse({ actionTaken: `Deleted nodes: ${args.nodeNames.join(', ')}` });
  • The tool definition including name, description, and input schema for validating arguments to the 'delete_nodes' tool.
    { name: "delete_nodes", description: "Delete multiple nodes and their associated edges from the knowledge graph", inputSchema: { type: "object", properties: { nodeNames: { type: "array", items: {type: "string", description: "Node name to delete"}, description: "An array of node names to delete" }, }, required: ["nodeNames"], }, },

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/CheMiguel23/MemoryMesh'

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