Skip to main content
Glama
mixophrygian

Browser History Analysis MCP

by mixophrygian

analyze_browser_history

Analyze browser history to identify patterns, categorize domains, and generate reports with customizable time periods and detail levels.

Instructions

Step 3: Analyze browser history with different levels of detail.

This is the main analysis tool that consolidates all analysis options.

Args:
    time_period_in_days: Number of days of history to analyze (default: 7)
    analysis_type: Type of analysis to perform:
        - "quick_summary": Basic stats only (fastest)
        - "basic": Domain analysis and categorization (not yet implemented)
        - "comprehensive": Full analysis with sessions and insights (default)
    fast_mode: If True, limits analysis for faster processing (default: True)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
time_period_in_daysNo
analysis_typeNocomprehensive
fast_modeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The primary handler and registration for the 'analyze_browser_history' tool via @mcp.tool() decorator. Dispatches to specific analysis helpers based on analysis_type.
    @mcp.tool()
    async def analyze_browser_history(
        time_period_in_days: int = 7,
        analysis_type: str = "comprehensive",
        fast_mode: bool = True
    ) -> Dict[str, Any]:
        """Step 3: Analyze browser history with different levels of detail.
        
        This is the main analysis tool that consolidates all analysis options.
        
        Args:
            time_period_in_days: Number of days of history to analyze (default: 7)
            analysis_type: Type of analysis to perform:
                - "quick_summary": Basic stats only (fastest)
                - "basic": Domain analysis and categorization (not yet implemented)
                - "comprehensive": Full analysis with sessions and insights (default)
            fast_mode: If True, limits analysis for faster processing (default: True)
        """
        if analysis_type == "quick_summary":
            return await tool_get_quick_insights(time_period_in_days, CACHED_HISTORY)
        elif analysis_type == "basic":
            # For now, use comprehensive analysis with fast mode
            return await tool_get_browsing_insights(time_period_in_days, CACHED_HISTORY, fast_mode=True)
        elif analysis_type == "comprehensive":
            return await tool_get_browsing_insights(time_period_in_days, CACHED_HISTORY, fast_mode)
        else:
            raise ValueError(f"Unknown analysis_type: {analysis_type}. Use 'quick_summary', 'basic', or 'comprehensive'")
Behavior2/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 mentions 'fastest' for 'quick_summary' and 'limits analysis for faster processing' for 'fast_mode', which adds some performance context. However, it lacks critical details like whether this is a read-only or mutating operation, any authentication needs, rate limits, or what 'not yet implemented' means for 'basic' analysis. The description does not contradict annotations, but it is insufficient for a tool with potential behavioral complexities.

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 appropriately sized and front-loaded, starting with the main purpose and then detailing parameters in a structured list. Every sentence adds value, such as clarifying analysis types and defaults, with no redundant information. It could be slightly more concise by integrating the 'Step 3' context more smoothly, but overall it is well-structured and efficient.

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 3 parameters with 0% schema coverage and no annotations, the description does a good job explaining parameters and usage context. However, with an output schema present, it need not explain return values, but it still lacks details on behavioral aspects like safety, permissions, or error handling. For a tool that performs analysis (potentially resource-intensive), this leaves gaps in completeness, though it meets minimum viable standards.

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?

The schema description coverage is 0%, so the description must compensate. It adds significant meaning beyond the schema by explaining each parameter: 'time_period_in_days' as 'Number of days of history to analyze', 'analysis_type' with detailed options and their effects (e.g., 'Basic stats only' for 'quick_summary'), and 'fast_mode' as 'limits analysis for faster processing'. This effectively documents all 3 parameters, though it could provide more on default behaviors or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool 'analyzes browser history with different levels of detail' and 'consolidates all analysis options', which gives a general purpose but lacks specificity about what resources or data it operates on. It distinguishes from siblings like 'get_browser_history' (retrieval) and 'search_browser_history' (searching), but the purpose remains somewhat vague without concrete examples of what 'analysis' entails.

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?

The description provides clear context by positioning this as 'Step 3' and 'the main analysis tool', implying a sequence or primary role among siblings. It distinguishes from alternatives by noting 'consolidates all analysis options', suggesting it's comprehensive, but does not explicitly state when not to use it or name specific alternatives among the siblings.

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/mixophrygian/browser_history_mcp'

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