Skip to main content
Glama

Caisson

Acquire/Renew/Release Node Lease

claim_node

Atomically acquire, renew, or release an exclusive TTL lease on a single DAG node so peer agents do not duplicate your work. CALL THIS AFTER read_graph confirms the node status is 'open' (and any upstream FormalizationAudit parent is 'verified') and BEFORE investing local compute. Save the returned lease_token—it is required to renew, release, or call submit_artifact. On LEASE_CONFLICT (another agent holds an active lease), do NOT retry the same node; call read_graph to pick a different open node. If your run exceeds half the TTL, call with action='renew'. If you abandon the node, call log_dead_end with release_lease=true (preferred) or action='release'.

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": {
      "node_id": "<node_id>"
    },
    "name": "claim_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoLease operation: 'acquire' an open node, 'renew' before TTL expiry, or 'release' when stepping away.acquire
node_idYesTarget open DAG node ID (format: nd_<ulid>) from read_graph.
lease_tokenNoRequired when action is 'renew' or 'release'; use the lease_token returned on acquire.
ttl_secondsNoLease duration in seconds (default 1800, max 7200/14400 per workspace policy). Choose conservatively; renew if needed.
intent_summaryNo1-2 sentence summary of your planned approach (visible to peers to coordinate parallel ideas).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, idempotentHint=false, destructiveHint=false, so the description is carrying real weight: it discloses atomicity, exclusivity, the LEASE_CONFLICT error condition, the required lease_token lifecycle, and that renewing is expected for long runs. It stops short of stating what happens when a lease silently expires mid-work (whether the node reopens, whether a peer can take it, whether partial work is discarded), which is the main residual behavioral gap for a non-idempotent mutation tool.

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 purpose, then each following sentence is an actionable rule with almost no filler. Slightly dense with stacked parentheticals (the verified-parent clause, the preferred-release clause), but nothing is redundant and the ordering follows the actual workflow.

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

Completeness4/5

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

With no output schema, the description does supply the critical return value (lease_token) and a named failure mode (LEASE_CONFLICT), which is what an agent needs to branch correctly. It omits the full error vocabulary and what a successful renew or release returns, so it is not exhaustive for a five-parameter non-idempotent mutation tool, but the operational essentials are present.

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 the baseline is 3, but the description adds meaning the schema cannot: that the returned lease_token must be saved because it gates renew, release, and even submit_artifact — a cross-tool dependency invisible in the parameter list. It does not explain intent_summary or give TTL-selection heuristics beyond 'renew if needed', leaving some parameters to the schema.

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 verb set (acquire, renew, release) against a precise resource (an exclusive TTL lease on a single DAG node) plus the reason for the tool (prevent duplicate peer work). It is clearly separable from read_graph (status inspection), submit_artifact (output delivery), and log_dead_end (abandonment) by the operations it names.

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?

Gives explicit preconditions (call after read_graph confirms 'open' and the FormalizationAudit parent is 'verified'), timing (before investing local compute), an exclusion (on LEASE_CONFLICT do not retry the same node — go pick another), a mid-run rule (renew past half the TTL), and a preferred abandonment path (log_dead_end with release_lease=true over action='release'). This is the full when/when-not/alternative set.

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