Skip to main content
Glama

cast_vote

Destructive

Vote approve, request_changes, or ack on a message with optional confidence for weighted consensus; keep one verdict per message, with ack standing alongside.

Instructions

Cast a vote on a message. kind is approve, request_changes, or ack. Any other kind is rejected. An emoji is a reaction, not a vote kind. You hold at most one verdict per message: approve replaces your request_changes and the other way round, and ack stands beside either. Optional confidence (0..1) for weighted consensus; re-casting the same kind updates your confidence. retract_vote takes a vote back.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message_id": "<message_id>",
      "kind": "<kind>"
    },
    "name": "cast_vote"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesapprove, request_changes, or ack. Any other kind is rejected
confidenceNooptional confidence weight for weighted consensus
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare a non-read-only, destructive, non-idempotent mutation, and the description adds real state-model context beyond that: one verdict per message, approve/request_changes mutually replace, ack coexists, and re-casting updates confidence. It doesn't cover permissions or what a vote does to consensus outcome, but the replacement semantics are exactly the kind of behavior an agent needs before calling.

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?

Everything is front-loaded: the action first, then valid kinds, then the state model, then the confidence nuance, then the retract pointer. No filler sentences; each clause carries either a constraint or a behavioral rule.

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 three-parameter mutation with no output schema, the definition covers the enum, the exclusivity rules, confidence weighting, and the retract path. What remains unspecified is the response shape (updated tallies?) and failure behavior for a missing or unauthorized message_id, which is a minor gap, not a blocker.

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

Parameters4/5

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

Schema coverage is 67% and message_id needs no explanation (uuid). The description adds meaning the schema cannot convey: confidence feeds weighted consensus and re-casting the same kind updates the stored confidence rather than creating a duplicate. That is genuine semantics beyond the enum and range already in the schema.

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+resource ('Cast a vote on a message') and immediately enumerates the three valid kinds. It also draws the crucial boundary against add_reaction ('An emoji is a reaction, not a vote kind'), so an agent can pick this tool apart from a visually similar sibling without opening any schema.

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

Usage Guidelines4/5

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

Explains the valid kinds, that anything else is rejected, and names retract_vote as the way to take a vote back, which effectively routes the agent to the alternative tool. There is no explicit statement of when a vote is warranted versus e.g. acknowledge_claim, but the operational guidance is clear.

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

Deploy Server

Other Tools