get_last
Instantly fetch the last known value of any MQTT topic, even if the device is offline or sleeping. No need to wait for the next message.
Instructions
Letzter bekannter Wert eines Topics — sofort, ohne auf die naechste Nachricht zu warten.
Genau das, was fertige MQTT-MCP-Server nicht koennen: bei einem schlafenden Batteriesensor (Shelly H&T) kaeme die naechste Nachricht erst in Stunden.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topic": "<topic>"
},
"name": "get_last"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||