Skip to main content
Glama
grandMA2 MCP
by drohi-r

inspect_sessions

Inspect active per-operator Telnet sessions to see open session counts, authenticated console users, and idle times, helping diagnose connection issues in multi-operator deployments.

Instructions

Inspect active per-operator Telnet session pool (SAFE_READ).

Returns a snapshot of the session manager's current state: how many
sessions are open, which console users they are authenticated as, and
how long each has been idle.  Useful for diagnosing connection issues
in multi-operator deployments.

Returns:
    JSON with session_count and a sessions list, each entry containing:
    identity, username, connected, idle_seconds, age_seconds.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly meets it: 'SAFE_READ' declares the non-mutating nature, and 'Returns a snapshot of the session manager's current state' makes clear this is a point-in-time read with no side effects. It does not mention permission requirements, whether inspecting has any cost, or staleness of the snapshot, but the operation's behavioral profile is otherwise clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence, then behavior, then a concrete use case. There is mild redundancy: the second sentence already says it reports count, users, and idle time, then the 'Returns:' block repeats the same fields — extra weight given an output schema exists, but not harmful.

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 zero-parameter read tool this covers purpose, snapshot semantics, use case, and return shape, so an agent has enough to call it correctly. The only shortfall is the absence of explicit sibling differentiation against the look-alike session-listing tool.

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 zero parameters, which is the baseline-4 case; there is nothing for the description to disambiguate. The empty schema is consistent with a whole-pool snapshot and needs no further explanation.

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?

Names a specific verb ('inspect') and a precisely scoped resource ('active per-operator Telnet session pool'), then enumerates what the snapshot contains (session count, authenticated console users, idle time). It never names a sibling such as list_agent_sessions to draw the line explicitly, so an agent must infer that this covers Telnet transport sessions rather than agent sessions.

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?

The line 'Useful for diagnosing connection issues in multi-operator deployments' gives a genuine use case, which is more than nothing. However, it offers no when-not-to-use condition and no explicit alternative for the adjacent concept of agent sessions, leaving routing to inference.

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

Deploy Server

Other Tools