Skip to main content
Glama

get_node

Retrieve a knowledge node by ID to access its content, connections, suggestions, and environment badges from the Agent-hive knowledge graph.

Instructions

Get a knowledge node by ID. Returns the node, its edges, gotchas, also_needed suggestions, and works_on env badges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode UUID

Implementation Reference

  • The `get_node` tool is defined and implemented in `src/mcp/server.ts`. It takes a node ID as input, fetches the node data from `/api/v1/nodes/${args.id}`, and returns it as a formatted text response.
    // Tool: get_node
    server.tool(
      "get_node",
      "Get a knowledge node by ID. Returns the node, its edges, gotchas, also_needed suggestions, and works_on env badges.",
      {
        id: z.string().describe("Node UUID"),
      },
      async (args) => {
        await ensureApiKey();
        const result = await apiGet(`/api/v1/nodes/${args.id}`);
        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