Skip to main content
Glama

File Reservation Paths

file_reservation_paths

Request advisory file leases on project-relative paths or globs to coordinate coding-agent edits and prevent conflicting changes.

Instructions

Request advisory file reservations (leases) on project-relative paths/globs.

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": {
      "project_key": "<project_key>",
      "agent_name": "<agent_name>",
      "paths": "<paths>"
    },
    "name": "file_reservation_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesFile paths or glob patterns relative to the project workspace (e.g., "app/api/*.py").
formatNo
reasonNoOptional explanation (helps humans reviewing Git artifacts).
exclusiveNoIf true, exclusive intent; otherwise shared/observe-only.
agent_nameYes
project_keyYes
ttl_secondsNoTime to live for the file_reservation; expired file_reservations are auto-released.
registration_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / agent_name / description
      Added value: +""
    • addedInput schema / properties / exclusive / description
      Added value: +"If true, exclusive intent; otherwise shared/observe-only."
    • addedInput schema / properties / paths / description
      Added value: +"File paths or glob patterns relative to the project workspace (e.g., \"app/api/*.py\")."
    • addedInput schema / properties / project_key / description
      Added value: +""
    • addedInput schema / properties / reason / description
      Added value: +"Optional explanation (helps humans reviewing Git artifacts)."
    • addedInput schema / properties / ttl_seconds / description
      Added value: +"Time to live for the file_reservation; expired file_reservations are auto-released."
  2. First observedv0.3.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. The word 'advisory' and 'leases' do convey the locking model, which is valuable, but it never says what happens on path conflicts, whether reservations block other agents, what authorization/registration is required, or that reservations expire and auto-release — all critical behavior for a reservation tool.

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?

A single, front-loaded sentence with zero filler. It is efficient, though its brevity reflects under-specification rather than discipline.

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?

Against an 8-parameter, mutation-like tool with undefined lifecycle semantics and several undocumented parameters, one sentence is insufficient. The presence of an output schema excuses return-value explanation but not the missing conflict, exclusivity, and prerequisite context.

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 coverage is only 50% and 8 parameters exist. The phrase 'project-relative paths/globs' reinforces the paths parameter, but format, agent_name, project_key, and registration_token get no explanation in the description and have empty or absent schema descriptions. The description does not compensate for that gap.

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 ('Request'), a specific resource ('advisory file reservations (leases)'), and a scope ('project-relative paths/globs'). The verb distinguishes it from the release/renew/force_release siblings without naming them, though it doesn't explicitly contrast with those alternatives.

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?

'Request advisory ... reservations' implies a lifecycle entry point before renew/release, which hints at when to use it, but there is no explicit when-to-use, no preconditions, and no mention of the sibling release/renew/force_release tools that an agent would need to complete the workflow.

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