update_topic_config
Modify Kafka topic settings like retention time and other configurations across different environments using the Lenses MCP Server.
Instructions
Update topic configuration.
Args: environment: The environment name. topic_name: Name of the topic. configs: List of config key-value pairs [{"key": "retention.ms", "value": "86400000"}].
Returns: Success message.
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": {
"environment": "<environment>",
"topic_name": "<topic_name>",
"configs": "<configs>"
},
"name": "update_topic_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment | Yes | ||
| topic_name | Yes | ||
| configs | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |