getStatus
Retrieve real-time status of Gaggiuino espresso machines to monitor and analyze operational data via a simple HTTP API.
Instructions
Get espresso machine status.
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": "getStatus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- gaggiuino.py:81-92 (handler)The handler function for the getStatus tool, registered via @mcp.tool(). Fetches the espresso machine status from the API, handles fetch errors, formats the status using a helper function, and returns a human-readable string.
@mcp.tool() async def getStatus() -> str: """Get espresso machine status. """ url = f"{API_BASE}/api/system/status" data = await make_gg_request(url) if not data: return "Unable to fetch your espresso machine status." status = format_status(data[0]) return status