Skip to main content
Glama

previous_sessions

Inspect prior Host invocation START/END journal snapshots without replaying commands. Read-only metadata for reviewing past session activity, not proof of side effects or original argv.

Instructions

Use to inspect prior Host invocation START/END journal snapshots without command replay. Read-only metadata; journal-only records are not proof of no side effects or original argv.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it declares 'Read-only metadata' and warns that journal-only records are not proof of no side effects or original argv. That caveat is exactly the kind of behavioral context an agent needs. It does not cover scope/retention or ordering, which keeps it below 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.

Conciseness4/5

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

Two short sentences, front-loaded with the purpose and followed by the important caveat; no filler. The phrasing is dense jargon ('START/END journal snapshots') that a first-time agent may need to parse, but nothing is wasted.

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?

A parameterless read-only tool with an output schema: the description supplies purpose, read-only status, and the key interpretation caveat, and the output schema covers return structure. Nothing an agent needs in order to call it correctly is missing.

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, so there is nothing parameter-level to explain and the baseline of 4 applies. The schema is trivially complete and nothing in the description is needed to disambiguate inputs.

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 ('inspect') and a specific resource ('prior Host invocation START/END journal snapshots'), with the qualifier 'without command replay' narrowing what it does. It does not explicitly name how it differs from near-neighbors like previous_output, list_sessions, or recovery_overview, but the resource is distinct enough for an agent to distinguish it.

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?

'Use to inspect...' implies the usage context, and 'without command replay' implicitly contrasts with replay-oriented siblings such as run_command. There is no explicit when-not guidance and no sibling is named as an alternative, so the routing signal is only implied.

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