Skip to main content
Glama

get_device_info

Retrieve detailed capabilities and properties for a specific Bond Bridge smart home device to enable AI-assisted control and management.

Instructions

Get detailed information about a specific device.

Args: device_id: The Bond device identifier

Returns: Detailed device information including capabilities and properties.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_idYes

Implementation Reference

  • MCP tool handler decorated with @mcp.tool(). It creates a BondClient, calls get_device_info on it, and returns the device information or error.
    @mcp.tool() async def get_device_info(device_id: str) -> Dict[str, Any]: """Get detailed information about a specific device. Args: device_id: The Bond device identifier Returns: Detailed device information including capabilities and properties. """ try: async with await get_bond_client() as client: device_info = await client.get_device_info(device_id) return { "device_id": device_id, "info": device_info } except BondAPIError as e: return {"error": f"Failed to get device info: {str(e)}"} except Exception as e: logger.error(f"Unexpected error getting device info: {e}") return {"error": f"Unexpected error: {str(e)}"}
  • BondClient helper method that sends a GET request to the Bond Bridge API endpoint /v2/devices/{device_id} to fetch the device information.
    async def get_device_info(self, device_id: str) -> Dict[str, Any]: """Get detailed information about a specific device. Args: device_id: Device identifier Returns: Device information """ return await self._request("GET", f"devices/{device_id}")

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/madorn/bond-mcp-server'

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