Skip to main content
Glama

get_network_logs

Retrieve network activity logs for debugging and monitoring web requests during browser automation and testing on ARM64 devices.

Instructions

Get network activity logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • index.js:248-254 (registration)
    Registration of the 'get_network_logs' tool in the ListTools response, including name, description, and empty input schema.
      name: 'get_network_logs',
      description: 'Get network activity logs',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Dispatch handler in CallToolRequestSchema that calls the getNetworkLogs method.
    case 'get_network_logs':
      return await this.getNetworkLogs();
  • The core handler function that returns the stored network logs as a JSON string in the MCP response format.
    async getNetworkLogs() {
      return {
        content: [{ type: 'text', text: JSON.stringify(networkLogs, null, 2) }],
      };
    }
  • Helper code in setupEventListeners that captures and stores network logs from CDP Network.responseReceived events into the global networkLogs array.
    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?

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the action ('Get') without details on permissions, rate limits, data format, or whether this is a read-only operation. This leaves significant gaps in understanding how the tool behaves in practice.

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 sentence with no wasted words, making it easy to parse. However, it could be more front-loaded with additional context to improve clarity, but it remains appropriately concise for its minimal content.

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 of network logging and the lack of annotations and output schema, the description is incomplete. It fails to explain what 'network activity logs' include, how data is returned, or any behavioral traits, leaving the agent with insufficient information to use the tool effectively.

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 schema fully documents the lack of inputs. The description adds no parameter information, which is acceptable here as there are no parameters to explain, aligning with the baseline for zero parameters.

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 activity logs' states a clear verb ('Get') and resource ('network activity logs'), providing basic purpose. However, it doesn't distinguish this tool from its sibling 'get_network_errors', which likely retrieves similar network-related data, leaving ambiguity about what specifically differentiates them.

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?

No guidance is provided on when to use this tool versus alternatives like 'get_network_errors' or other logging tools such as 'get_console_logs'. The description lacks context about specific scenarios, prerequisites, or exclusions, offering minimal usage direction.

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