get_wired_clients
Retrieve connected wired client devices from UniFi network infrastructure to monitor network activity and manage device connections.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_wired_clients"
}
}Input 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);