Skip to main content
Glama

getNetworkInterfaces

Retrieve detailed network interface information to analyze connectivity, diagnose network issues, or monitor system performance using this tool in the MCP server toolkit.

Instructions

Get network interface information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that retrieves network interfaces using Node.js 'os.networkInterfaces()' and formats the result as MCP content with JSON string.
    handler: async () => { const interfaces = os.networkInterfaces(); return { content: [{ type: 'text', text: JSON.stringify(interfaces, null, 2) }] }; }
  • Input schema defining no required parameters for the getNetworkInterfaces tool.
    inputSchema: { type: 'object', properties: {} },
  • src/index.ts:28-35 (registration)
    Central registration where networkTools (containing getNetworkInterfaces) is spread into the allTools object, which is used for listing and executing tools in the MCP server.
    const allTools: ToolKit = { ...systemTools, ...networkTools, ...geoTools, ...generatorTools, ...dateTimeTools, ...securityTools };

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/cyanheads/toolkit-mcp-server'

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