Skip to main content
Glama
AsifKibria

Claude Code Toolkit

by AsifKibria

get_conversation_stats

Retrieve detailed statistics for Claude Code conversations, including message counts, tool usage, image counts, and file sizes. Sort results by size, messages, images, or modified date.

Instructions

Get detailed statistics about Claude Code conversations including message counts, tool usage, image counts, and file sizes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoOptional: Get stats for a specific file. Defaults to summary of all conversations.
sort_byNoSort results by: size, messages, images, or modified date. Default: size
limitNoLimit number of results. Default: 10
Behavior2/5

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

No annotations are present, so the description must disclose behavioral traits. While the tool is clearly a read operation, it does not explicitly state safety, side effects, or performance considerations. The lack of any behavioral detail is a gap.

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?

The description is a single concise sentence that front-loads the main action. It contains no unnecessary words. However, it could be slightly restructured to improve scanability, but it meets the conciseness requirement well.

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?

Given the tool's simplicity (3 optional params, no output schema), the description provides sufficient context by listing included stat types. It is complete enough for an agent to understand the tool's capabilities, though it lacks examples or return structure hints.

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 the baseline is 3. The description does not add any additional meaning beyond the schema; it repeats the stat list but does not elaborate on how parameters like path or sort_by affect the output.

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 clearly states it retrieves detailed statistics for Claude Code conversations, listing specific stat types (message counts, tool usage, image counts, file sizes). However, it does not differentiate itself from similar sibling tools like usage_analytics, missing an opportunity to clarify its unique role.

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?

No guidance is provided on when to use this tool versus alternatives such as estimate_cost or usage_analytics. There are no conditions, prerequisites, or exclusions mentioned, leaving the agent without context for proper selection.

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/AsifKibria/claude-code-toolkit'

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