Skip to main content
Glama

terminal_trace

Retrieve recorded terminal operations since server start to debug timing issues, analyze sessions with AI agents, or save trace JSON as a test artifact.

Instructions

Retrieve the recorded trace of all terminal operations since the server started. Each event has a t_ms timestamp, event type, session ID, and operation-specific fields. Useful for debugging timing issues, sharing with AI agents for analysis, or saving as a test artifact.

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

Input Schema

NameRequiredDescriptionDefault
save_pathNoFile path to save the trace JSON (optional)
session_idNoFilter trace to a specific session (optional — omit for all sessions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully reveals the trace's scope (everything since server start) and the shape of each event (t_ms, event type, session ID, operation-specific fields), but says nothing about whether the trace is bounded in memory, whether retrieval mutates or clears state, or any permission requirements.

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?

Three sentences, front-loaded with the core retrieval statement followed by return-shape and use-case detail. Every sentence is relevant, though the 'sharing with AI agents for analysis' clause is slightly promotional rather than operational.

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 two-optional-parameter read tool with no output schema and no annotations, the description covers purpose, scope, and return fields adequately. The remaining gap is behavioral: no note on trace retention limits or side effects of saving.

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 optional parameters are already documented in the schema. The description adds only indirect context — that events carry a session ID and that the trace can be saved as an artifact — without elaborating on save_path behavior (overwrite, format) or filtering semantics. Baseline 3 is appropriate.

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: 'Retrieve the recorded trace of all terminal operations since the server started.' The scope ('since the server started', 'all terminal operations') is clear, though it does not explicitly distinguish itself from siblings like terminal_export or terminal_screenshot.

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 concrete use cases (debugging timing issues, sharing for analysis, saving as a test artifact) that tell an agent when this tool is relevant. It stops short of naming alternatives or stating when not to use it, so it lacks exclusion guidance.

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