Skip to main content
Glama

get_optimization_report

Analyze AI agent sessions to identify token waste patterns like repeated file reads and unused tools, providing actionable savings estimates for optimization.

Instructions

Detect token waste patterns in AI agent sessions: repeated file reads, Bash grep instead of search, large file reads, unused trace-mcp tools. Provides savings estimates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoTime period (default: week)
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes what the tool detects and that it provides savings estimates, which is useful. However, it doesn't mention whether this is a read-only operation, if it requires specific permissions, how it accesses session data, or any rate limits - leaving significant behavioral gaps for a tool that analyzes potentially sensitive session data.

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 extremely concise with just two sentences that pack substantial information. The first sentence clearly states the tool's purpose with specific examples, and the second sentence adds the output benefit. There's zero wasted language, and the information is front-loaded effectively.

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?

For a tool with no annotations and no output schema, the description provides adequate purpose and output information but lacks important behavioral context. It doesn't explain what format the savings estimates come in, whether the analysis is real-time or historical, or how the detection algorithms work. Given the complexity of analyzing token waste patterns across sessions, more completeness would be beneficial.

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?

The input schema has 100% description coverage with a well-documented 'period' parameter including enum values and default. The description doesn't add any parameter-specific information beyond what the schema already provides, which is acceptable given the high schema coverage. No additional parameter context is needed or provided.

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 with specific verbs ('detect token waste patterns') and resources ('AI agent sessions'), listing concrete examples like repeated file reads and Bash grep misuse. It distinguishes itself from sibling tools by focusing on optimization analysis rather than code analysis, refactoring, or session management functions.

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 implies usage context through the examples of token waste patterns, suggesting this tool should be used when analyzing AI agent efficiency. However, it doesn't explicitly state when to use it versus alternatives like 'get_session_analytics' or 'get_real_savings', nor does it provide exclusion criteria or prerequisites for usage.

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/nikolai-vysotskyi/trace-mcp'

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