Skip to main content
Glama

release_file_reservations

Release active file reservations held by an agent, either all at once or by IDs/path patterns, so other coding agents can edit those files without conflicts.

Instructions

Release active file reservations held by an agent.

Behavior

  • If both paths and file_reservation_ids are omitted, all active reservations for the agent are released

  • Otherwise, restricts release to matching ids and/or path patterns

  • JSON artifacts stay in Git for audit; DB records get released_ts

Returns

dict { released: int, released_at: iso8601 }

Idempotency

  • Safe to call repeatedly. Releasing an already-released (or non-existent) reservation is a no-op.

Examples

Release all active reservations for agent:

{"jsonrpc":"2.0","id":"13","method":"tools/call","params":{"name":"release_file_reservations","arguments":{
  "project_key":"/abs/path/backend","agent_name":"GreenCastle"
}}}

Release by ids:

{"jsonrpc":"2.0","id":"14","method":"tools/call","params":{"name":"release_file_reservations","arguments":{
  "project_key":"/abs/path/backend","agent_name":"GreenCastle","file_reservation_ids":[101,102]
}}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsNo
formatNo
agent_nameYes
project_keyYes
registration_tokenNo
file_reservation_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A3.9/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses idempotency ('safe to call repeatedly', already-released reservations are a no-op), the side effect on Git artifacts vs DB records ('JSON artifacts stay in Git for audit; DB records get released_ts'), and the return shape. This is exactly the behavioral context annotations would otherwise supply.

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?

Front-loaded with a one-line purpose followed by clearly headed Behavior/Returns/Idempotency/Examples sections, so an agent can scan to the relevant part. The two JSON-RPC examples are verbose but genuinely illustrative of the omitted-vs-ids invocation patterns.

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

Completeness4/5

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

An output schema exists, so the Returns section is largely redundant but harmless. Behavior, idempotency and usage examples are all present; the only real omissions are the undocumented 'format' and 'registration_token' parameters and any note on permissions/auth requirements for release.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 6 parameters, so the description must compensate. It meaningfully explains paths, file_reservation_ids, project_key and agent_name (via examples and the scoping rules), but leaves 'format' and 'registration_token' completely unexplained, which is a notable gap given auth-related parameters are involved.

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+resource ('Release active file reservations held by an agent'), which is clearly distinguishable from reservation-creating siblings like file_reservation_paths and renew_file_reservations. It does not, however, differentiate itself from the very close sibling force_release_file_reservation, leaving a real ambiguity unresolved.

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 Behavior section explains the parameter-driven scoping rules (omit both = release all; supply either = restrict), which implies usage. But it never states when to prefer this tool over force_release_file_reservation or what the difference is, so the agent must infer the choice between near-identical siblings.

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