Skip to main content
Glama

Inspect Agent Session Timeline

inspect_agent_session

Parse and redact .jsonl AI coding-agent sessions into a step-by-step flight timeline with exact secret and PII redaction counts, so you can audit what the agent did.

Instructions

Parse and redact an Antigravity, Claude Code, Codex, or custom .jsonl session into a step-by-step flight timeline with exact secret & PII redaction counts.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionIdOrPath": "<sessionIdOrPath>"
    },
    "name": "inspect_agent_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxStepsNoMaximum timeline steps to return (default 250)
includeSystemNoInclude system/checkpoint records (default false)
sessionIdOrPathYesSession ID (or unique prefix from list_agent_sessions) or absolute/~/ path to a .jsonl file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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 behavioral burden. It usefully discloses that secrets and PII are redacted and that exact redaction counts are reported, but it leaves the critical question unanswered: whether redaction is applied to the file on disk (a write) or only reported in the returned timeline. Permission requirements and any size or step limits are also unstated.

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?

A single front-loaded sentence that leads with the action and ends with the distinctive output characteristic (exact redaction counts). It is dense but waste-free; the only cost is that the stacked noun phrase ("Antigravity, Claude Code, Codex, or custom .jsonl") is slightly heavy at the front.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 does the right thing by sketching the return value (a step timeline plus redaction counts). However, for a tool that parses and redacts session logs it omits side-effect posture and expectations about very large sessions, leaving a meaningful gap relative to its complexity.

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%, so all three parameters (sessionIdOrPath, maxSteps, includeSystem) are already documented with defaults and formats. The description adds only that the input is a .jsonl session and that output is redacted, which is marginal value over the schema rather than compensating 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?

The description gives a specific verb pair ("Parse and redact") applied to a concrete resource (an Antigravity, Claude Code, Codex, or custom .jsonl session) and names the output artifact (a step-by-step flight timeline with redaction counts). That specificity separates it from export_session_replay and list_agent_sessions by implication, though it never explicitly states how it differs from the sibling inspect tool.

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?

There is no when-to-use guidance, no prerequisites, and no named alternative. An agent must infer from the name and the supported-format list whether this is the right call versus app_inspect_session, open_agent_blackbox, or export_session_replay; the description provides no routing signal at all.

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