Skip to main content
Glama

x402-mcp

swarm_consensus_protocol

Swarm Byzantine Fault-Tolerant Consensus Protocol: multi-agent weighted quorum voting, two-phase commit, and cryptographic consensus certificates. Requires $0.35 USD fee. [Price: $0.35 USD]

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": {
      "action": "<action>"
    },
    "name": "swarm_consensus_protocol"
  }
}

Input Schema

NameRequiredDescriptionDefault
voteNoVote decision
topicNoTopic or proposition to achieve consensus upon
actionYesConsensus protocol step
swarmIdNoSwarm mesh identifier
certificateNoCertificate to verify when action is VERIFY_CERTIFICATE
consensusIdNoConsensus session ID
paymentProofNox402 payment proof object
voterAgentIdNoVoting agent ID
justificationNoRationale or proof notes for the vote
timeoutSecondsNoVoting window duration in seconds (default 300)
proposalPayloadNoPayload or data under evaluation
proposerAgentIdNoProposing agent ID
reputationWeightNoWeight multiplier of the voting agent
requiredQuorumPctNoRequired percentage quorum (default 67)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description bears full behavioral burden. It does disclose the $0.35 fee, which is genuinely useful, but says nothing about whether payment is required before every action, whether FINALIZE/COMMIT is irreversible, what happens on quorum failure or timeout, or what a session's lifecycle looks like. For a mutating multi-step protocol this leaves the agent guessing about side effects and prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is front-loaded and information-dense, but the fee statement is immediately duplicated as '[Price: $0.35 USD]', which is pure redundancy. Two of the three sentences consist of capability listing and price repetition rather than actionable guidance.

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

Completeness2/5

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

This is a high-complexity tool: 14 parameters, 5 actions, nested objects, and no output schema or annotations to fill gaps. The description does not explain the action state machine, per-action required parameters, or what any action returns, so an agent cannot confidently sequence calls from the description alone.

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 description coverage is 100% and all 14 parameters carry their own descriptions, so the schema already does the heavy lifting. The description adds no meaning beyond it — notably it never indicates which parameters apply to which action (e.g. vote/voterAgentId only for VOTE, certificate only for VERIFY_CERTIFICATE), which would have been the valuable addition. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific capability set: Byzantine fault-tolerant multi-agent consensus with weighted quorum voting, two-phase commit, and cryptographic certificates. An agent can tell this is the consensus/voting mechanism rather than a planner or auction tool, though it reads as a feature list rather than a verb-plus-resource statement of what invoking it returns.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus sibling coordination tools (swarm_coordinator, swarm_task_auction), and no statement of which of the five actions to pick or in what order. The agent must reverse-engineer the PROPOSE/VOTE/FINALIZE lifecycle from the schema enum alone.

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