Skip to main content
Glama

Macro File Reservation Cycle

macro_file_reservation_cycle

Reserve multiple file paths for an agent workflow and optionally release them at completion to prevent file conflicts across coding agents.

Instructions

Reserve a set of file paths and optionally release them at the end of the workflow.

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": "macro_file_reservation_cycle"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYes
formatNo
reasonNomacro-file_reservation
exclusiveNo
agent_nameYes
project_keyYes
ttl_secondsNo
auto_releaseNo
registration_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.3.4

TDQS

C2.4/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, yet it says nothing about conflict behavior, whether reservations are exclusive by default, TTL expiry, what a registration token is for, or whether release happens automatically or must be triggered. The only behavioral hint is "optionally release them at the end," which is far short of what a 9-parameter mutation tool requires.

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 single sentence is front-loaded and free of waste, so it is concise in the literal sense. But the brevity comes at the cost of substance for a complex macro tool, leaving it under-specified rather than tight.

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?

An output schema exists, so return-value explanation is not required. Still, a 9-parameter, non-annotated macro that overlaps three sibling tools needs far more than one sentence covering exclusivity, TTL, tokens, and the release lifecycle.

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 0% across 9 parameters, so the description must compensate and it largely does not. It touches only "paths" and, obliquely, "auto_release"; it adds no meaning for exclusive, ttl_seconds, reason, format, registration_token, agent_name, or project_key.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and resource ("Reserve a set of file paths") and hints at a compound workflow with "optionally release them at the end." However, it never clarifies that this is a macro bundling reservation plus release, and it gives no differentiation from the obvious siblings file_reservation_paths, release_file_reservations, and renew_file_reservations.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no statement of when to prefer this macro over file_reservation_paths or a manual reserve-then-release sequence, and no prerequisites or exclusions. Usage is only implied by the phrase "at the end of the workflow."

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