Skip to main content
Glama

Claude Code sessions across accounts

sanecode_sessions
Read-only

List the recent Claude Code conversations in each account: title, project folder, when it was last active, and whether it stopped on a usage limit (and when that resets). Titles and folders only, never the conversation's content.

Use it when: the user asks "which sessions stopped?", "what was I working on in work?", "is the migration still running?"; before sanecode_continue_in_account with a session title; after sanecode_activity, to see where things stand.

Don't use it for: reading what a conversation said (SaneCode doesn't read conversations); what SaneCode did (use sanecode_activity).

Returns one line per session, newest first, for example: "work · 'Migrate API to Hono' · D:/app · active 12 min ago · stopped on its limit, resets today 19:00". "Active N min ago" is when its last message was written: a few minutes means it's probably still working; "stopped on its limit" means it's waiting for that reset. Free.

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

Input Schema

NameRequiredDescriptionDefault
limitNoSessions per account, newest first. Default 5.
accountNoOnly this account's sessions. Leave out for every account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial behavior the agent otherwise couldn't know: it reads metadata never conversation content, it costs nothing ("Free."), results are ordered newest first, and it explains how to interpret "active N min ago" versus "stopped on its limit." The privacy boundary and the freshness semantics are exactly the kind of context annotations cannot express.

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?

Effectively front-loaded and segmented with "Use it when", "Don't use it for", and "Returns" blocks, so an agent can scan for the decision-relevant parts. It runs slightly long between the quoted sample line and the interpretive sentence about active timestamps, but that sample carries real decoding value rather than padding.

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?

There is no output schema, and the description compensates fully by describing the return shape as one line per session with a concrete example and by interpreting the ambiguous status fields. Combined with an optional-parameter schema and a safe read-only profile, an agent has everything needed to call this and read the result correctly.

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 coverage is 100%, so both `limit` (per-account, default 5, max 20) and `account` are already documented in structured form. The description reinforces the per-account framing ("Sessions per account", "in each account") but adds no syntax, format, or edge-case guidance beyond the schema, so 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?

Names a specific verb and resource ("List the recent Claude Code conversations in each account") plus the exact fields returned: title, project folder, last-active time, and limit-stop status. It also bounds the scope with "Titles and folders only, never the conversation's content," which cleanly separates it from a content-reading tool and from sanecode_activity.

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?

Provides explicit triggers with quoted user phrasings ("which sessions stopped?", "is the migration still running?"), sequencing advice before sanecode_continue_in_account and after sanecode_activity, and an explicit "Don't use it for" section naming both the content-reading case and the correct alternative sanecode_activity. Both when and when-not are covered with named siblings.

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