Tools Reference

Complete reference for all 44 MCP tools exposed by the Obtrace MCP server.

Tools Reference

All tools accept an optional project_id parameter to override the default project scope.

Logs

query_logs

Execute a ClickHouse SQL query against otel_logs.

ParameterTypeRequiredDescription
querystringYesClickHouse SQL query
time_fromstringYesStart time (RFC3339)
time_tostringYesEnd time (RFC3339)
limitintegerNoMax rows (default 100)

search_logs

Full-text search across log message bodies.

ParameterTypeRequiredDescription
textstringYesSearch query
severitystring[]NoFilter by severity (ERROR, WARN, INFO)
servicestringNoService name filter
time_fromstringYesStart time (RFC3339)
time_tostringYesEnd time (RFC3339)
limitintegerNoMax results (default 50)

list_log_services

List all services that emitted logs in a time range.

log_stats

Aggregated log statistics grouped by severity, service, or other fields.

log_patterns

Discover recurring log patterns using automatic clustering.


Traces

query_traces

Execute a ClickHouse SQL query against otel_traces.

ParameterTypeRequiredDescription
querystringYesClickHouse SQL query
time_fromstringYesStart time (RFC3339)
time_tostringYesEnd time (RFC3339)
limitintegerNoMax rows (default 100)

get_trace

Get the full trace tree for a specific trace ID.

ParameterTypeRequiredDescription
trace_idstringYesThe trace ID to retrieve

search_traces

Search for traces by service, operation, latency, and status.

ParameterTypeRequiredDescription
servicestringNoService name filter
operationstringNoOperation/span name filter
min_latencystringNoMinimum duration (e.g. 500ms, 1s)
max_latencystringNoMaximum duration
statusstringNoSpan status: OK, ERROR, UNSET
time_fromstringYesStart time (RFC3339)
time_tostringYesEnd time (RFC3339)
limitintegerNoMax traces (default 50)

list_trace_services

List services that emitted trace spans.

list_trace_operations

List operations for a given service.

trace_stats

Aggregated trace statistics (p50/p95/p99 latency, error rates, throughput).


Metrics

query_metrics

Execute a ClickHouse SQL query against otel_metrics.

list_metric_names

List available metric names with optional prefix and service filters.

get_metric_metadata

Get metadata for a metric (type, description, unit).

list_metric_label_names

List label names for a metric.

list_metric_label_values

List values for a specific label of a metric.

metric_stats

Time-series statistics with configurable aggregation step.


Dashboards

list_dashboards

List dashboards with optional search query.

get_dashboard

Get full dashboard details including panel configurations.

get_dashboard_panels

Get the panel configurations and queries for a dashboard.

create_dashboard (write)

Create a new dashboard.

update_dashboard (write)

Update a dashboard's name or description.

delete_dashboard (write)

Delete a dashboard by its ID.


Incidents

list_incidents

List incidents with filters for status, severity, service, and time range.

ParameterTypeRequiredDescription
statusstringNoopen, acknowledged, resolved, closed
severitystringNocritical, high, medium, low
servicestringNoAffected service name
time_fromstringNoStart time (RFC3339)
time_tostringNoEnd time (RFC3339)
limitintegerNoMax incidents (default 50)

get_incident

Get full details of a specific incident.

get_incident_timeline

Get the activity timeline for an incident.

create_incident (write)

Create a new incident with title, severity, and affected service.

update_incident (write)

Update incident status or severity.

add_incident_activity (write)

Add a note, status change, or action to an incident's timeline.


Alerts

list_alert_rules

List alert rules with status and severity filters.

get_alert_rule

Get full alert rule details including query and conditions.

list_alert_history

View alert firing and resolution history.

list_contact_points

List notification contact points (email, Slack, PagerDuty, etc.).

create_alert_rule (write)

Create a new alert rule.

update_alert_rule (write)

Update an alert rule.

delete_alert_rule (write)

Delete an alert rule.


AI

chat_to_query

Convert natural language into a ClickHouse query against Obtrace telemetry data.

ParameterTypeRequiredDescription
questionstringYesNatural language question
query_typestringNoTarget: logs, traces, metrics

root_cause_analysis

AI-powered root cause analysis correlating logs, traces, and metrics.

ParameterTypeRequiredDescription
incident_idstringNoIncident to analyze
trace_idstringNoTrace to analyze
servicestringNoAffected service
time_fromstringYesStart of issue window (RFC3339)
time_tostringYesEnd of issue window (RFC3339)
symptomsstringNoDescription of observed symptoms

summarize

Generate an AI summary of system health for a time window.

autofix (write)

Generate code fix suggestions for errors found in telemetry data.


Projects

list_projects

List all accessible projects.

get_project

Get project details including apps and environments.

list_apps

List applications within a project.

list_teams

List organization teams.

list_users

List organization users.


Replay

list_replay_sessions

List session replay recordings with filters.

get_replay_session

Get session metadata and summary.

get_replay_events

Get the event timeline for a session (clicks, navigations, network, errors).

get_replay_errors

Get all errors from a replay session.


Search across all Obtrace data types with a single query.

Generate a deep link URL to a specific view in the Obtrace UI.

ParameterTypeRequiredDescription
typestringYeslogs, traces, metrics, dashboard, incident, replay
resource_idstringNoResource ID
querystringNoPre-filled query
time_fromstringNoStart time
time_tostringNoEnd time