Skip to main content
Glama
martinbechard

MCP Agent Operations

claim_acquire

Atomically claim a work item, file domain, or timed resource for an agent task, with repository scope enforcement and worktree isolation.

Instructions

Atomically acquire one work item, file domain, or timed resource.

Work-item scope uses work_item_id with activity work or update. Named resources require complete timing evidence resolved against PROJECT.yaml. Project-files excludes backlog and supports caller-requested isolation only beneath the primary worktree's canonical .worktrees/ root, with backlog omitted through worktree-specific sparse checkout. Schema-version-2 results preserve the package-owned claim engine's current outcomes, rejection fields, and exit codes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNoHEAD
taskYes
agentYes
filesNo
treesNo
branchNo
backlogNoSelect the complete primary-worktree-only backlog. Mutually exclusive with project_files and all_files; returns SHARED_CHECKOUT_REQUIRED from another checkout.
activityNo
claim_idYes
all_filesNoSelect the primary-worktree-only union of project files and backlog. Mutually exclusive with project_files and backlog; requires scope_reason.
resourcesNo
repositoryYes
resource_idNo
root_task_idYes
scope_reasonNoBounded coordination-only reason required for tree, project_files, and all_files ownership.
work_item_idNo
project_filesNoSelect project files excluding backlog. Mutually exclusive with backlog and all_files; requires scope_reason. Eligible isolation is placed at the canonical primary-worktree .worktrees/<claim-id> path with backlog omitted by sparse checkout.
worktree_pathNo
resource_classNo
parent_claim_idNo
compat_file_directoriesNo
expected_duration_secondsNo
requested_hard_stop_duration_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
exit_codeYes
Behavior3/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It adds valuable context: atomicity, project-files isolation under '.worktrees/<claim-id>', sparse-checkout omission of backlog, and preservation of 'outcomes, rejection fields, and exit codes.' However, it leaves many behavioral questions unanswered, such as conflict/locking behavior, side effects on existing claims, and actual exit-code semantics. The level of detail is moderate, not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with a clear one-line purpose, followed by scope-specific details and a compatibility note. It is relatively compact, but the final sentence about 'Schema-version-2 results' is cryptic and adds more confusion than value. Overall structure is logical but could be clearer.

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

Completeness2/5

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

The tool is highly complex (23 parameters, 5 required, no annotations), and the description does not cover essential invocation details like the meaning of required fields (repository, claim_id, agent, task, root_task_id), error outcomes, or how this relates to other claim operations. The presence of an output schema offsets the need to describe return values, but the input semantics are only partially explained. This is insufficient for confident invocation without further investigation.

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 only 17%, so the description must compensate for 23 parameters. It does clarify some parameter relationships, such as work_item_id with activity, and named resources requiring timing evidence against PROJECT.yaml. Yet most parameters (base, files, trees, branch, parent_claim_id, expected_duration_seconds, etc.) receive no explanation in either the schema or description. The description provides scope-level semantics but does not adequately cover the parameter space.

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 opens with a specific verb and resource types: 'Atomically acquire one work item, file domain, or timed resource.' This clearly distinguishes claim_acquire from sibling lifecycle tools like claim_report, claim_status, and claim_release. The scope details further refine what 'acquire' means in different modes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides context for when to use this tool by outlining three acquisition scopes (work-item, file domain, timed resource) and their prerequisites, such as 'complete timing evidence resolved against PROJECT.yaml.' However, it does not explicitly compare this tool to alternatives like claim_extend or claim_release, nor state when NOT to use it. The usage guidance is implied rather than explicit.

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/martinbechard/mcp-agent-ops'

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