Skip to main content
Glama

Current operating environment

getWifiInfo

Retrieve essential Wi-Fi details for the current device operating environment, including SSID, signal strength, and connection status, for troubleshooting or network analysis.

Instructions

获取当前设备的 Wi-Fi 信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • The handler function for the getWifiInfo tool. It uses the systeminformation library (si.wifiNetworks()) to fetch current Wi-Fi networks information and returns it as a formatted JSON string in the tool response.
    case "getWifiInfo": { const wifiInfo = await si.wifiNetworks(); return { content: [{ type: "text", text: JSON.stringify(wifiInfo, null, 2) }] }; }
  • src/index.ts:154-162 (registration)
    Registration of the getWifiInfo tool in the listTools response handler, including name, Chinese description, and an empty input schema (no parameters required).
    { name: "getWifiInfo", description: "获取当前设备的 Wi-Fi 信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema for getWifiInfo tool: an empty object (no required properties).
    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