Skip to main content
Glama
yashpreetbathla

MCP Accessibility Bridge

Disconnect from Chrome

browser_disconnect

Release the Chrome DevTools Protocol connection after completing accessibility testing tasks, freeing up browser resources without terminating Chrome.

Instructions

Close the CDP connection to Chrome. Does NOT kill the Chrome process. Call this when you are done to release the connection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The browserDisconnectHandler function that executes the browser_disconnect tool logic. It checks if a browser connection exists, disconnects via browserManager.disconnect(), and returns a success message or appropriate response if already disconnected.
    export async function browserDisconnectHandler(
      _args: Record<string, never>
    ): Promise<ReturnType<typeof toolSuccess | typeof toolError>> {
      try {
        if (!browserManager.isConnected()) {
          return toolSuccess({
            disconnected: true,
            message: 'Already disconnected (no active connection).',
          });
        }
    
        await browserManager.disconnect();
    
        return toolSuccess({
          disconnected: true,
          message: 'Disconnected from Chrome (browser process is still running).',
        });
      } catch (error) {
        return toolError(error);
      }
    }
  • The browserDisconnectSchema definition - an empty object indicating the tool requires no input parameters.
    export const browserDisconnectSchema = {};
  • src/index.ts:48-58 (registration)
    Registration of the browser_disconnect tool with the MCP server, including title, description, input schema reference, and handler function reference.
    server.registerTool(
      'browser_disconnect',
      {
        title: 'Disconnect from Chrome',
        description:
          'Close the CDP connection to Chrome. Does NOT kill the Chrome process. ' +
          'Call this when you are done to release the connection.',
        inputSchema: browserDisconnectSchema,
      },
      browserDisconnectHandler
    );
Behavior4/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 clearly describes the tool's effect ('Close the CDP connection', 'release the connection') and explicitly states what it does NOT do ('Does NOT kill the Chrome process'), which is crucial behavioral context. However, it doesn't mention potential side effects like whether other tools become unusable after disconnection or if reconnection is possible.

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 perfectly concise with three sentences that each earn their place: the first states the core action, the second clarifies what it doesn't do (preventing a common misconception), and the third provides clear usage timing. It's front-loaded with the main purpose and wastes no words while covering all essential information.

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 (0 parameters, no output schema, no annotations), the description is nearly complete. It explains what the tool does, what it doesn't do, and when to use it. The only minor gap is not explicitly stating that other browser tools may become unusable after disconnection, but this is somewhat implied by the 'release the connection' language and the sibling tool context.

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 tool has 0 parameters with 100% schema description coverage, so the baseline is 4. The description appropriately doesn't discuss parameters since none exist, focusing instead on the tool's purpose and usage context. No parameter information is needed or expected given the empty input 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 clearly states the specific action ('Close the CDP connection to Chrome') and resource ('Chrome'), distinguishing it from siblings like browser_connect (which establishes connection) and browser_navigate (which navigates within an active connection). It explicitly clarifies what it does NOT do ('Does NOT kill the Chrome process'), preventing confusion with potential destructive alternatives.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool ('Call this when you are done to release the connection'), establishing a clear lifecycle context. It also specifies when NOT to use it ('Does NOT kill the Chrome process'), preventing misuse for process termination. The context implies this should be called after using other browser tools to clean up resources.

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/yashpreetbathla/mcp-accessibility-bridge'

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