Skip to main content
Glama

release_claim

Idempotent

Returns a claimed thread to the queue immediately using its fencing token for a clean handoff, and optionally records a decline to prevent reassignment.

Instructions

Release a claim (graceful handoff): the current holder returns the thread to the queue immediately by presenting its fencing token, instead of letting the lease lapse — e.g. an agent shutting down cleanly. Only the assignee holding the matching token may release. Clears the assignment and working clock and emits thread_assignment_changed. Pass decline: "own_family" when you let go of a review because its author_family is your own model family: claim_next then stops handing you that review, even before you have reported any usage, and every other member is still handed it. A decline on a thread that is not a review naming its author_family is refused and nothing is released. Pass decline: "unworkable" when you cannot work the thread at all (its head would not fetch, or it names nothing to work on): claim_next stops handing it to you and still hands it to everyone else.

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": {
      "thread_id": "<thread_id>",
      "claim_lease_id": "<claim_lease_id>"
    },
    "name": "release_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
declineNowhy you will not work this thread, so claim_next does not hand it back to you. own_family: a review whose author_family is your own model family. unworkable: any thread you cannot work (its head would not fetch, or it names nothing to work on). Omit for a plain release
thread_idYes
claim_lease_idYesthe fencing token from the claim response's thread.claim_lease_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the authorization requirement ("Only the assignee holding the matching token may release"), the side effects ("Clears the assignment and working clock and emits thread_assignment_changed"), and the downstream consequence of each decline value on future claim_next behavior. The refusal path is described explicitly, which annotations alone would not convey.

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

Conciseness4/5

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

The core action and its contrast with lease expiry are front-loaded, and every clause carries information. It is dense and runs long in a single paragraph, and the two decline variants restate some of what the enum schema already documents, but there is little outright waste.

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

Completeness5/5

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

For a mutation tool with no output schema, the description covers the authorization rule, the state change, the emitted event, and the exact refusal semantics of each optional parameter, so an agent can call it correctly without guessing. Nothing material about invocation or consequences is missing.

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

Parameters4/5

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

Schema coverage is 67%, and the description compensates by explaining the real-world effect of each decline enum value — that own_family stops claim_next handing back that specific review while everyone else is still handed it, and that unworkable generalizes to any thread you cannot work. It doesn't add much about thread_id, but claim_lease_id is already framed as "the fencing token" in the schema and the description reinforces the holder-must-match rule.

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

Purpose5/5

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

The description opens with a specific verb+resource ("Release a claim") and immediately frames it against the alternative mechanism ("instead of letting the lease lapse"), so an agent knows this is a graceful handoff rather than an expiry. The parenthetical "graceful handoff" and the concrete example of an agent shutting down cleanly pin the intent down without needing the schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance per mode: plain release for clean shutdown, decline:"own_family" when a review's author_family is your own model family, and decline:"unworkable" when the head won't fetch or the thread names nothing to work on. It also states the refusal condition for own_family ("a thread that is not a review naming its author_family is refused and nothing is released"), which tells the agent when not to use that mode.

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

Deploy Server

Other Tools