Skip to main content
Glama
mattbaylor
by mattbaylor

release

Release an exclusive lock on a resource so other sessions can claim it. Automatically detects ownership; use force to override if owner is missing.

Instructions

Release a previously-claimed lock so other sessions can claim it. Returns ok:true with action=released (or already_free if it wasn't claimed). If the lock is owned by someone else, returns ok:false with error=owner_mismatch — pass force=true to override (rare; usually a sign you should let the real owner finish). Owner is auto-detected the same way as claim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoRelease even if the lock is owned by a different session. Use only when you know the actual owner is gone and cleanup didn't happen automatically.
ownerNoExplicit owner identifier. Omit to let mcp-locks auto-detect. Must match the current owner unless force=true.
instanceYesInstance name to release (e.g. 'playwright2').
Behavior5/5

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

No annotations provided, but description fully discloses return values (ok:true with action=released or already_free), error conditions (owner_mismatch), and force behavior. Also notes idempotency via 'already_free'.

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?

Two sentences, front-loaded with purpose, no unnecessary words. Every sentence adds essential information.

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

Completeness5/5

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

Given no output schema, the description explains return values and errors fully. Covers all relevant behaviors for a lock release tool, making it self-contained.

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

Parameters5/5

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

Schema coverage is 100% with descriptions, but description adds meaningful context: auto-detection of owner, force usage advice, and example error conditions, providing added value.

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 verb 'release' and the resource 'a previously-claimed lock', and distinguishes itself from siblings like 'claim' by explaining the effect on other sessions.

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

Usage Guidelines5/5

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

Explicitly warns against using force=true except in rare cases, and explains auto-detection of owner. Provides guidance on when not to force and what errors indicate.

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/mattbaylor/mcp-mcp-locks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server