Skip to main content
Glama

work-access-tools

lock_acquire

Acquire a short-lived distributed lock so only one agent works on a resource at a time. Free: 50 calls/day, no signup. Pass back the api_key from your first response. Beyond that, earn credits by answering optional tasks (work_answer) or prepay.

Input Schema

NameRequiredDescriptionDefault
holderNo
api_keyNo
resourceYes
namespaceYes
ttl_secondsNo
work_answerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose useful operational facts — a 50 calls/day free tier, an api_key handshake, and a credit/prepay model — but says nothing about the core lock semantics: whether acquisition fails or blocks on contention, what a failed acquire returns, or what happens when the TTL expires. For a coordination primitive, that is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the text is short, but a large share of the body is monetization copy ('no signup', 'earn credits… or prepay') that is secondary for an agent deciding how to lock a resource. It is tight but not maximally earned.

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

Completeness2/5

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

A 6-parameter, nested-object tool with no annotations and no output schema needs more than three sentences. Missing are the return payload beyond the api_key mention, contention/failure behavior, TTL meaning, and namespace/resource scoping — all of which an agent needs to call this correctly.

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% across 6 parameters, so the description must compensate. It only explains two: api_key ('pass back from your first response') and work_answer ('optional tasks'). namespace, resource, holder, and especially ttl_seconds (bounded 5–3600) are entirely undocumented anywhere, leaving an agent to guess at scoping and expiry semantics.

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?

The first sentence gives a clear verb and resource — 'Acquire a short-lived distributed lock' — plus the intent ('so only one agent works on a resource at a time'). It is distinguishable from lock_release by the word 'Acquire', but the description never names the sibling tools, so the contrast is inferred rather than stated.

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 mutual-exclusion rationale implies when to call it, and the quota line hints at a cost tradeoff. But there is no guidance on when NOT to lock, how it pairs with lock_release, how to choose a namespace, or what to do on contention — an agent must infer the acquire/release lifecycle.

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.