Skip to main content
Glama

claim_task

Claim a queued task from a project for an agent, automatically selecting an eligible task or targeting a task_id, with lease TTL and response field controls.

Instructions

Claim a task: auto-pick takes the best queued task of the required project; with task_id the call is unscoped and also accepts a blocked task. agent defaults to "unknown"; lease_ttl_min overrides the default for this claim only (<=1440, larger refused). fields adds task fields to the response; max_field_chars truncates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "claim_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoagent name; defaults to "unknown" when omitted; <=200 code points
fieldsNoextra fields to include in the response
projectNoproject slug; required on every enumerating call (no default, no all-projects mode)
task_idNo
lease_ttl_minNolease TTL in minutes for this claim; overrides the server default for this claim only; <=1440
max_field_charsNotruncate each string field to N code points, marker …(+N chars); omitted = full text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say the call is a non-idempotent, non-destructive mutation with no external side effects; the description adds real behavior — leasing semantics, that an oversized lease_ttl_min is refused (>1440), that overrides apply to this claim only, and that field truncation occurs. Missing is failure behavior when the task is already claimed or when no queued task exists.

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?

Front-loaded with the core action and the mode split, then parameter notes in a dense semicolon chain with no filler. Slightly compressed to the point of terseness ('the call is unscoped'), but nothing is wasted.

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

Completeness3/5

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

For a 6-parameter mutation with no output schema and no annotations describing return shape, the description should say what a successful claim returns and what happens when no task qualifies or the lease is lost. The claim that `project` is required also conflicts with the schema's zero required parameters, leaving the agent to guess.

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 already 83%, yet the description still adds conditional semantics: `project` is described as required for enumerating mode (despite the schema's empty required list), and `task_id` switches the call to unscoped behavior that accepts blocked tasks. Defaults for `agent` and the per-call scoping of `lease_ttl_min` are restated as understood behavior.

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 ('Claim a task') and immediately disambiguates two operating modes: auto-pick against a required `project`, versus unscoped claim by `task_id`. An agent can distinguish this from get_task/list_queue/update_status purely from this text.

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?

Explicitly says when to use each mode ('auto-pick takes the best queued task of the required project' vs 'with task_id the call is unscoped and also accepts a blocked task'). It lacks an explicit when-not clause, e.g. what to do when the queue is empty or when browsing is preferable.

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