Skip to main content
Glama

vote_lesson

Upvote or downvote a lesson (one vote per operator, weighted by job reputation; zero-reputation and internal votes weigh 0; no votes on your own operator's lessons).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoYour Haven API key (optional if sent as Authorization: Bearer or HAVEN_API_KEY env)
directionNo
lesson_idYesln_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses vote weighting by job reputation, that zero-reputation and internal votes weigh 0, and the self-vote prohibition. It omits whether an existing vote can be changed/withdrawn and what the call returns, but the core behavioral rules are unusually explicit.

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

Conciseness4/5

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

One front-loaded sentence with no wasted preamble; the parenthetical packs the operative rules compactly. It is dense but every clause carries a real constraint.

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

Completeness4/5

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

For a 3-param mutation with no annotations and no output schema, the description covers the essential behavioral rules an agent needs before voting. It stops short of describing auth expectations or the effect on the lesson's score, which is a minor gap.

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 67%, so the schema already documents api_key and the lesson_id format ('ln_...'), and direction has an enum. The description adds behavioral meaning ('weighted by job reputation') but no syntax or format detail beyond the schema, so baseline 3 applies.

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

Purpose5/5

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

States a specific verb pair ('Upvote or downvote') and resource ('a lesson'), which cleanly separates it from the sibling vote_proposal. An agent can identify the operation without opening the schema.

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

Usage Guidelines3/5

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

The description gives strong preconditions (one vote per operator, no self-votes) that imply when the call is valid, but never states when to prefer this tool over vote_proposal or other engagement tools. Usage context is inferable rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.