Agent-facing MCP server for Roshambo: agentic memory fabric on CockroachDB with serializable leases and distributed vector index for agent swarms
Roshambo-mcp demonstrates solid domain-specific design with 8 well-named tools covering agent coordination (claim/release/heartbeat), memory (remember/recall), and decision logging. All tools have descriptions (avg 180 chars, within 10-1024 baseline). Input schemas are present with typed parameters and descriptions. However, output schemas are not documented, LLMs cannot predict response structure for planning downstream calls. Error handling lacks recovery guidance (e.g., what to do if a claim is denied or a heartbeat fails). Tool descriptions are functional but could be more concise for LLM parsing. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels (WRITE vs READ_ONLY). Parameter descriptions are adequate but lack format constraints (e.g., ttl_seconds has no min/max bounds).
Acquire an exclusive, serializable lease on `resource` for `agent_id`. Call this before starting work another agent in the swarm could also attempt -- for example before editing a specific file or picking up a specific task. The result's `_type` field is either "Claim" (you got it) or "ClaimDenied" (someone else holds it right now; the result names who, and their stated intent, so you can decide whether to wait, help, or do something else). A denial is a normal, expected outcome, not a failure to retry blindly.
Log a choice with its rationale and provenance to the swarm-wide decision ledger. Use this to record significant decisions made by the agent, with the reasoning and evidence behind them, so the swarm can learn from and audit agent choices.
Extend a live lease after a concrete work step. A false result means the lease has expired or changed hands and is deliberately not renewable. Stop work rather than retrying blindly. Heartbeats should represent progress, not a background timer that keeps a stuck agent alive.
Search the vector index for prior attempts at similar work. Call this before starting unfamiliar work. A hit with outcome 'failure' is a warning worth reading, not noise -- it is the one thing a freshly spawned agent cannot otherwise know. Results are distance-ranked; `limit` caps the count returned.
Output schemas not documented. LLMs cannot predict response structure (e.g., what fields does claim() return? Is it {claim_id, status, holder_agent_id}?). This forces agents to guess and breaks tool chaining.
No tool annotations (readOnlyHint/destructiveHint/idempotentHint) despite clear risk levels. claim/release/remember are WRITE; recall/status are READ_ONLY. Annotations help LLMs reason about side effects and retry safety.
Error handling lacks recovery guidance. If claim() returns ClaimDenied, what should the agent do? If heartbeat() fails, is the lease expired or is it a transient error? Descriptions mention outcomes but not error paths.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2026-07-28+ | v2 |
Register a stable agent identity before claiming work. `agent_id` must be collision-safe across machines (for example `codex-1@workstation-a`). Re-registering the same id updates the current registry row, while audit events retain the framework/host snapshot captured when they were written.
Release a claim so another agent can pick up its resource. Call this as soon as claimed work is finished or abandoned. An expired but unreleased claim still blocks other agents until its TTL elapses, so release promptly rather than relying on expiry.
Record what was tried and how it ended -- Roshambo's negative memory. `outcome` must be one of: "success", "failure", "abandoned", "inconclusive". `evidence` should be concrete: an error message, a measurement, a quote -- whatever justifies the outcome to a reader with no other context. Write a trail even for failures and abandoned attempts: that is what lets a later, unrelated agent avoid repeating a dead end it has no way of otherwise knowing about. `artifact_uri` may point at a larger attachment (for example an `s3://` URI) instead of inlining it.
Get a snapshot of the swarm: active agents, claims, trails, and decision ledger. Use this to understand the current state of coordination across the agent swarm.
Numeric parameters lack bounds. ttl_seconds has no min/max; outcome_filter and limit in recall() have no constraints. Unbounded numbers let LLMs pass absurd values (e.g., ttl_seconds=999999999).
Tool descriptions are verbose (180 chars avg) and could be tightened for LLM parsing. Baseline for A+ tools is 50-200 chars; these lean toward the upper end. Trim to core action + when to use.