get_wired_clients
Retrieve connected wired client devices from UniFi network infrastructure to monitor network activity and manage device connections.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/clients.js:268-284 (handler)The handler function that implements the core logic of the get_wired_clients tool: fetches all clients using unifi.listAllClients() and filters for wired clients based on isWired or is_wired property.handler: async () => { const allClients = await unifi.listAllClients(); const clients = allClients.data || []; const wired = clients.filter(c => c.isWired || c.is_wired); return { content: [{ type: 'text', text: JSON.stringify({ wiredCount: wired.length, totalClients: clients.length, wiredClients: wired }, null, 2) }] }; }
- src/tools/clients.js:267-267 (schema)The Zod input schema for get_wired_clients, which requires no parameters.schema: z.object({}),
- src/server.js:30-30 (registration)The call to register the clientTools module (containing get_wired_clients) with the MCP server using the registerToolsFromModule utility.registerToolsFromModule(clientTools);