Skip to main content
Glama

tasks_claim

Claim a task atomically for your session, starting work with a lease that automatically expires. Receive explicit reasons if the task is blocked, already claimed, or closed.

Instructions

Atomically claim a task for the current session, moving it to in_progress with a lease. A refused claim names its cause: held by another live claim ('task already claimed'), waiting on unfinished dependencies ('task blocked', naming the blockers -- finish those first), or already done/dropped ('task closed'). Re-claiming a task you already hold refreshes (heartbeats) the lease; a task whose lease has expired can be reclaimed. Release it with tasks_release or by closing it (tasks_update done/dropped); session_end releases all of a session's claims.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYestask id to claim
sessionNothe acting agent's session: the cc/<id> or cx/<id> on your briefing's 'Seam session' line, or a session name. Defaults to the connection's bound session, then a sole active ambient. Pass it whenever you have not run session_start and several agents are active -- the bare call is then ambiguous and fails rather than guesses.
session_idNothe acting agent's session ULID; takes precedence over session and the bound session
lease_secondsNolease duration in seconds before the claim lapses and the task becomes reclaimable (default 900)
Behavior5/5

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

Annotations are minimal (readOnlyHint=false, destructiveHint=false), but the description adds rich behavioral context: atomicity, lease mechanism, refusal causes (already claimed, blocked, closed), heartbeat effect, lease expiration, and that session_end releases all claims. No contradictions with 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 a single paragraph but well-structured: core action first, then refusal details, then reclaim/release behavior. Every sentence adds necessary information. A slight redundancy in the refusal explanation could be trimmed, but overall efficient.

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?

Given 4 parameters with full schema coverage, no output schema, and minimal annotations, the description is highly complete. It covers lifecycle (claim, reclaim, release), edge cases (expired leases, refusal), and relationships with sibling tools. Could optionally describe the return value, but not required.

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% with all 4 parameters described. The description adds value beyond the schema by explaining the purpose of the 'session' parameter (defaults, ambiguity when multiple agents) and the 'lease_seconds' default (900). It also contextualizes the 'id' parameter within refusal scenarios.

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 action: 'Atomically claim a task for the current session, moving it to in_progress with a lease.' It uses specific verbs (claim, moves) and resources (task, session, lease). It distinguishes from siblings like tasks_release, tasks_update, and session_end by mentioning them explicitly.

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?

The description provides explicit when-to-use and when-not-to-use guidance. It explains that re-claiming refreshes the lease, expired leases can be reclaimed, and tasks should be released via tasks_release or closed via tasks_update. It also describes refusal scenarios, helping the agent decide when to use alternatives.

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/0spoon/seamless'

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