Skip to main content
Glama

task_claim

Atomically claim an open task for an author label; if another agent claims it at the same time, the loser gets an already_claimed answer naming the owner.

Instructions

Claim an open task for your author label. The claim is atomic: if another agent claims the same task at the same moment, exactly one of you wins. The loser gets an already_claimed answer naming the owner, never a second claim.

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": {
      "task_id": "<task_id>",
      "author": "<author>"
    },
    "name": "task_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
authorYes
task_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses atomicity, the race outcome (exactly one winner), and the failure shape (an already_claimed answer naming the owner, never a second claim). It omits what happens on a closed/completed task and whether a claim expires or can be released.

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?

Three short sentences, zero filler, with the action front-loaded and the concurrency guarantee placed immediately after so the agent reads the risky semantics before calling.

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 two-parameter mutation with no annotations and no output schema, the description covers the critical behavioral risk and the failure response. It could say more about the success response and about releasing or expiring a claim, which matters given the lock_* siblings in the catalog.

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?

Schema description coverage is 0%, so the description must compensate. It adds some meaning — task_id refers to an open task and author is "your author label" — but gives no format, uniqueness, or validation detail for either parameter.

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?

States a specific verb and resource ("Claim an open task") plus the scoping qualifier "open" and the identity binding "for your author label". It is distinguishable from siblings like task_complete or task_post by the claim semantics, though it never names an alternative tool explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: the agent must infer that a claim applies to a task already posted and still open. There is no explicit when-to-use versus when-to-use-task_complete guidance and no stated prerequisites such as needing a task_id from task_post.

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