skycloak_upsert_smtp
Create or update a Keycloak realm's SMTP configuration with basic authentication, including server host, port, sender details, and optional credentials.
Instructions
Create or update a realm's SMTP configuration (basic auth).
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": {
"cluster_id": "<cluster_id>",
"realm": "<realm>",
"host": "<host>",
"port": "<port>",
"from_email": "<from_email>"
},
"name": "skycloak_upsert_smtp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SMTP server hostname | |
| port | Yes | SMTP server port (e.g. 587) | |
| realm | Yes | the Keycloak realm name | |
| password | No | SMTP password (basic auth); omit to retain the stored value | |
| username | No | SMTP username (basic auth) | |
| from_name | No | sender display name | |
| cluster_id | Yes | the cluster ID | |
| encryption | No | encryption mode: none, ssl, or starttls (case-insensitive) | |
| from_email | Yes | sender email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | Yes | ||
| status | No | ||
| auth_type | Yes | ||
| from_name | No | ||
| encryption | No | ||
| from_email | Yes | ||
| has_password | Yes |