{"uid":"cap_qcHL8ZeH-TMv3aK-Bf-RS","slug":"agent-consensus-b1a4eed3","name":"Agent Consensus","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/agree","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_xskRV5ZTYMIL9229mLjCC","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":"Aggregates votes or rankings from multiple agents using majority vote, weighted vote, plurality, agreement score, or Borda-style rank merge","exampleAgentPrompt":"I have 5 agents that each voted on whether to approve this request — 3 said yes, 1 said no, 1 said maybe — can you run a majority vote and tell me the winner and vote share?","exampleUseCases":[{"title":"Resolving conflicting agent classifications","prompt":"I ran a sentiment classification task across 4 agents and got mixed results — 2 said positive, 1 said negative, 1 said positive. Can you do a majority vote to figure out the consensus answer and how dominant it is?"},{"title":"Weighted ranking for agent ensemble","prompt":"I have 3 agents with different reliability scores — agent A has weight 0.6, B has 0.3, C has 0.1 — and they each picked a recommended action. Can you run a weighted vote to find the consensus recommendation?"},{"title":"Borda rank merge for multi-agent preference","prompt":"My 4 agents each ranked 5 candidate strategies from best to worst. Can you merge those rankings using a Borda-style count so I know which strategy came out on top overall?"}],"resultDescription":"Returns a JSON object with the winning candidate (e.g. 'winner': 'yes') and its share or score (e.g. 'share': 0.67), representing the consensus outcome of the specified voting or aggregation method across agent inputs.","failureModes":["Missing required 'type' or 'method' fields in input body returns validation error","Malformed vote data (e.g. non-numeric weights) causes computation failure","Ties in majority/plurality vote may result in ambiguous or null winner","Payment not included or insufficient USDC triggers 402 Payment Required response","Empty votes array produces undefined consensus result"],"whenToPreferThis":"Use this endpoint when you have multiple AI agents or models producing independent outputs (votes, rankings, or scores) and need a principled aggregation — majority, weighted, plurality, agreement, or Borda merge — without managing your own voting logic. Prefer it over custom aggregation code when you need pay-per-use, account-free access in agent pipelines that already use x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:49.619Z","isFirstParty":false}