Skip to main content
Glama

claim_task

Atomically claim an open task from the shared board, securing it with a lease that prevents swarm stalls. After claiming, retrieve the briefing to start work.

Instructions

Atomically claim an open task. Fails if it is taken or not ready.

The claim carries a lease: if you stop renewing it (update_task renews automatically) the task returns to the board so the swarm never stalls on a crashed agent. After claiming, call get_briefing before starting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes
agent_idYes
lease_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
project_idYes
titleYes
descriptionNo
roleNoSuggested agent role, e.g. 'implementer'.any
priorityNo1 = highest, 3 = lowest.
statusNoopen
depends_onNo
claimed_byNo
lease_expires_atNo
iterationNoHow many review round-trips this task has had.
summaryNoCompletion summary written by the finishing agent.
artifactsNoPaths/URLs produced by the task.
created_atYes
updated_atYes
Behavior5/5

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

With no annotations provided, the description fully discloses the atomic claim, lease mechanism, failure behavior, and the implication that update_task renews the lease. It explains how the task returns to the board on agent crash, ensuring no stalls. This is comprehensive for a tool without annotations.

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 description is concise with two paragraphs, front-loading the core action. However, the second paragraph is a block of text that could be broken down for clarity. It is still short and to the point.

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?

The description covers the primary behavior, failure conditions, lease lifecycle, and next steps. Given that an output schema exists (though not shown), missing return value details are acceptable. It does not address permissions or error codes, but the core functionality is well-covered.

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%, but the description only mentions the lease concept without explaining any of the three parameters (task_id, agent_id, lease_seconds). It does not define what agent_id represents or how lease_seconds affects the lease. The agent would need to infer parameter meanings from context, which is insufficient.

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 clearly states the tool atomically claims an open task, specifies failure conditions (taken or not ready), and distinguishes from siblings like complete_task and get_briefing. The verb 'claim' and resource 'task' are specific and unique.

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?

The description provides explicit post-claim guidance ('call get_briefing before starting') and implies usage in a workflow with lease renewal via update_task. However, it does not explicitly state when not to use this tool or compare with other siblings beyond the workflow context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/H2SO4620/forgeswarm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server