{"uid":"cap_aNdgtlKoLMqeV5eeW3P23","slug":"agent-consensus-majority-vote-68cfeafc","name":"Agent Consensus – Majority Vote","description":"Consensus utilities for multi-agent systems: majority vote, weighted vote, plurality counts, agreement score, and Borda-style rank merge. Pay-per-request USDC via x402. No API keys, no accounts.","url":"https://agent-consensus.annushka1190.workers.dev/v1/vote/majority","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"share":0.67,"winner":"yes"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xX-FcnXGO0dHDtysLA5qV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Determines the majority winner from a set of agent votes and returns the winning option with its share percentage.","exampleAgentPrompt":"I have 10 agents that each voted on whether to approve a transaction — 7 said 'yes', 3 said 'no'. Can you run a majority vote and tell me which option won and by what share?","exampleUseCases":[{"title":"Resolving conflicting agent classifications","prompt":"I ran the same document through 5 classifier agents and got these labels: 'spam', 'spam', 'ham', 'spam', 'ham'. Which label wins by majority, and what fraction voted for it?"},{"title":"Multi-agent answer selection for RAG pipeline","prompt":"My 6 retrieval agents returned these answers to a user question: 'Paris', 'London', 'Paris', 'Paris', 'Berlin', 'Paris'. Use majority vote to pick the consensus answer and tell me how dominant it was."},{"title":"Autonomous agent fleet decision gate","prompt":"Before my agent pipeline takes an irreversible action, I want to poll 9 sub-agents and only proceed if the majority says 'proceed'. Here are their votes — run the majority vote and give me the winner and its share."}],"resultDescription":"Returns a JSON object with 'winner' (the option that received the most votes) and 'share' (a decimal between 0 and 1 representing the fraction of total votes the winner received, e.g. 0.67 for 67%).","failureModes":["Missing or malformed 'input' body causes validation error","Tie between top candidates may result in undefined or arbitrary winner selection","Empty votes array may return an error or null winner","Payment failure via x402 protocol results in 402 response and no result","Malformed JSON body returns a 400-level error"],"whenToPreferThis":"Use this endpoint when you need a simple, stateless majority-vote aggregation across agent outputs without managing your own voting logic. It is ideal for multi-agent orchestration pipelines where you want to resolve disagreement between an odd or even number of agents cheaply ($0.003/call) and without API keys. Prefer this over weighted vote or Borda merge when all agents carry equal authority and you only need the plurality winner with its share.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:41.989Z","isFirstParty":false}