The OpsTrails MCP server exposes 8 tools that AI assistants use to query your operational timeline and analyze metrics.
Returns a description of what the organization tracks and how they use each field. This is always called first to understand the data model.
Parameters: None
Returns: Organization context including plan limits, data retention period, quota usage, and field descriptions.
Search and filter infrastructure events. The primary tool for investigating what happened.
| Parameter | Type | Description |
|---|---|---|
from | string | Start of time range. Relative ("-2h", "-7d") or ISO 8601. |
to | string | End of time range. Defaults to now. |
type | string | Filter by event type (e.g. "deployment"). |
source | string | Filter by event source. |
severity | string | Filter by severity: LOW, MINOR, MAJOR, CRITICAL. |
search | string | Free-text search across type, version, source. |
limit | number | Max events to return (1-100, default 25). |
timezone | string | IANA timezone for bare datetimes (e.g. "Europe/Warsaw"). |
{
"from": "-6h",
"type": "deployment",
"severity": "CRITICAL",
"limit": 10
}High-level overview of operational activity in a time period. Event counts grouped by type plus recent events.
| Parameter | Type | Description |
|---|---|---|
from | string | Start of time range (required). |
to | string | End of time range (required). |
timezone | string | IANA timezone for bare datetimes. |
List all distinct event types recorded (e.g. deployment, rollback, data-load). Useful to discover what kinds of operations are tracked.
Parameters: None
List all distinct event sources recorded (e.g. GitHub repos, CI/CD pipelines, services).
Parameters: None
List all distinct event subjects recorded (e.g. production, staging, specific servers).
Parameters: None
Get stability/performance metrics in a window before and after a given time. Use this after finding an event to assess its impact.
| Parameter | Type | Description |
|---|---|---|
time | string | Reference time to compare around (required). ISO 8601 or relative. |
window | string | Comparison window size: 1h, 2h, 4h, 6h, 12h, 24h. Default: 2h. |
name | string | Filter to a specific metric name (e.g. "error_rate"). |
subject | string | Filter by subject/environment (e.g. "production"). |
timezone | string | IANA timezone for bare datetimes. |
{
"time": "2025-01-15T14:30:00Z",
"window": "2h",
"name": "error_rate",
"subject": "production"
}List all distinct metric names available with their units and data point counts. Use this to discover what metrics are tracked before calling get_metrics_around_event.
Parameters: None