Skip to main content
Glama

Moneda

list_active_sessions

Read-only

List the user's active login sessions (signed-in devices and clients: mobile app, web, CLI, API) and connected agents (MCP integrations). Use this to answer 'what devices am I signed in on?' or before terminating a session. Each login session has an id (pass to terminate_session), a type, device/location info, and lastActive. Each connected agent has an id (pass to disconnect_connected_service) and isThisConnection: true marks the agent making this call.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered; the description adds real value by describing the return shape: each session carries an id, type, device/location info and lastActive, and each connected agent carries an id plus an isThisConnection flag identifying the caller. It omits pagination/ordering behavior, which is the main remaining gap.

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 ordered purpose-first, then usage triggers, then return shape, with no filler. Every clause is load-bearing, including the id usage hints that tie the output to follow-up tools.

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 no output schema, the description carries the burden of explaining returns, and it does so at field-name granularity for both entity types. It does not fully specify the nested device/location structure or ordering, but an agent has enough to call it and route the results correctly.

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 and the input schema is an empty object at 100% coverage, so there is nothing for the description to disambiguate. Baseline 4 applies; no parameter guidance is needed or expected.

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?

States a specific verb and resource (list the user's active login sessions) and enumerates the concrete entity types returned: mobile app, web, CLI, API clients plus connected MCP agents. That makes the scope unambiguous. It stops short of explicitly distinguishing itself from the nearby list_agent_sessions sibling, leaving mild ambiguity between 'login sessions' and '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 Guidelines4/5

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

Gives two concrete triggers: answering 'what devices am I signed in on?' and checking before terminating a session, and names the downstream siblings terminate_session and disconnect_connected_service. There are no explicit exclusions or when-not conditions, so the agent must still infer that list_agent_sessions covers the other session type.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources