Skip to main content
Glama

Claim the next available task

pull_next_task

Step 3 of the Tango working agreement (own it). Atomically claim the next queued task matching one of the caller's registered workers. Returns the leased task; call get_task next for the full context bundle before starting work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
worker_idNoOptional. Defaults to the worker bound to this MCP connection (one worker per harness).
lease_secondsNoLease duration in seconds (default 2700 = 45 min, max 14400 = 4 h).

TDQS

A4/5.0
Behavior4/5

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

The annotations already signal readOnlyHint=false and destructiveHint=false. The description adds meaningful behavioral context: atomicity of the claim, lease semantics ('Returns the leased task'), and a limitation ('call get_task next for the full context bundle'). This goes beyond the annotations without contradicting them.

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?

Two sentences, front-loaded with the workflow step, then the core behavior, then the next-step instruction. Every clause earns its place; there is no filler or repetition.

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 the tool has no output schema and only two optional parameters, the description appropriately explains what the call returns and what to do next. It does not cover failure cases or concurrency behavior, but for its complexity level the operation is adequately specified for an agent to invoke correctly.

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 100%, so the schema fully documents both worker_id and lease_seconds. The description adds no parameter-specific detail beyond the schema; this is the expected baseline when the schema carries the load.

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 ('claim') and resource ('next queued task matching one of the caller's registered workers'). It conveys the atomic behavior and return value. However, it does not explicitly distinguish itself from the sibling tool claim_task, which is a very close name and likely overlapping purpose, so it misses the top score for sibling differentiation.

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?

Provides clear procedural context ('Step 3 of the Tango working agreement (own it)') and prescribes the immediately following action ('call get_task next...'). This is strong usage guidance, though it does not name alternatives such as claim_task or state when not to use this tool.

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.

TDQS

A3.7/5.0
Disambiguation3/5

Most tools target a distinct resource and action, but several adjacent pairs are easy to confuse: add_comment vs add_progress_note, call_executor vs call_integration, log_client_decision vs update_client_context vs memory_save, and list_context_sources vs list_integrations. The descriptions do disambiguate them, but the boundaries are subtle enough that misselection is likely with 81 tools.

Naming Consistency4/5

The overwhelming majority follow a clear verb_noun snake_case pattern (create_task, update_project, list_integrations, set_webhook), and get_/ list_/ create_/ update_ families are predictable. Minor deviations exist: memory_read/memory_save/memory_search invert to object_verb, and bare nouns like whoami, glossary, and security_posture break the pattern, but there is no chaotic casing or mixed conventions.

Tool Count2/5

At 81 tools, this is far above the weight that is comfortable for an agent's tool-selection surface, especially since many tools belong to families that could be consolidated (webhooks, worker keys, project logs, context/memory). Although the domain is broad, the count will overwhelm agents and increase misrouting.

Completeness4/5

The surface is unusually comprehensive: tasks, projects, workers, leases, artifacts, comments, handoffs, webhooks, keys, context, memory, integrations, and support all have create/read/update/delete or equivalent lifecycle coverage. The gaps are minor, such as remove_dependency without a visible add_dependency and no artifact/comment deletion, but agents can work around them.

Resources