Skip to main content
Glama

get_device_info

Retrieve detailed specifications and capabilities of the connected PicoScope oscilloscope, including model, serial number, variant, and supported features.

Instructions

Get detailed information about the currently connected device.

Returns: Dictionary containing device model, serial, variant, capabilities, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_device_info' tool. It checks if a device is connected, retrieves device information using device_manager.get_info(), and returns a structured dictionary with status and device details.
    @mcp.tool() def get_device_info() -> dict[str, Any]: """Get detailed information about the currently connected device. Returns: Dictionary containing device model, serial, variant, capabilities, etc. """ try: if not device_manager.is_connected(): return { "status": "error", "error": "No device connected", "connected": False, } info = device_manager.get_info() if info: return { "status": "success", "connected": True, "device": { "model": info.model, "serial": info.serial, "variant": info.variant, "batch_and_serial": info.batch_and_serial, "num_channels": info.num_channels, "max_adc_value": info.max_adc_value, "min_adc_value": info.min_adc_value, }, } else: return { "status": "error", "error": "Failed to retrieve device info", } except Exception as e: return { "status": "error", "error": str(e), }
  • Invocation of register_discovery_tools which defines and registers the get_device_info 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