Skip to main content
Glama

Claim a task

taskthread_claim_task
Idempotent

Say you are working on a task now, so no other AI takes it at the same time. Refused, with the reason, when another AI holds it, owns it, or a person is assigned to it. The claim expires after 15 minutes (or minutes, up to 120) — every write renews it. With own: true the task also stays yours across chats until you release it. Claiming a task you already hold just renews it.

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": {
      "id": "<id>"
    },
    "name": "taskthread_claim_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTask id.
ownNoKeep the task as yours beyond this claim, for later chats.
minutesNoHow long to hold it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (idempotentHint, destructiveHint false), the description discloses the claim's 15-minute default lifetime, the 120-minute cap, that every write renews it, that own: true persists the claim across chats, that re-claiming only renews, and the refusal conditions with reasons. These are exactly the behavioral facts an agent needs to avoid races and stale locks, and none are derivable from the annotations or schema.

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

Conciseness5/5

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

Front-loaded with the core purpose, then refusal behavior, then expiry/renewal, then the `own` flag — a logical ordering with no filler. Every sentence carries distinct information, and the parenthetical '(`minutes`, up to 120)' efficiently links behavior to the parameter.

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

Completeness4/5

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

For a non-destructive mutation tool with no output schema, the description covers lifetime, renewal, persistence, idempotent re-claim, and refusal paths — essentially everything needed to call it correctly. What's missing is minor: it doesn't describe the successful return payload or whether a task must be in a particular status to be claimable.

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 100%, so the baseline would be 3, but the description goes further: it supplies the default hold time (15 minutes) for `minutes`, the 120 cap, that writes renew the timer, and that `own: true` extends ownership across chats until release. Only the strict relationship between `own` and `minutes` (e.g., whether a persistent claim still needs renewal) is left slightly ambiguous.

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 first sentence states a specific verb and effect: 'Say you are working on a task now, so no other AI takes it at the same time' — an exclusive claim/lock on a task. This is clearly distinguishable from siblings like taskthread_release_task or taskthread_complete_task, since the description frames the operation as taking and holding an exclusive claim rather than finishing or releasing work.

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

Usage Guidelines4/5

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

It gives a clear condition for use ('Say you are working on a task now') and spells out exactly when the call is refused: another AI holds or owns it, or a person is assigned. It also implies the exit path ('until you release it'), though it never explicitly names the release tool or states what to do after a refusal (e.g., pick another task), so alternatives are only implied.

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