Skip to main content
Glama

Delete a relay session

edgegap_delete_relay_session
DestructiveIdempotent

Close a single relay session by exact session_id, disconnecting connected players, to clean up test sessions before ending a task. Empty IDs, wildcards, and lists are refused.

Instructions

Close one relay session. Connected players lose their relay connection. Delete every session you created for testing before ending your task. Takes exactly one session_id; empty IDs, wildcards and lists are refused.

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>"
    },
    "name": "edgegap_delete_relay_session"
  }
}

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 exact session_id of the one session to delete, e.g. "0724828881e2-S".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Show 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.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / session_id / description
      Added value: +"The exact session_id of the one session to delete, e.g. \"0724828881e2-S\"."
  2. Addedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds real context beyond that: the player-facing impact (connected players lose their relay connection) and the fact that non-singular inputs are rejected. It does not say what the call returns or whether the operation is reversible.

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?

Four short sentences, front-loaded with the action, then impact, then the operational directive, then the input constraint. Nothing is redundant and nothing needs to be re-read.

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 two-parameter destructive tool with full schema coverage and rich annotations, this is nearly complete: impact, cardinality constraint and cleanup guidance are all present. The only gap is the absence of any statement about the response or confirmation behavior, and no output schema exists to cover it.

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 the baseline is 3. The description reinforces input semantics (exactly one exact session_id, empties/wildcards/lists refused) but says nothing about the dry_run parameter, which the schema itself documents well.

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?

"Close one relay session" gives a specific verb and resource, and the singular framing ("one", "exactly one session_id") separates it from list/get/create siblings and from bulk-delete patterns. It stops short of naming a specific alternative tool, so a 4 rather than a 5.

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?

Provides a concrete usage context: delete test-created sessions before ending the task. It also implies scope limits by refusing empty IDs, wildcards and lists, though it does not point at alternatives such as revoke_relay_user for removing a single participant.

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