Skip to main content
Glama

lock_release

Release a named lock you hold so other agents can proceed; provide its name and owner, and non-owners are told who holds it.

Instructions

Release a named lock you hold. Only the owner can release it; anyone else gets an answer naming the holder.

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": {
      "name": "<name>",
      "owner": "<owner>"
    },
    "name": "lock_release"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ownerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a real behavioral trait: enforcement of ownership and the failure behavior for non-owners (a response naming the holder). It leaves out what happens if the lock does not exist (error vs no-op), idempotency, and whether lock names are global or scoped, which keeps it from a 5.

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 short sentences with zero filler, and the primary action is front-loaded ahead of the ownership caveat. Nothing is repeated from the schema or title.

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 simple two-parameter release tool with no annotations and no output schema, the description covers the main action and the ownership failure path, which is the most important thing an agent needs. Gaps remain around missing-lock behavior, return values, and the exact identity format expected for 'owner'.

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%, so the description must supply meaning for both required parameters. It clarifies that 'name' identifies the lock and that 'owner' must correspond to the caller who holds it, but it does not say what form the owner takes (user id, token, session) or whether the name must match exactly.

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 and resource ('Release a named lock you hold') and scopes it to locks the caller owns, which distinguishes it from lock_acquire without naming the sibling. The purpose is immediately legible, though it does not explicitly contrast with lock_list or other lock tools.

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 phrase 'you hold' implies this is for locks you acquired, giving an implicit usage condition, and the ownership rule tells the agent who may call it. There is no explicit when-to-use/when-not-to-use guidance or named alternative, so the agent must infer the workflow from lock_acquire and lock_list.

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