Skip to main content
Glama

getNetworkInterfaces

Retrieve network interface details to identify IP addresses, MAC addresses, and connection status for system diagnostics and monitoring.

Instructions

Get network interface information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function executes os.networkInterfaces() and returns the interfaces as prettified JSON in the required MCP content format.
    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: {} },
  • Tool definition and registration within the networkTools export object.
    getNetworkInterfaces: { name: 'getNetworkInterfaces', description: 'Get network interface information', inputSchema: { type: 'object', properties: {} }, handler: async () => { const interfaces = os.networkInterfaces(); return { content: [{ type: 'text', text: JSON.stringify(interfaces, null, 2) }] }; } },
  • src/index.ts:28-35 (registration)
    Registration of networkTools (including getNetworkInterfaces) into the central allTools object used by MCP server handlers for listing and calling tools.
    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