mqtt_connect
Connect to an MQTT broker via URL, with optional client ID and authentication credentials.
Instructions
Connect to an MQTT broker
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": {
"broker_url": "<broker_url>"
},
"name": "mqtt_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| broker_url | Yes | MQTT broker URL (e.g., mqtt://localhost:1883 or mqtts://broker.example.com:8883) | |
| client_id | No | Optional client ID for the connection | |
| username | No | Optional username for authentication | |
| password | No | Optional password for authentication |