Skip to main content
Glama

list_devices

Discover and identify all connected PicoScope oscilloscopes to manage devices for signal acquisition and analysis.

Instructions

List all connected PicoScope devices.

Returns: Dictionary containing list of discovered devices with their info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_devices' tool. It uses device_manager.discover_devices() to find connected PicoScope devices and returns a dictionary with status, device list, and count, handling exceptions gracefully.
    @mcp.tool() def list_devices() -> dict[str, Any]: """List all connected PicoScope devices. Returns: Dictionary containing list of discovered devices with their info. """ try: devices = device_manager.discover_devices() return { "status": "success", "devices": devices, "count": len(devices), } except Exception as e: return { "status": "error", "error": str(e), "devices": [], "count": 0, }
  • Top-level registration call that invokes register_discovery_tools(mcp), which defines and registers the list_devices tool using the @mcp.tool() decorator.
    register_discovery_tools(mcp)

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/markuskreitzer/picoscope_mcp'

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