Skip to main content
Glama

analyze_transcripts

Read-onlyIdempotent

Inspect JSONL transcript files or directories read-only to detect prompt-cache busts, compaction points, retry loops, top token-consuming tools, and estimated USD cost or savings.

Instructions

Strictly read-only analysis of a JSONL transcript file or directory. Detects prompt-cache bust events, compaction inflection points, retry loops, top tools by attributed tokens, and estimated USD cost/savings. Performs zero writes and zero network calls.

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": {
      "path": "<path>"
    },
    "name": "analyze_transcripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to a JSONL transcript file or directory of JSONL files.
output_formatNoOutput format: 'json' for structured payload or 'markdown' for summary table.json
compact_thresholdNoContext token threshold for compaction inflection detection.
post_compact_targetNoTarget context tokens after compaction for savings estimation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=false, so 'strictly read-only' and 'zero writes and zero network calls' largely restate structured data rather than add to it. What does add value is the enumeration of the analyses performed and the fact that it accepts a directory as well as a single file. No notes on cost, runtime, or handling of malformed JSONL.

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 short sentences, front-loaded with the scope and safety statement before the capability list. Slight waste: 'Strictly read-only' and 'Performs zero writes and zero network calls' say nearly the same thing and both duplicate the annotations.

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?

With no output schema, the description usefully carries the return-value burden by naming the five result categories, and the fully documented schema covers the inputs. The only remaining gap is that the difference in shape between the json and markdown output modes is left to the schema's enum description.

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 four parameters are already documented, and the description adds no syntax or format detail beyond them. It does implicitly tie 'compaction inflection points' and 'savings' to compact_threshold and post_compact_target, giving light semantic linkage, but nothing about defaults or how thresholds change results. 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?

States a specific verb ('analysis') plus a precise resource ('a JSONL transcript file or directory') and then enumerates exactly what it detects: cache busts, compaction inflection points, retry loops, token attribution, and cost/savings. An agent can tell instantly that this is a transcript forensics/analytics tool and not the metadata-oriented sibling.

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?

Usage is implied by the resource statement — point it at a JSONL transcript to get an analysis — but there is no explicit when-to-use/when-not-to-use guidance and no mention of alternatives or preconditions. The single sibling (forensics_about) is not referenced, so routing between them is left to inference.

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

Deploy Server

Other Tools