Skip to main content
Glama

List relay sessions

edgegap_list_relay_sessions
Read-only

List active relay sessions with ID, status, readiness, and player count to identify leftover billable sessions for cleanup.

Instructions

List this organization's active relay sessions: id, status, readiness and player count. Relay sessions bill while open, so use this to find ones left over from earlier sessions and delete them with edgegap_delete_relay_session. Authorization tokens are not listed; read one session with edgegap_get_relay_session.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
totalNo
showingNo
sessionsNo
next_stepNo
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "sessions": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "error": {
      +            "type": "string"
      +          },
      +          "linked": {
      +            "type": "boolean"
      +          },
      +          "players": {
      +            "type": "number"
      +          },
      +          "ready": {
      +            "type": "boolean"
      +          },
      +          "relay": {
      +            "type": "string"
      +          },
      +          "session_id": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "showing": {
      +      "type": "number"
      +    },
      +    "total": {
      +      "type": "number"
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Addedv0.7.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds value the annotations cannot: sessions incur billing while open, results are scoped to the caller's organization, and authorization tokens are intentionally omitted from the output. The main gap is pagination or result-size behavior for a list operation, which could matter when hunting for stale sessions.

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 sentences with no wasted words: what is returned, why it matters with the billing stake, and what is excluded plus the pointer to the single-session tool. The valuable billing context is front-loaded right after the field list.

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

Completeness5/5

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

An output schema exists and the tool has zero parameters, so the description need not explain return shapes or inputs. It still covers scope, cost implications, omitted data, and the natural follow-up delete call, leaving nothing an agent needs before invoking it.

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?

The tool takes no parameters, so there is nothing beyond the schema to explain and the baseline of 4 applies. The description correctly implies a fixed, unfiltered listing of the organization's active sessions rather than suggesting hidden filter options.

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 resource ("List this organization's active relay sessions") and names the fields returned (id, status, readiness, player count). The 'active' scope qualifier and the contrast with reading a single session make it distinguishable from edgegap_get_relay_session without opening either schema.

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

Usage Guidelines5/5

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

Explicitly names the use case (find leftover sessions from earlier runs) and pairs it with the follow-up action (delete them with edgegap_delete_relay_session). It also redirects single-session inspection to edgegap_get_relay_session, giving the agent both when-to-use and the correct alternative.

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