MCP Prompts
The server includes the following pre-configured prompts for Kafka operations and diagnostics:
kafka_cluster_overview
Generates a comprehensive, human-readable summary of Kafka cluster health including broker counts, controller status, topic/partition metrics, and replication health. Perfect for status reports, monitoring dashboards, and quick cluster assessments.
Arguments:
None required - uses the configured cluster connection
Example Response:
# Kafka Cluster Overview
**Time**: 2023-08-15T12:34:56Z
- **Broker Count**: 3
- **Active Controller ID**: 1
- **Total Topics**: 24
- **Total Partitions**: 120
- **Under-Replicated Partitions**: 0
- **Offline Partitions**: 0
**Overall Status**: ✅ Healthykafka_health_check
Performs a comprehensive health assessment of the Kafka cluster with detailed analysis of broker availability, controller status, partition health, and consumer group performance. Provides actionable recommendations for troubleshooting and maintenance activities.
Arguments:
None required - uses the configured cluster connection
Example Response:
kafka_under_replicated_partitions
Identifies and analyzes partitions with insufficient replication, where the in-sync replica (ISR) count is less than the configured replication factor. Provides detailed reporting on affected topics, missing replicas, potential causes, and step-by-step troubleshooting recommendations to restore data durability.
Arguments:
None required - uses the configured cluster connection
Example Response:
kafka_consumer_lag_report
Generates a comprehensive consumer lag analysis report covering all consumer groups in the cluster. Analyzes group states, member assignments, partition lag metrics, and provides performance optimization recommendations. Supports customizable lag thresholds for alerting and includes actionable insights for scaling decisions.
Arguments:
threshold(optional): Message lag threshold for highlighting consumer groups with performance issues (default: 1000 messages). Groups exceeding this threshold will be flagged for attention.
Example Response:
Last updated
Was this helpful?