Skip to main content
Glama

server_status

Check CamoFox server health and browser connection. Returns version, browser status, and active tab count to verify the server is running before automation.

Instructions

Check CamoFox server health and browser connection. Call first to verify server is running. Returns version, browser status, and active tab count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The registerHealthTools function registers the 'server_status' tool with an MCP server. The handler calls deps.client.healthCheck() to get server health, counts active tabs via listTrackedTabs(), and returns health data including ok, running, reachable, browserConnected, browserSessionActive, version, consecutiveFailures, activeOps, activeTabCount, and guidance.
    export function registerHealthTools(server: McpServer, deps: ToolDeps): void {
      server.tool("server_status", "Check CamoFox server health and browser connection. Call first to verify server is running. Returns version, browser status, and active tab count.", {}, async () => {
        try {
          const health = await deps.client.healthCheck();
          const activeTabCount = listTrackedTabs().length;
          const running = health.running ?? health.browserConnected ?? false;
          const reachable = health.ok === true;
          const browserSessionActive = health.browserConnected;
          const guidance =
            reachable && !browserSessionActive
              ? "CamoFox Browser is reachable, but no browser session is active yet. Continue with create_tab to start a session."
              : undefined;
    
          return okResult({
            ok: health.ok,
            running,
            reachable,
            browserConnected: health.browserConnected,
            browserSessionActive,
            version: health.version ?? "unknown",
            consecutiveFailures: health.consecutiveFailures,
            activeOps: health.activeOps,
            activeTabCount,
            guidance
          });
        } catch (error) {
          return toErrorResult(error);
        }
      });
    }
  • The tool 'server_status' is registered on the McpServer via server.tool("server_status", ...) inside registerHealthTools, which is called from src/server.ts at line 39.
    export function registerHealthTools(server: McpServer, deps: ToolDeps): void {
      server.tool("server_status", "Check CamoFox server health and browser connection. Call first to verify server is running. Returns version, browser status, and active tab count.", {}, async () => {
        try {
          const health = await deps.client.healthCheck();
          const activeTabCount = listTrackedTabs().length;
          const running = health.running ?? health.browserConnected ?? false;
          const reachable = health.ok === true;
          const browserSessionActive = health.browserConnected;
          const guidance =
            reachable && !browserSessionActive
              ? "CamoFox Browser is reachable, but no browser session is active yet. Continue with create_tab to start a session."
              : undefined;
    
          return okResult({
            ok: health.ok,
            running,
            reachable,
            browserConnected: health.browserConnected,
            browserSessionActive,
            version: health.version ?? "unknown",
            consecutiveFailures: health.consecutiveFailures,
            activeOps: health.activeOps,
            activeTabCount,
            guidance
          });
        } catch (error) {
          return toErrorResult(error);
        }
      });
    }
  • src/server.ts:39-39 (registration)
    Registration call site: registerHealthTools(server, deps) in the createServer function, which wires up the tool with the server instance.
    registerHealthTools(server, deps);
  • okResult helper used by the server_status handler to wrap the returned data into a text-based ToolResult.
    export function okResult(data: unknown): ToolResult {
      return {
        content: [{ type: "text", text: JSON.stringify(data) }]
      };
    }
  • toErrorResult helper used by the server_status handler to normalize and return errors in a standard format.
    export function toErrorResult(error: unknown): ToolResult {
      const appError = normalizeError(error);
      const payload = {
        isError: true,
        code: appError.code,
        message: appError.message
      };
    
      return {
        isError: true,
        content: [{ type: "text", text: JSON.stringify(payload) }]
      };
Behavior4/5

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

The description accurately portrays a read-only status check, returning version and status info. Without annotations, the description sufficiently indicates no destructive side effects. It could be more explicit about being non-destructive, but the nature of 'check' and 'status' implies safety.

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 consists of two efficient sentences with no redundant words. It is front-loaded with the core purpose and provides essential return value details.

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?

For a simple health check with no parameters and no output schema, the description covers the purpose, usage guidance, and return values. It could specify the format of the returned fields (e.g., version string), but it is not critical.

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, so no parameter description is needed. The baseline for 0 parameters is 4 per the scoring rules, and the description does not need to add more.

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 verb 'Check' and the resource 'Camofox server health and browser connection', and explicitly lists return values (version, browser status, active tab count). This distinguishes it from the many action-oriented sibling tools (e.g., click, navigate) which perform browser operations rather than health checks.

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 phrase 'Call first to verify server is running' provides explicit guidance on when to use this tool (before other operations). It implies a prerequisite step, but does not explicitly list when not to use or discuss alternative tools, which would raise the score to 5.

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/redf0x1/camofox-mcp'

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