Skip to main content
Glama

Current operating environment

getNetworkInfo

Retrieve detailed network information in the current operating environment to analyze connectivity, IP addresses, and related configurations for better system management.

Instructions

获取当前系统的网络信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • The handler case for 'getNetworkInfo' tool that retrieves the system's network interfaces using Node.js 'os.networkInterfaces()' and returns the information as formatted JSON text.
    case "getNetworkInfo": { const networkInfo = { networkInterfaces: os.networkInterfaces() }; return { content: [{ type: "text", text: JSON.stringify(networkInfo, null, 2) }] }; }
  • src/index.ts:55-63 (registration)
    Registration of the 'getNetworkInfo' tool in the tools list returned by the listTools handler, including name, description, and empty input schema.
    { name: "getNetworkInfo", description: "获取当前系统的网络信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema definition for the 'getNetworkInfo' tool, specifying an empty object (no parameters required).
    inputSchema: { type: "object", properties: {}, required: [] }

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/JackXuyi/env-mcp'

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