Skip to main content
Glama
AsifKibria

Claude Code Toolkit

by AsifKibria

run_doctor

Diagnose Claude Code session issues including corrupted files, oversized content, and orphaned data. Optionally repair detected problems.

Instructions

Full integrity check: detects corrupted JSONL lines, truncated thinking blocks, oversized images/PDFs, sessions over 50 MB, sessions-index drift, orphaned subagent directories, and stale per-session warning state files (the #13518 culprit). Set repair=true to auto-fix everything that's safely repairable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repairNoRun safe repairs after diagnosis. Default: false (report only).
allow_deletesNoAllow deleting orphaned/stale state files when repairing. Default: true.
Behavior4/5

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

Without annotations, the description discloses detection scope and safe auto-fix behavior, including the allow_deletes parameter. It does not mention permissions or reversibility but is fairly transparent.

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?

Two sentences with zero waste. The first lists detection items, the second explains repair. Information is front-loaded and well-structured.

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 complexity, the description covers core functionality and parameters. It lacks mention of output format or return values, but is otherwise 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?

Schema coverage is 100% with clear descriptions. The tool description adds useful context: repair triggers auto-fix, allow_deletes controls deletion of orphaned files. This adds value beyond the schema.

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 begins with 'Full integrity check' and lists specific issues it detects, clearly stating the tool's purpose. It distinguishes from siblings like health_check by offering comprehensive detection and repair capabilities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explains the repair option and implies that without repair=true it is report-only. However, it does not explicitly state when to use vs alternatives or provide exclusions.

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