Skip to main content
Glama

AI Code Security Gate

Release Context Lock

release_lock

Release a lock — only the agent holding it can release it. Costs 1¢ per attempt.

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": {
      "file_path": "<file_path>",
      "agent_id": "<agent_id>"
    },
    "name": "release_lock"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
agent_idYes
file_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, closed-world behavior, so the bar is lower. The description adds two pieces of genuinely non-obvious context beyond that: an authorization constraint (caller must be the lock holder) and a per-attempt cost of 1¢, which matters especially given idempotentHint=false — retries are billed.

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?

Two short sentences with essentially zero waste, and the authorization constraint is front-loaded ahead of the cost note. The telegraphic style leaves gaps, but nothing present is filler.

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?

An output schema exists, so return values need not be described. Against that, a 3-parameter tool with 0% schema description coverage leaves the caller guessing about file_path and api_key, which is a meaningful shortfall for a mutating, paid operation.

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%, so the description must carry parameter meaning, and it largely does not. 'The agent holding it' hints at agent_id and 'a lock' hints at file_path, but neither is named, and api_key is entirely unexplained; the agent cannot tell from the description which value identifies the lock to release.

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 lock'), which an agent can easily distinguish from acquire_lock by the polarity of the operation. It does not explicitly name or contrast any sibling tool, so it stops short of full differentiation.

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 'only the agent holding it can release it' gives an implicit precondition for calling, which is useful usage context. However, there is no explicit when-to-use/when-not guidance and no mention of alternatives such as escrow_release.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.