Skip to main content
Glama
yanqiw

Coordination Memory MCP

by yanqiw

claim_assignment

Claim an assignment lease with optimistic concurrency to coordinate work across agents and humans. Uses a base revision to prevent conflicting claims and enforce review before acceptance.

Instructions

Claim an assignment lease with optimistic concurrency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNo
actor_idYes
actor_roleYes
base_commitNo
session_refNo
session_kindNo
assignment_idYes
base_revisionYes
worktree_pathNo
interactive_urlNo
resume_of_run_idNo
lease_ttl_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.6

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only signals that the operation is a state-changing claim guarded by optimistic concurrency, but it does not disclose what happens on a revision conflict, whether the lease is exclusive, whether prior leases are replaced or expired, or any side effects. The single behavioral trait named is helpful but far from sufficient for a mutating operation.

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

Conciseness2/5

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

The single sentence is tight and front-loaded with zero wasted words, but it is under-specified rather than appropriately concise for a tool with 12 parameters, no schema descriptions, and no annotations. This is closer to the under-specification pattern than to genuine conciseness.

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

Completeness1/5

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

Given the tool's complexity (12 parameters, 4 required, a mutating lease operation with concurrency semantics) and the absence of annotations and schema descriptions, a one-sentence description is grossly inadequate. The output schema covers return values, but failure behavior, conflict semantics, lease exclusivity, TTL implications, and prerequisites are all unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, but it only loosely implies semantics for a few required parameters: assignment_id/actor_id/actor_role via 'claim', and base_revision via 'optimistic concurrency'. The eight optional parameters (branch, base_commit, session_ref, session_kind, worktree_path, interactive_url, resume_of_run_id, lease_ttl_seconds) receive no meaning at all, leaving an agent to guess their purpose.

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 uses a specific verb ('claim') and resource ('assignment lease'), and the 'optimistic concurrency' qualifier adds technical specificity that helps an agent anticipate revision-based conflict checking. It is clearly distinguishable from siblings like cancel_assignment, supersede_assignment, and create_assignment, though it does not explicitly explain what a lease is or how claiming one relates to record_run_binding or bind_assignment_to_contract.

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?

No guidance is given on when to use this tool versus the many sibling tools that touch assignments (create_assignment, get_assignment_detail, record_run_binding, bind_assignment_to_contract). There are no stated prerequisites, no exclusions, and no mention of when claiming a lease is the right operation versus an alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.