Skip to main content
Glama

runDebuggerMode

Debug application issues by activating debugger mode to capture and analyze browser data through Chrome extension monitoring.

Instructions

Run debugger mode to debug an issue in our application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'runDebuggerMode' tool, which returns static instructions guiding the debugging process using other browser tools and log analysis.
    server.tool(
      "runDebuggerMode",
      "Run debugger mode to debug an issue in our application",
      async () => ({
        content: [
          {
            type: "text",
            text: `
          Please follow this exact sequence to debug an issue in our application:
      
      1. Reflect on 5-7 different possible sources of the problem
      2. Distill those down to 1-2 most likely sources
      3. Add additional logs to validate your assumptions and track the transformation of data structures throughout the application control flow before we move onto implementing the actual code fix
      4. Use the "getConsoleLogs", "getConsoleErrors", "getNetworkLogs" & "getNetworkErrors" tools to obtain any newly added web browser logs
      5. Obtain the server logs as well if accessible - otherwise, ask me to copy/paste them into the chat
      6. Deeply reflect on what could be wrong + produce a comprehensive analysis of the issue
      7. Suggest additional logs if the issue persists or if the source is not yet clear
      8. Once a fix is implemented, ask for approval to remove the previously added logs
    
      Note: DO NOT run any of our audits (runAccessibilityAudit, runPerformanceAudit, runBestPracticesAudit, runSEOAudit, runNextJSAudit) when in debugging mode unless explicitly asked to do so or unless you switch to audit mode.
    `,
          },
        ],
      })
    );
  • Registration of the 'runDebuggerMode' MCP tool on the McpServer instance.
    server.tool(
      "runDebuggerMode",
      "Run debugger mode to debug an issue in our application",
      async () => ({
        content: [
          {
            type: "text",
            text: `
          Please follow this exact sequence to debug an issue in our application:
      
      1. Reflect on 5-7 different possible sources of the problem
      2. Distill those down to 1-2 most likely sources
      3. Add additional logs to validate your assumptions and track the transformation of data structures throughout the application control flow before we move onto implementing the actual code fix
      4. Use the "getConsoleLogs", "getConsoleErrors", "getNetworkLogs" & "getNetworkErrors" tools to obtain any newly added web browser logs
      5. Obtain the server logs as well if accessible - otherwise, ask me to copy/paste them into the chat
      6. Deeply reflect on what could be wrong + produce a comprehensive analysis of the issue
      7. Suggest additional logs if the issue persists or if the source is not yet clear
      8. Once a fix is implemented, ask for approval to remove the previously added logs
    
      Note: DO NOT run any of our audits (runAccessibilityAudit, runPerformanceAudit, runBestPracticesAudit, runSEOAudit, runNextJSAudit) when in debugging mode unless explicitly asked to do so or unless you switch to audit mode.
    `,
          },
        ],
      })
    );
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool runs debugger mode but fails to describe what that entails—whether it's interactive, what permissions are required, if it modifies state, its output format, or any side effects. This leaves critical behavioral traits unspecified for a tool that likely involves system interaction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that is concise but under-specified—it lacks detail that would help an agent understand the tool's function. While not verbose, it fails to provide necessary context, making it inefficient in conveying value. It could be more front-loaded with specific actions or outcomes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity implied by 'debugger mode' (likely involving system state or diagnostics), the description is incomplete. With no annotations, no output schema, and a vague purpose, it does not provide enough information for an agent to use the tool effectively. It should explain what the debugger does, what it returns, or how it interacts with the application.

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 input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description does not add parameter information, which is appropriate here. A baseline of 4 is applied since the schema fully covers the absence of parameters, and the description doesn't need to compensate.

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

Purpose2/5

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

The description 'Run debugger mode to debug an issue in our application' is tautological—it essentially restates the tool name 'runDebuggerMode' with minimal elaboration. While it specifies the action ('run') and target ('debugger mode'), it lacks specificity about what the debugger mode actually does or what resources it operates on, unlike clearer sibling tools like 'takeScreenshot' or 'getConsoleErrors'.

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 does not mention prerequisites, context (e.g., when debugging is needed), or exclusions (e.g., not for production). With siblings like 'runAuditMode' and 'runPerformanceAudit', there is no differentiation to help an agent choose appropriately.

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/Sugatraj/Cursor-Browser-Tools-MCP'

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