Skip to main content
Glama

Remove a player from a relay session

edgegap_revoke_relay_user
DestructiveIdempotent

Revoke a player's relay access using their authorization token while keeping the session and other players connected.

Instructions

Revoke one player's access to a relay session, by that player's authorization token (from edgegap_get_relay_session or edgegap_authorize_relay_user). The player loses the relay connection; the session and the other players stay.

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": {
      "session_id": "<session_id>",
      "user_authorization_token": "<user_authorization_token>"
    },
    "name": "edgegap_revoke_relay_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoShow the exact request (method, host, path, body) with secrets masked, and send nothing. Local checks still run. Use it to confirm a billable or destructive call before making it.
session_idYesThe relay session_id, e.g. "0724828881e2-S".
user_authorization_tokenYesThe player's authorization token, not the session's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false, so the safety profile is covered; the description adds the crucial blast-radius detail that only this player's relay connection is lost while the session and other players persist. It does not mention permission requirements or the dry_run option, though the schema documents the latter.

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?

Two sentences, no filler, with the action and its effect front-loaded and the scope-limiting caveat immediately after. Every clause conveys information an agent needs.

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?

For a three-parameter destructive mutation with no output schema, the description covers action, identifier source, and blast radius. What remains uncovered, such as return value and error cases for an invalid or already-revoked token, is minor given idempotentHint and full schema documentation.

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 would be 3; the description earns extra credit by stating that the token belongs to the player (not the session) and by tracing where that token comes from. It adds no format or validation detail for session_id beyond the schema example.

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 and scope: revoke one player's access to a relay session, identified by that player's authorization token. The clause 'the session and the other players stay' distinguishes it from edgegap_delete_relay_session without ambiguity.

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?

Guidance for obtaining the required token is explicit, naming edgegap_get_relay_session and edgegap_authorize_relay_user as the upstream calls. It does not explicitly state when to use edgegap_delete_relay_session instead, though the 'session stays' line strongly implies the boundary.

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