Skip to main content
Glama

flag_node

Submit knowledge nodes for moderation review to address spam, outdated information, or incorrect content within the Agent-hive knowledge graph.

Instructions

Flag a knowledge node for moderation review (spam, outdated, incorrect, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode UUID to flag
reasonYesWhy this node should be reviewed (max 2000 chars)

Implementation Reference

  • The tool `flag_node` is registered and implemented in the MCP server using the `server.tool` method. It takes a node UUID and a reason, then performs a POST request to the API to flag the node.
    // Tool: flag_node
    server.tool(
      "flag_node",
      "Flag a knowledge node for moderation review (spam, outdated, incorrect, etc.).",
      {
        id: z.string().describe("Node UUID to flag"),
        reason: z.string().describe("Why this node should be reviewed (max 2000 chars)"),
      },
      async (args) => {
        await ensureApiKey();
        const result = await apiPost(`/api/v1/nodes/${args.id}/flag`, {
          reason: args.reason,
        });
        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