Skip to main content
Glama
yup-21
by yup-21

list_crash_dumps

Scan directories recursively to discover crash dump files for system analysis.

Instructions

Scans for crash dumps in the specified directory (recursive).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
search_pathNo/app/crash

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'list_crash_dumps' MCP tool. It is decorated with @mcp.tool() for registration with FastMCP. Scans the specified directory recursively for crash dumps using CrashDiscovery.find_dumps, sorts them by modification time, limits to top 10, and formats the output as a string.
    @mcp.tool()
    def list_crash_dumps(search_path: str = Config.CRASH_SEARCH_PATH) -> str:
        """Scans for crash dumps in the specified directory (recursive)."""
        logger.info(f"Listing crash dumps in {search_path}")
        try:
            dumps = CrashDiscovery.find_dumps([search_path])
            
            if not dumps:
                return "No crash dumps found."
            
            # Sort by modification time (newest first)
            dumps.sort(key=lambda x: x['modified'], reverse=True)
            
            # Limit to top 10 to save tokens
            total_count = len(dumps)
            limit = 10
            dumps = dumps[:limit]
                
            output = [f"Found {total_count} crash dumps (showing top {limit}):"]
            for d in dumps:
                output.append(f"- {d['path']} (Size: {d['size']} bytes)")
            
            if total_count > limit:
                output.append(f"... and {total_count - limit} more.")
            
            logger.info(f"Returning {len(output)} lines of output")
            return "\n".join(output)
        except Exception as e:
            logger.error(f"Error in list_crash_dumps: {e}", exc_info=True)
            return f"Error scanning for dumps: {str(e)}"
  • The @mcp.tool() decorator registers the list_crash_dumps function as an MCP tool with FastMCP instance 'mcp'.
    @mcp.tool()
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the action ('scans') and scope ('recursive'), but doesn't describe what constitutes a crash dump (file extensions, formats), whether it requires permissions, rate limits, output format (though output schema exists), or error handling (e.g., invalid paths). For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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, efficient sentence with zero waste. It's front-loaded with the core action and resource, and the parenthetical '(recursive)' adds necessary detail without verbosity. Every word earns its place, making it highly concise and well-structured.

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?

Given the tool's moderate complexity (file scanning), no annotations, and an output schema (which handles return values), the description is partially complete. It covers the purpose and parameter context but lacks behavioral details (e.g., permissions, error handling) and usage guidelines. With output schema existing, it needn't explain return values, but other gaps remain, making it adequate but with clear room for improvement.

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 description adds minimal semantics beyond the input schema: it clarifies that 'search_path' is for scanning 'in the specified directory (recursive)'. However, with 0% schema description coverage (schema lacks descriptions for the parameter), the description doesn't fully compensate—it doesn't explain path format, default behavior, or validation rules. With 1 parameter, the baseline is 4, but the description provides only basic context, so a 3 is appropriate.

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 the action ('scans for') and resource ('crash dumps') with specific scope ('in the specified directory (recursive)'). It distinguishes from siblings like 'get_sys_info' or 'run_crash_command' by focusing on file discovery rather than system info or command execution. However, it doesn't explicitly differentiate from all siblings (e.g., 'start_session' is clearly different).

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., directory existence), when-not-to-use scenarios, or comparisons to sibling tools like 'run_crash_command' for analyzing dumps. The context is implied (scanning for files) but lacks explicit usage rules.

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/yup-21/crash-mcp'

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