Skip to main content
Glama

list-sessions

Read-only

Lists active SSH sessions for a given profile, so you can check which remote connections are currently open before running commands or managing hosts.

Instructions

List active sessions for a given SSH profile.

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

Input Schema

NameRequiredDescriptionDefault
profileNoProfile name (uses default if omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.31.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv2.5.0

TDQS

B3.2/5.0
Behavior3/5

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

readOnlyHint=true already declares this is a safe read, so the description only needs to add context. It contributes the meaningful qualifier 'active' (only live sessions, not closed ones) but says nothing about permissions, result volume, or ordering.

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?

One front-loaded sentence with no redundancy — the resource and scope come first. It is appropriately short for a one-parameter read tool, though it is arguably leaner than necessary.

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 simple, optionally-parameterized read tool with full schema coverage and a readOnlyHint, the description says enough to call it correctly. The gap is minor: it doesn't mention what happens when the profile is invalid or whether inactive sessions are excluded.

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% and the single 'profile' parameter is documented with its default behavior, so the schema does the work. The phrase 'for a given SSH profile' restates the schema field without adding format, resolution rules, or fallback detail.

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 ('List') and resource ('active sessions') scoped to an SSH profile, so the agent knows exactly what it retrieves. It does not distinguish itself from siblings such as list-connections or read-session-output, but the purpose itself is unambiguous.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance, prerequisites, or named alternatives. The agent must infer that this is a discovery step before open-session/close-session, and nothing clarifies how it differs from list-connections or read-session-output.

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