Skip to main content
Glama

get_network_errors

Retrieve network error logs from browser automation sessions to identify and troubleshoot connectivity issues during web testing on ARM64 devices.

Instructions

Get network error logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_network_errors' tool. It returns the stored network errors (HTTP status >=400) as a JSON string in the MCP response format.
    async getNetworkErrors() {
      return {
        content: [{ type: 'text', text: JSON.stringify(networkErrors, null, 2) }],
      };
    }
  • index.js:255-262 (registration)
    Registers the 'get_network_errors' tool in the ListToolsRequestSchema response, providing name, description, and schema.
    {
      name: 'get_network_errors',
      description: 'Get network error logs',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Input schema for the tool, defined as an empty object (no required parameters).
    inputSchema: {
      type: 'object',
      properties: {},
    },
  • Dispatch logic in the central CallToolRequestSchema handler that routes calls to get_network_errors to the specific method.
    case 'get_network_errors':
      return await this.getNetworkErrors();
  • Event listener in setupEventListeners that populates the networkErrors array from CDP Network.responseReceived events for status codes >=400.
    if (message.method === 'Network.responseReceived') {
      const logEntry = {
        url: message.params.response.url,
        status: message.params.response.status,
        statusText: message.params.response.statusText,
        method: message.params.response.requestMethod || 'GET',
        timestamp: new Date().toISOString()
      };
      
      networkLogs.push(logEntry);
      
      if (message.params.response.status >= 400) {
        networkErrors.push(logEntry);
      }
      
      // Keep only last 100 entries
      if (networkLogs.length > 100) networkLogs.shift();
      if (networkErrors.length > 100) networkErrors.shift();
    }
Behavior2/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. 'Get network error logs' implies a read-only operation, but it doesn't specify whether this retrieves real-time data, historical logs, requires specific permissions, has rate limits, or what format the output takes. This leaves significant gaps for an agent to understand how the tool behaves.

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 a single, efficient phrase ('Get network error logs') that gets straight to the point without unnecessary words. It's appropriately sized for a simple tool, though it could be slightly more informative without losing conciseness.

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 (a tool for retrieving logs) and lack of annotations or output schema, the description is incomplete. It doesn't explain what 'network error logs' entail, how they're formatted, or any behavioral aspects like data freshness or scope. For a tool in a set with many logging siblings, more context is needed to guide proper usage.

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, meaning no parameters need documentation. The description doesn't add parameter details, which is appropriate here. A baseline score of 4 is given since no parameters exist, and the description doesn't need to compensate for any gaps.

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 'Get network error logs' clearly states the action (get) and resource (network error logs), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'get_console_errors' or 'get_network_logs', leaving ambiguity about what specifically distinguishes this tool from those alternatives.

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. With sibling tools like 'get_console_errors' and 'get_network_logs' available, there's no indication of whether this tool is for errors only, real-time vs. historical logs, or other contextual factors that would 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/nfodor/claude-arm64-browser'

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