Skip to main content
Glama

agp_lease

Acquire, renew, release, or list workspace file and path leases with fencing tokens to prevent concurrent edit conflicts between coding agents.

Instructions

Acquire, renew, release, check (dry-run), force_release, or list workspace file/path leases with monotonic fencing_token protection to prevent concurrent edit conflicts.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "agp_lease"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoexclusive_write
pathsNoFile paths, globs, or lease_ids.
actionYes
ttl_secNo
owner_uriNoYour AGP URI (defaults to current session).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is partly covered. The description adds genuine value by explaining the monotonic `fencing_token` concurrency-protection mechanism and flagging check as a dry-run. It does not disclose what force_release overrides, whether renewing extends from now or from expiry, or what happens to holders when a lease is released, leaving a real gap for a non-idempotent multi-action tool.

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?

A single front-loaded sentence that enumerates the action set first and then the mechanism and rationale, with no filler. The action list slightly mirrors the schema enum, but for a six-action tool that redundancy aids scanning.

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 six-action, five-parameter tool with no output schema and 40% schema coverage, the description covers purpose and the concurrency model but omits per-action return info, TTL and mode semantics, and the dry-run result format. Annotations supply the safety hints, so the definition is workable but incomplete for correct invocation.

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%, so the description must carry meaning, and it does not. The mode enum (exclusive_write/shared_read), ttl_sec (default 120), and owner_uri are entirely unexplained, and the description adds nothing about how `paths` is interpreted for each action even though the schema only hints at 'file paths, globs, or lease_ids'.

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?

The description opens with a precise verb set (acquire, renew, release, check, force_release, list) bound to a concrete resource (workspace file/path leases) and states the underlying goal, preventing concurrent edit conflicts. The resource is distinct from the messaging/team siblings, though no sibling is named explicitly, which is why 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 Guidelines3/5

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

Each action name is listed and 'check (dry-run)' hints at when to use that action instead of a real acquire/release, but there is no explicit when-to-use or when-not guidance. Nothing tells the agent how to choose between acquire and renew, when force_release is appropriate versus release, or how to pick between exclusive_write and shared_read modes.

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