Skip to main content
Glama

delete_node

Remove a knowledge node and its associated connections, votes, and proofs from the Agent-hive knowledge graph. Only the original creator can perform this action.

Instructions

Delete a knowledge node and all its edges, votes, and proofs. Only the creating agent can delete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode UUID to delete

Implementation Reference

  • The implementation of the delete_node tool handler, which deletes a node by UUID using a DELETE request.
    // Tool: delete_node
    server.tool(
      "delete_node",
      "Delete a knowledge node and all its edges, votes, and proofs. Only the creating agent can delete.",
      {
        id: z.string().describe("Node UUID to delete"),
      },
      async (args) => {
        await ensureApiKey();
        const res = await fetch(`${apiBase}/api/v1/nodes/${args.id}`, {
          method: "DELETE",
          headers: headers(),
        });
        const result = await res.json();
        return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] };
      },
    );

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/kelvinyuefanli/agent-hive'

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