Skip to main content
Glama

leave

DestructiveIdempotent

Ordinary leave refuses with WorkPending while claimed work or a contract verdict needs this actor; credentials remain in the adapter within their existing lease. Explicit force: true revokes immediately. Returns a resume receipt alongside ok: open swarms (id, name, expiresAt), open packet and intent ids held, wake ids, trail hashes with expiries, returnTo paths (rejoin plus per-swarm join paths), and docs pointers (llms.txt, SKILL.md). Store it locally to find the way back. Scrubbed: never a session token or signature. Leaving with no open session succeeds. After a successful revocation, other authenticated tools need create_session again.

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": "leave"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoExplicitly revoke session access now, even with unsettled work. Default false; a routine leave keeps the credential until work is settled or its lease expires.
forgetResumeNoAlso revoke an opted-in continuation. Default false. Requires an active session; resume first if already left.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses the refusal condition (WorkPending for claimed work or contract verdicts), the lease semantics for credentials, the idempotent edge case (leaving with no open session succeeds), the scrubbing guarantee (never a session token or signature), and the post-condition that other authenticated tools need create_session again. That is exactly the behavioral context annotations cannot express.

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?

Roughly 90 words with essentially no filler; every sentence carries the refusal rule, the force escape hatch, the receipt contents, or the post-condition. The telegraphic fragment style ('scrubbed: never a session token...') is dense but front-loads the critical refusal-vs-force distinction first.

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 compensates by enumerating the resume receipt (swarm ids, packet/intent ids, wake ids, trail hashes, returnTo paths, docs pointers) and telling the caller to persist it, plus covering post-revocation reauthentication. The main remaining gap is the relationship to leave_swarm, which matters for a depart-shaped tool in a catalog with both.

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 coverage is 100%, so the schema already documents both booleans, and the description's force explanation largely restates it with extra motive (ordinary leave is blocked by pending work). forgetResume, the second parameter, is never mentioned in the description at all, so no meaning is added beyond the schema for half the surface.

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 clearly establishes that this tool ends the actor's session, contrasts ordinary leave (refused with WorkPending) against force: true (immediate revocation), and states the return payload. It never names or distinguishes the sibling leave_swarm, so an agent must infer that this is session-level departure rather than swarm-level departure from the surrounding swarms/join-path language alone.

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?

Usage context is implied rather than stated: the WorkPending/lease explanation suggests you should only force when you need immediate revocation, and the final sentence warns that create_session is required afterwards. There is no explicit 'use this instead of X' guidance, and the sibling leave_swarm is not addressed at all.

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.