Skip to main content
Glama

agp_unregister

Idempotent

Gracefully sign off from the AGP mesh, mark the agent offline, and release all workspace file leases it holds so other agents can claim them.

Instructions

Gracefully sign off (peer.bye) from the AGP mesh, mark this agent offline, and release all workspace file leases it holds.

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

Input Schema

NameRequiredDescriptionDefault
reasonNoSession complete
agent_uriNoYour AGP URI (defaults to current session).
release_leasesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the peer.bye protocol message, the offline marking, and the fact that all held workspace file leases are released — the key consequence an agent needs to know. It does not say what happens to in-flight tasks or whether the release is atomic, keeping it below a 5.

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?

One front-loaded sentence that names the mechanism first and the effects after, with zero filler. Every clause (handshake, offline status, lease release) carries distinct information.

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

Completeness3/5

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

For a three-parameter teardown tool with no output schema, the description covers the primary effects but leaves the 'reason' and 'agent_uri' parameters unexplained and says nothing about failure modes or post-call state. Adequate to invoke correctly, but not complete.

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 only 33% — only agent_uri is documented in the schema. The description implicitly explains release_leases by saying all held leases are released, but gives no meaning for 'reason' (e.g., whether it is surfaced to peers) or for overriding agent_uri. Partial compensation for a real coverage gap.

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 names a specific verb ('sign off') and resource ('the AGP mesh') and enumerates the concrete side effects: peer.bye handshake, marking the agent offline, and releasing file leases. It is clearly the inverse of agp_register, though it never names that sibling explicitly.

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 is only implied by 'gracefully sign off' and the 'Session complete' default reason — an agent can infer this is an end-of-session teardown. There is no explicit when-to-use vs. when-not, no mention that agp_lease can release leases without unregistering, and no stated prerequisites.

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