Skip to main content
Glama

checkout_task

Idempotent

Atomically acquire an exclusive, TTL-based lock on a task to prevent other agents from checking it out at the same time. Use before starting work to ensure exclusive access.

Instructions

Atomically acquire an exclusive lock on a task. Prevents other agents from checking out the same task simultaneously. The lock is TTL-based and will expire automatically after ttl_minutes (default 120). Use before starting work on a task to ensure exclusive access.

Input Schema

NameRequiredDescriptionDefault
task_idYesTask ID to check out.
ttl_minutesNoLock TTL in minutes (default 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds meaningful behavioral context beyond annotations: atomic acquisition, exclusivity, TTL-based auto-expiry, and the default TTL of 120 minutes. It omits failure behavior when a lock is already held and does not describe return values, but it is still substantially informative.

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 front-loaded with the core purpose and uses short, readable sentences. A minor redundancy exists between 'exclusive lock' and the following sentence explaining that other agents are prevented from checking out the same task, and the final usage sentence partially restates intent, but overall it is tight.

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 simple two-parameter lock tool with no output schema, the description covers purpose, exclusivity, TTL behavior, default value, and when to use. It omits important operational details such as what happens if the task is already locked, what the call returns, and whether to use release_task or extend_checkout afterward, leaving clear gaps for an agent managing the full lock lifecycle.

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 already documents task_id and ttl_minutes. The description repeats the default TTL value and task scope but adds no syntax, format, constraints, or edge-case meaning beyond what the schema provides. Baseline 3 is appropriate when the schema carries parameter semantics.

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 'acquire' and a specific resource 'exclusive lock on a task', and explains the effect of preventing simultaneous checkout. It does not explicitly name related siblings like release_task or extend_checkout to differentiate the lifecycle role, so it falls short of a 5.

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?

Gives explicit usage context: 'Use before starting work on a task to ensure exclusive access.' However, it does not mention when not to use this tool or point to alternatives such as release_task for cleanup or extend_checkout for TTL extension, so it lacks exclusions.

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