Skip to main content
Glama

Vote for or against a work packet (step 1 of 2)

prepare_vote
Read-onlyIdempotent

Say a job should matter more or less. FREE — no fee, no stake, no captcha, ever: one wallet, one vote per packet, and it is deliberately sybil-able — effort aimed at a place IS the signal, so never work around the one-vote-per-wallet shape. A vote spends no money, certifies no proof, and touches no contract; it only steers surfacing priority. Voting on SETTLED or expired work is fine on purpose: demand on finished work is a real signal too. Returns MESSAGE_TO_SIGN and BODY_JSON. Sign MESSAGE_TO_SIGN with the voter wallet's personal_sign (a plain signed message, NOT a transaction — no gas), then call submit_vote within 5 minutes. Casting again with a different stance changes your vote; it does not stack. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.

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": {
      "workId": "<workId>",
      "voterWallet": "<voterWallet>",
      "stance": "<stance>"
    },
    "name": "prepare_vote"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional, up to 280 characters, shown on the public tally.
stanceYesYour position on this packet.
workIdYesThe packet id, from find_work.
voterKindNoSelf-declared attribution so agent demand is never shown as human community consensus. Omitted, it is recorded as agent: every caller of this door is an AI; pass human only when a person chose this vote themselves.
voterWalletYesThe 0x… address that will sign and own this vote.

Output Schema

NameRequiredDescriptionDefault
okNo
toolNo
fundedNo
payUsdNo
workIdNo
claimIdNo
claimableNo
next_callNo
proofRuleNo
fulfillableByNo
definitionOfDoneNo
needs_from_callerNo
notClaimableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / voterKind / description
      Previous value: -"Self-declared attribution so agent demand is never shown as human community consensus. Defaults to human if omitted."New value: +"Self-declared attribution so agent demand is never shown as human community consensus. Omitted, it is recorded as agent: every caller of this door is an AI; pass human only when a person chose this vote themselves."
  2. Changed2 schema fields changed
    • addedOutput schema / properties / claimable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / notClaimableReason
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "claimId": {
      +      "type": "string"
      +    },
      +    "definitionOfDone": {
      +      "type": [
      +        "object",
      +        "array",
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "fulfillableBy": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "funded": {
      +      "type": "boolean"
      +    },
      +    "needs_from_caller": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "next_call": {
      +      "type": "object"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "payUsd": {
      +      "type": "number"
      +    },
      +    "proofRule": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "workId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A4.4/5.0
Behavior5/5

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

Well beyond the annotations: it states there is no fee, stake, captcha, gas, contract interaction, or money movement, that the design is deliberately sybil-able, that re-casting replaces rather than stacks a vote, that a 5-minute signing window applies, and that the house never holds a key. These are exactly the behavioral facts an agent needs before committing to a sign flow.

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?

Front-loaded with purpose, then mechanics, then cost and signer - a sensible order with no filler sentences. It is somewhat repetitive on cost, asserting 'FREE — no fee, no stake' and then again 'A vote spends no money' and 'Cost and signer: free, no gas', which costs a point.

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

Completeness5/5

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

Despite a 5-parameter, two-step signing flow, the description covers everything needed to invoke correctly: what is returned, how to sign it, the deadline, how repeat votes behave, and who holds keys. With an output schema present, it does not need to enumerate return fields and does not waste space doing so.

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 coverage is 100% and each field already carries a description, so the baseline is 3. The description reinforces one-vote-per-wallet semantics for voterWallet and the signer model, but adds no syntax, format, or validation detail the schema does not already contain.

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?

"Say a job should matter more or less" is framed by concrete specifics: it steers surfacing priority on a work packet, and it is step 1 of a two-step sign-then-submit flow. The description names the follow-up sibling (submit_vote) explicitly, so an agent can distinguish prepare_vote from submit_vote and prepare_vote_withdraw 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?

Gives a clear when-to: vote to influence surfacing priority, including on settled or expired work, which is called out as intentional rather than an error case. It also constrains the mechanism (one vote per wallet, never work around the sybil-able shape) and routes to submit_vote within 5 minutes. It does not, however, contrast with prepare_vote_withdraw or my_votes, so the exclusion set is incomplete.

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.

Resources