Skip to main content
Glama

Cloud for Bots

lock

[bot-coord] Named locks (leases) shared by every bot on your account, e.g. browser.lock. Actions: acquire (name, holder?, ttl_s? default 60, wait_s? up to 25), renew (name, token, ttl_s), release (name, token), status (name), list. Auto-releases at expiry; fence increases with each new holder. Free: 1,000 locks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
tokenNo
ttl_sNo
actionYes
holderNo
wait_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 substantial work: it discloses auto-release at expiry, that the fence increments per new holder, ttl_s defaults to 60, wait_s is capped at 25, and there is a 1,000-lock free-tier ceiling. It still omits failure/contention behavior and what each action returns, so it is not fully transparent.

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 the resource definition before the action list, and the terse per-action parentheticals pack a lot of parameter-to-action mapping into little space. The compressed shorthand is efficient but slightly dense, costing a bit of readability.

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 6-parameter, 5-action coordination primitive with no annotations and no output schema, the description covers acquisition semantics well but never says what status/acquire/list return (holder, token, fence, lock inventory), leaving the agent to guess at return values.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it largely does: it maps parameters to actions (name/holder/ttl_s/wait_s for acquire; name/token/ttl_s for renew; name/token for release; name for status), and supplies a default and a cap not present in the schema. It still does not explain where the token comes from (presumably acquire) or its format, so meaning is incomplete for one parameter.

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?

States a specific resource (named locks/leases shared across all bots on the account) and enumerates the exact action set it supports (acquire, renew, release, status, list). The example (browser.lock) and the note that locks are account-wide make it immediately distinguishable from siblings like queue, cron, or handoff.

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 action list implies when each mode applies (acquire to take a lease, renew to extend, release to free, status/list to inspect), which is meaningful guidance. However, there is no explicit statement of when a caller should prefer this over related coordination tools (queue, cron, handoff), and no stated preconditions beyond TTL defaults.

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.

Resources