getNetworkDevices
Retrieve a list of all devices in a Meraki network by providing its network ID.
Instructions
Get network devices
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| networkId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- meraki-mcp-dynamic.py:469-472 (handler)The MCP tool handler for 'getNetworkDevices'. Registers an async function that takes a networkId parameter and delegates to call_meraki_method('networks', 'getNetworkDevices', networkId=networkId).
@mcp.tool() async def getNetworkDevices(networkId: str) -> str: """Get network devices""" return await call_meraki_method("networks", "getNetworkDevices", networkId=networkId) - meraki-mcp.py:295-299 (handler)Alternative MCP tool handler in the static meraki-mcp.py file. A synchronous function that directly calls dashboard.networks.getNetworkDevices(network_id) and returns JSON.
@mcp.tool() def get_network_devices(network_id: str) -> str: """Get a list of devices in a specific network""" devices = dashboard.networks.getNetworkDevices(network_id) return json.dumps(devices, indent=2) - meraki-mcp.py:74-74 (helper)Helper: wraps the synchronous Meraki SDK method dashboard.networks.getNetworkDevices into an async version for use by tool handlers.
async_get_network_devices = to_async(dashboard.networks.getNetworkDevices) - meraki-mcp-dynamic.py:655-658 (registration)Registration listing in get_mcp_config() that confirms getNetworkDevices is among the 12 pre-registered common tools.
"pre_registered_tools": ["getOrganizations", "getOrganizationAdmins", "getOrganizationNetworks", "getOrganizationDevices", "getNetwork", "getNetworkClients", "getNetworkEvents", "getNetworkDevices", "getDevice", "getNetworkWirelessSsids", "getDeviceSwitchPorts", "updateDeviceSwitchPort"],