Skip to main content
Glama

Get a relay session

edgegap_get_relay_session
Read-only

Reads a relay session to check readiness and retrieve the relay address, ports, and authorized players with tokens; re-check sessions created without waiting for readiness.

Instructions

Read one relay session: whether it is ready, the relay address and ports, and each authorized player with their authorization token. edgegap_create_relay_session already waits for readiness; use this to re-read a session or one created with wait_until_ready false.

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_get_relay_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesReturned by edgegap_create_relay_session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true). The description adds value beyond them by disclosing the returned payload shape, including the fact that authorization tokens are exposed — useful for an agent reasoning about sensitive data. It does not mention token lifetime or rate limits, which keeps it short of 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?

Two sentences, front-loaded with the return content and followed by the routing guidance. No filler or restatement of the title.

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 one required parameter and no output schema, the description carries the return-value burden well by listing the fields the agent will receive. It is nearly complete, though it omits whether tokens expire or whether the session read can fail for non-existent IDs.

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?

There is a single parameter with 100% schema description coverage, and the schema already states it is returned by edgegap_create_relay_session. The description adds no format, sourcing, or validation meaning beyond that, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ("Read one relay session") and enumerates exactly what is returned: readiness state, relay address and ports, and authorized players with tokens. This distinguishes it cleanly from the create/delete/list siblings without needing their schemas.

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?

It names the sibling alternative explicitly (edgegap_create_relay_session) and states the conditions that select this tool: re-reading an existing session, or reading one created with wait_until_ready false. The implicit exclusion (don't call right after a default create, since that already waits) is stated directly.

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