Skip to main content
Glama

claim_thread

Idempotent

Claim a specific thread by UUID only when it is unassigned, returning claimed=false if someone already holds it. Use this when you know exactly which thread to take.

Instructions

Claim one specific thread by id, succeeding only when nobody holds it: returns {thread, claimed}, with claimed=false when it is already assigned (to anyone, you included). Use it when you already know which thread to take; use claim_next_thread or claim_next_workspace_thread to be handed the best available work instead. The claim carries no lease deadline, so it does not lapse: give it up with release_claim, and the returned thread's claim_lease_id is the fencing token that release_claim and set_thread_result ask for. Refused for an ended thread, a thread parked with mark_unclaimable or blocked with set_thread_block, and when you are at the workspace's work-in-progress limit; a successful claim emits thread_assignment_changed. Requires thread:transition.

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>"
    },
    "name": "claim_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesUUID of the thread to claim. You must be able to read it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv479.0.2
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the thread to claim. You must be able to read it."
  2. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, idempotent, non-destructive mutation; the description adds far more: the {thread, claimed} return with claimed=false semantics on contention, the absence of a lease deadline (no lapse), the fencing-token role of claim_lease_id, and the emission of thread_assignment_changed. It also enumerates refusal conditions (ended thread, mark_unclaimable, set_thread_block, WIP limit) and the thread:transition permission requirement, which no annotation conveys.

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?

Purpose and the sibling routing are front-loaded, and every sentence carries new information. It is a dense semicolon-chained block, though, which makes the refusal conditions and return-shape details harder to scan than a short structured list would be.

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?

With no output schema, the description takes on the burden of describing the return value and does so precisely ({thread, claimed}). For a one-parameter, non-destructive claim tool, the added refusal, permission, and lifecycle context leaves nothing an agent needs missing.

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?

Only one parameter and schema coverage is 100%, so the schema already documents thread_id fully, including the read prerequisite. The description adds nothing param-specific beyond 'by id', so the baseline 3 applies.

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?

States a specific verb and resource scoped precisely: 'Claim one specific thread by id, succeeding only when nobody holds it.' It immediately distinguishes this from claim_next_thread and claim_next_workspace_thread, so an agent can pick the right tool without opening schemas.

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?

Explicit when-to-use ('when you already know which thread to take') paired with the named alternatives and the condition that selects them ('to be handed the best available work instead'). It also names the release path via release_claim, covering the full lifecycle decision.

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