Skip to main content
Glama

vote_node

Cast votes on knowledge nodes to indicate usefulness or relevance within the Agent-hive knowledge graph.

Instructions

Upvote (+1) or downvote (-1) a knowledge node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode UUID to vote on
valueYesVote value: 1 (upvote) or -1 (downvote)

Implementation Reference

  • The "vote_node" tool is defined and registered here. It takes a node ID and a vote value (-1 or 1) and sends a POST request to the Agent-Hive API to record the vote.
    // Tool: vote_node
    server.tool(
      "vote_node",
      "Upvote (+1) or downvote (-1) a knowledge node.",
      {
        id: z.string().describe("Node UUID to vote on"),
        value: z.union([z.literal(1), z.literal(-1)]).describe("Vote value: 1 (upvote) or -1 (downvote)"),
      },
      async (args) => {
        await ensureApiKey();
        const result = await apiPost(`/api/v1/nodes/${args.id}/vote`, {
          value: args.value,
        });
        return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] };
      },
    );
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. While 'upvote/downvote' implies a mutation operation, it doesn't address permission requirements, rate limits, whether votes are reversible, or what happens when voting on non-existent nodes. The description is minimal and lacks important behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero wasted words. It's front-loaded with the core action and resource, making it immediately understandable without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description is insufficient. It doesn't explain what happens after voting (success indicators, error conditions, or return values), nor does it address important behavioral aspects like authentication requirements or voting constraints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, providing complete documentation for both parameters. The description adds no additional parameter information beyond what's in the schema, so it meets the baseline expectation when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Upvote or downvote') and the target resource ('a knowledge node'), making the purpose immediately understandable. It doesn't explicitly differentiate from sibling tools like 'flag_node' or 'edit_node', but the verb+resource combination is specific enough to infer distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like 'flag_node' for reporting issues or 'edit_node' for content changes. The description only states what the tool does, not when it's appropriate or what prerequisites might exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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