Skip to main content
Glama
martinbechard

MCP Agent Operations

claim_extend

Atomically add same-domain scope to an existing claim—files, trees, resources, or backlog—without weakening ownership. Requires a scope reason for project-wide or all-files extensions.

Instructions

Atomically add same-domain scope without weakening existing ownership.

Backlog-domain or all-files extension from an isolated claim returns SHARED_CHECKOUT_REQUIRED. Mixed project/backlog extension returns structured INVALID_SCOPE; project-files and all-files require scope_reason.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNo
treesNo
backlogNoSelect the complete primary-worktree-only backlog. Mutually exclusive with project_files and all_files; returns SHARED_CHECKOUT_RELEASE_REQUIRED when another claim owns the shared checkout, or SHARED_CHECKOUT_REQUIRED from another checkout.
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
scope_reasonNoBounded coordination-only reason required for tree, project_files, and all_files ownership.
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.
compat_file_directoriesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
exit_codeYes
Behavior3/5

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

No annotations are present, so the description carries the full burden. It discloses atomicity and error conditions, which is helpful. However, it does not describe what happens on success, side effects, or how existing ownership is preserved beyond the brief 'without weakening existing ownership.' This is a mutation tool, so more behavioral detail would be expected.

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?

The description is two sentences, front-loaded with the core purpose, and each sentence provides necessary information (purpose + error conditions). No filler words or redundant content.

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?

This is a complex mutation tool with 10 parameters and no annotations. The description leaves key concepts undefined (same-domain, isolated claim, shared checkout) and fails to explain parameters like files/trees/resources. The existence of an output schema reduces the need to explain return values, but many operational details remain missing.

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 40% (4 of 10 parameters have descriptions). The description itself mentions 'project-files and all-files require scope_reason' and error conditions, but this largely repeats schema info and does not compensate for the undocumented parameters (files, trees, resources, compat_file_directories). It adds little semantic value beyond what the schema already provides.

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 add same-domain scope') and the resource (a claim's scope). It also specifies a constraint ('without weakening existing ownership') that distinguishes it from claim_acquire or claim_release. This is a specific verb+resource with a clear scope.

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 implied usage: you use this tool to extend a claim's scope. It also mentions error conditions (e.g., isolated claim returns SHARED_CHECKOUT_REQUIRED) which serve as exclusions. However, it never explicitly names alternative tools or contrasts when to use claim_extend vs. claim_acquire/release.

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