Skip to main content
Glama

Who holds a shared operation

operations
Read-onlyIdempotent

Call this before you start a shared operation such as a deploy or a restart (deploy:production, restart:api), to see whether another agent is already doing it. For a repository it lists the operations an agent holds, or held in the last 24 hours: the operation, who holds it, since when, until when the hold lasts unless it is renewed, and the last heartbeat. If someone holds the operation you need, wait for them rather than starting it again. Give operation to ask about one. Operations are claimed with the agent pack's op-claim on the repository's operations issue; this tool only reads them. Read-only, and it never fails: if they cannot be read it says why.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "operations"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNoowner/name. Optional when the token covers one repository.
operationNoOnly this operation, e.g. deploy:production.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description still adds real behavior beyond them: the 24-hour look-back window, hold expiry and renewal semantics, heartbeat tracking, and the guarantee that it never fails but reports why reads failed. That is meaningful added context over the annotations.

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?

The first sentence front-loads the trigger and purpose, and subsequent sentences cover filtering, return fields, and the read-only boundary. Every sentence carries information, though the long middle sentence packs the return shape into a dense clause list that could be tightened.

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?

There is no output schema, so the description must describe return values itself, and it does: operation, holder, since, until, heartbeat, plus the 24-hour window. It also covers failure behavior and the read-only constraint, leaving nothing an agent needs before calling.

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 100%, so baseline is 3; the description earns above that by explaining the effect of each parameter ("Give operation to ask about one", "For a repository it lists the operations") and by giving example operation identifiers (deploy:production, restart:api) that illustrate the namespaced pattern. It does not restate the repo fallback rule in detail, but the schema covers it.

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 description opens with a specific verb-and-resource statement ("see whether another agent is already doing it" for a shared operation) and spells out the return shape: operation, holder, since/until, heartbeat. It is clearly distinguishable from claim-oriented tools. It does not differentiate itself from the similarly named sibling who_holds, which is the one ambiguity it leaves open.

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?

It states exactly when to call ("before you start a shared operation such as a deploy or a restart"), what to do with a positive result ("wait for them rather than starting it again"), and where claiming lives instead ("Operations are claimed with the agent pack's op-claim... this tool only reads them"). Both the trigger and the not-this-tool boundary are explicit.

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