Skip to main content

Operations and Logs Tools

Files: mcp_admin_console/tools/operations.py, mcp_admin_console/tools/logs.py

Tools for metrics, alarms, scheduling, commands, reports, broadcasts, and log access.

Metrics

ToolParametersDescription
query_metricscluster_id, queriesQuery cluster metrics (Prometheus-style)
get_cluster_metric_templatescluster_idAvailable cluster-level metric dashboards
get_instance_metric_templatescluster_idAvailable instance-level metric dashboards
list_metric_tabscluster_idSaved metric dashboard tabs
query_vm_metricscluster_id, vm_id, metric_nameVM-level metrics
get_vm_metric_labelscluster_idAvailable VM metric label names and values

Alarms

ToolParametersDescription
get_alert_config--Global alert configuration (rules, notification channels)

Scheduling and Maintenance

ToolParametersDescription
list_scheduled_clusters--Clusters eligible for scheduled operations
list_schedules--All scheduled operations
list_zombie_clusters--Clusters in abnormal states
list_maintenance_mail_records--Maintenance email push records

Commands

ToolParametersDescription
list_commands--Available admin commands (diagnostic operations)
get_command_paramscommandParameters for a specific admin command
list_memory_profilescluster_idJVM/BE memory profiles
get_memory_profilecluster_id, profile_idSpecific memory profile

Reports

ToolParametersDescription
get_reportreport_typeOperations report
get_daily_overview_report--Daily overview report
get_org_daily_report--Organization daily overview report
get_weekly_paid_customer_report--Weekly paid customer report
get_weekly_cluster_report--Weekly cluster activity report
get_weekly_free_trial_report--Weekly free trial report
get_weekly_free_tier_report--Weekly free tier report
get_weekly_lost_customer_report--Weekly lost customer report

Broadcasts and Tutorials

ToolParametersDescription
list_broadcast_templates--Broadcast notification templates
list_broadcast_schedules--Scheduled broadcast notifications
list_tutorials--SQL editor tutorials
get_tutorial_detailtutorial_idTutorial content and blocks

StarRocks Logs

ToolParametersDescription
query_sr_logsregion, vm_id, query, log_type, from_time, to_time, file, file_filter, line_limit, offset, use_regex, timeoutFull-featured log search with regex support. Log files: fe.log, fe.warn.log, fe.audit.log, be.INFO, be.WARNING, etc.
search_sr_logsregion, vm_id, log_type, search, start_time, end_time, limit, offset, timeoutSimplified log search by time range and text
roll_sr_logsregion, vm_id, log_type, file, file_filter, offset, line_limit, direction, timeoutScroll through log files (tail/head). Use direction=backward for tail.
list_vm_filesregion, vm_id, pathList files on a cluster VM

Platform Service Logs

ToolParametersDescription
list_service_logsservice_name, level, start_time, end_time, filter_text, limit, offsetCentral log collector. Levels: ERROR, WARN, INFO
search_loggingservice_name, level, start_time, end_time, filter_text, limit, offsetGET-based alternative for service logs

Admin Audit

ToolParametersDescription
list_admin_audituser, search, limit, offsetAdmin console audit trail -- who did what and when