Skip to main content
Glama
OktoLabsAI

okto-nexus

by OktoLabsAI

handoff_claim

Atomically claim an OPEN handoff so only one agent wins; others receive a structured error. Returns the payload, claimed_by, and lease_expires_at; strict mode requires session credentials.

Instructions

Atomically claim an OPEN handoff; single winner, others get a structured error. Returns the payload + claimed_by/lease_expires_at. In strict mode pass session_id + session_secret.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesYour agent_id (the worker); scopes visibility/eligibility and ownership. REQUIRED.
handoff_idYesThe handoff_id to act on. REQUIRED.
session_idNoYour session_id from session_open (optional in trust_mode=open; REQUIRED together with session_secret in trust_mode=strict).
project_rootYesAbsolute path to the project (defines the workspace scope).
session_secretNosession_secret from session_open for session_id (optional in open mode but VALIDATED if supplied; REQUIRED in strict mode).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.10

TDQS

A4.2/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 well: it discloses atomicity, the single-winner outcome, the structured error for losers, the auth requirement in strict mode, and the returned fields (payload + claimed_by/lease_expires_at), which implies a lease/ownership model. It stops short of stating lease duration, renewal expectations, or whether a claim can be released, which would matter for a state-mutating coordination primitive.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the core behavior, then the return contract, then the conditional auth note. No filler and nothing buried.

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?

An output schema exists, so return-value detail need not be expanded, and the description correctly covers concurrency semantics, auth modes, and failure shape. What's missing is post-claim lifecycle context (what the lease implies, and that handoff_complete/reject/cancel are the follow-up actions), which would help an agent plan the next step.

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

Parameters3/5

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

Schema description coverage is 100%, so all five parameters are already documented in the schema. The description's mention of session_id + session_secret in strict mode restates what the schema descriptions already say, adding no new parameter semantics. Baseline 3 applies.

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 (claim), resource (handoff), and precondition (OPEN), plus the key semantic property (atomic, single winner). An agent can immediately distinguish it from handoff_create, handoff_list_available, handoff_get, and handoff_complete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit conditional guidance for trust_mode=strict (pass session_id + session_secret), which tells the agent when extra credentials are needed. It does not, however, contrast itself against adjacent siblings like handoff_get or handoff_verify, so the when-not guidance is incomplete.

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