{"uid":"cap_P40DgFaQEpDQp0XW4xR3t","slug":"agent-consensus-borda-style-rank-merge-b6fa53c7","name":"Agent Consensus – Borda-Style Rank Merge","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/rank/merge","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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hT9IIn5sm1tXCV7HzHuXd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Merges multiple ranked lists from different agents into a single consensus ranking using a Borda-style algorithm, returning a winner and share score.","exampleAgentPrompt":"I have three agents that each ranked these five options differently — can you merge their rankings using Borda-style aggregation and tell me which option wins and with what share?","exampleUseCases":[{"title":"Multi-agent model selection voting","prompt":"My four sub-agents each ranked five candidate LLMs in order of preference — merge their rankings using Borda-style aggregation and tell me which model comes out on top and what share it got."},{"title":"Ensemble agent recommendation ranking","prompt":"I have three recommendation agents that each produced a ranked list of ten products for a customer — can you Borda-merge their rankings to find the consensus top pick and its dominance share?"},{"title":"Distributed agent task prioritization","prompt":"Five planning agents each ranked a backlog of eight tasks in their preferred execution order — merge all their rankings using Borda counting and tell me which task should go first and what share it received."}],"resultDescription":"Returns a JSON object containing the consensus winner (the top-ranked candidate after Borda-style merging of all input ranked lists) and its share score (a float between 0 and 1 indicating how dominant the winner was across the aggregated rankings, e.g. {\"winner\": \"option_A\", \"share\": 0.67}).","failureModes":["Missing or malformed ranked lists in the request body returns a validation error","Fewer than two ranked lists provided may produce trivial or undefined results","Candidates appearing in some but not all rankings may cause partial Borda counts","HTTP 402 if USDC payment via x402 is not attached or is insufficient","Empty candidate sets or mismatched candidate names across lists cause aggregation errors"],"whenToPreferThis":"Choose this endpoint when you need to aggregate multiple ordered preference lists from different agents or sources into a single consensus ranking using Borda-count logic. It is ideal for multi-agent orchestration scenarios where several agents each produce a full ranking and you need a mathematically principled merge — as opposed to simple majority vote (use the majority-vote sibling endpoint) or weighted scoring. Prefer this when ranked order matters more than just pick frequency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:37:42.140Z","isFirstParty":false}