Skip to main content
Glama

pool_status

Check the current status of active browser instances and available resources in the browser pool to monitor session availability and manage concurrent usage.

Instructions

Browser pool status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that retrieves and formats the browser pool status.
    function getPoolStatus() {
      const status = [];
      for (const [port, inst] of instances) {
        status.push({
          port,
          sessionId: inst.sessionId,
          idleMinutes: Math.round((Date.now() - inst.lastUsed) / 60000)
        });
      }
      return {
        content: [{
          type: 'text',
          text: JSON.stringify({
            instances: status,
            maxInstances: MAX_INSTANCES,
            thisSession: sessionId,
            assignedPort,
            hasActivePage
          }, null, 2)
        }]
      };
  • index.js:475-476 (registration)
    Registration of the 'pool_status' tool using the MCP server instance.
    server.tool('pool_status', 'Browser pool status', {},
      async () => getPoolStatus());

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/OMGEverdo/browser-pool-mcp'

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