Skip to main content
Glama

ts_discover

Scan Claude Code transcripts for missed Token Savior opportunities and report TS-vs-native adoption ratios with trend analysis.

Instructions

Scan Claude Code transcripts for missed Token Savior opportunities (native-call chains that should have been a single TS call) and/or report TS-vs-native adoption ratios. Scans ALL transcript projects by default; pass project= to filter. format='table' (default) or 'json' returns ranked Findings; format='adoption' or 'adoption_json' returns the TS adoption summary with trend + worst sessions. Read-only, PII-safe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoCap the number of findings returned (table/json only; default unlimited).
formatNoOutput format. 'table' (default) / 'json' = ranked missed-opportunity Findings. 'adoption' / 'adoption_json' = TS vs native adoption summary.
projectNoFilter to sanitized project dirs whose name contains this substring (e.g. '-root'). Omit to scan ALL transcript projects under ~/.claude/projects/.
since_daysNoOnly consider events newer than now - since_days (default 7).
Behavior4/5

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

The description classifies the tool as 'Read-only, PII-safe,' which compensates for the absence of annotations by disclosing key behavioral traits. It also mentions default scanning of all transcript projects. However, it does not detail side effects or output structure beyond high-level summaries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is a single, well-organized paragraph that front-loads the primary purpose, then covers defaults, format options, and safety. Every sentence is informative, and there is no redundancy or unnecessary wording.

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?

The tool has four parameters and no output schema. The description explains output categories (Findings, adoption summary) but does not detail the fields or structure of the returned data, which may require agents to infer from examples. For an analysis tool, this is adequate but not fully complete.

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?

With 100% schema description coverage, the baseline is 3. The description adds value by explaining what each format option returns (ranked Findings vs. adoption summary) and emphasizing the project filter, which goes beyond the schema's enumerated descriptions.

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?

The description clearly states the tool's purpose: scanning Claude Code transcripts for missed Token Savior opportunities and reporting adoption ratios. The verb 'Scan' and resource 'Claude Code transcripts' are specific, and the description distinguishes it from siblings like ts_execute by focusing on analysis, not execution.

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?

The description explains default behavior (scans all projects) and how to filter with 'project' parameter, and describes format options. However, it lacks explicit guidance on when to use this tool versus alternatives like ts_search or ts_execute, leaving usage context somewhat implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mibayy/token-savior'

If you have feedback or need assistance with the MCP directory API, please join our Discord server