Artificial Intelligence · Developer Tools

Openlayer MCP

Manage Openlayer AI projects, commits, tests, monitoring data sources, governance frameworks, rules, and alerts through Openlayer's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Fetch data source rows

    Fetch rows (traces / inference data points) from a data source. Use this to inspect the structure and contents of production traces -- e.g. to understand which columns exist before proposing tests. Rows come back untrimmed, so they include each test's judge score (``openlayer_metric_score_*`` / ``openlayer_llm_rubric_score_*``) alongside the judge's explanation in the matching ``*_explanation_*`` column. To go the other way -- from a failing test to the rows that caused it -- use ``fetch_failed_rows_for_goal``.

  • Fetch data source sessions

    Fetch session-level aggregations for a data source. Sessions group related traces/records; use this to analyze conversation or request sessions before proposing session-level tests.

  • Fetch failed rows for goal

    Fetch the rows that made a test fail, with per-row judge scores and the LLM judge's explanation (reasoning) for each score. This is how you answer "why did this test fail on this row?" -- each returned row carries a ``judge_scores`` list of ``{score_column, score, test_name, explanation}``, where ``explanation`` is the judge's written justification, the same text the UI shows in the record detail panel. Rows are selected using a 3-tier filter strategy: 1) Prefer pre-computed rowsBody.columnFilters from the goal result (update measurement names with llmSettingHash if available; invert operators to target failed rows). 2) Otherwise construct aggregate metric filters (latency/cost/tokens).

  • Get alert settings

    Show where a project's alerts go: the Slack channel, which events post to it, and the workspace webhooks with their event types. Also explains the ``alertsConfigured`` lifecycle requirement: whether it is met, and if not, what to add. Read this before changing any alert setting. There is no event for a data source that stops receiving data; use ``get_data_source_health`` for that.

  • Get connector sync status

    Show which connector syncs into a data source, and how its sync is doing. For a data source a connector feeds (ElevenLabs, Agentforce, Dialogflow, Copilot Studio, ...), returns the connector, the synced agent, whether it is enabled, the time and error of its last sync, the running total of records it has synced, and the connection's state. It also returns the earliest and latest *record* times, which for synced history can be days before the sync itself. ``diagnosis`` flags records that all fall before the monitoring tests' windows, and gives the ``evaluate_data_source`` range that covers them. Connectors keep running totals only, so there is no count for the last sync alone. ``connector`` is null when no connector feeds the data source.

  • Get data source health

    Check whether a data source is still receiving data, and how much. Returns when the last sample arrived plus request-volume series, whether the data source is paused, and when it was last evaluated. Use it first when a user reports missing data or missing results. ``diagnosis`` names the case: a stale ``last_sample_received`` points upstream of Openlayer, while a paused data source, or samples arriving with no recent evaluation, points at evaluation. ``last_sample_received`` is when data *arrived*; the ``earliest_record`` / ``latest_record`` times are what tests evaluate by. When every record is older than the tests' windows (common after a connector syncs history), ``diagnosis`` gives the ``evaluate_data_source`` range to run. For a connector-fed data source, also see ``get_connector_sync_status``. The volume series come in fixed hourly/daily/weekly/monthly windows computed by the backend -- the route accepts no time range, so an arbitrary window (say, one specific day last week) cannot be requested here. Use ``fetch_data_source_rows`` with timestamp filters for that.

  • Get data source row

    Fetch one row (trace) from a data source by inference ID, with its OTel steps. Direct lookup for when you already have an inference ID -- from a user, a log, or a previous search -- so you don't have to build a filter to find one trace.

  • Get data source session

    Get the aggregation for one session in a data source. The drill-down for ``fetch_data_source_sessions``: returns the session's record count, token usage, cost, duration and scores.

  • Get data source session summary

    Read the cached AI summary of a session, plus a staleness flag. A whole conversation compressed into a paragraph -- far cheaper to reason over than paging the raw turns. Read-only: it never triggers generation. Summary generation is gated by workspace AI-feature settings and is deliberately not exposed as a tool, so a session with no summary yet reports that explicitly rather than looking like an empty summary. ``stale`` is true when the session has changed since the summary was written.

  • Get data source user

    Get the aggregation for one user of a data source. Use when you already have a user ID and want that user's session count, record count, token usage and cost without paging the whole cohort.

  • Get framework project rule stats

    Get per-project rule pass/fail stats for a framework.

  • Get intake form

    Get the workspace's intake form: the questions every project answers. Returns sections of fields, each with its ``id``. Reuse those ids in any change -- recorded answers point at them.

  • Get lifecycle stages

    Get the workspace's lifecycle: the ordered stages projects move through. Each stage has its ``id``, ``approvalMode`` (``sequential`` is what the web app calls "Ordered"), the ``reviewerIds`` who approve leaving it, and the ``requirements`` a project meets before leaving it. Resolve reviewer ids to people with ``list_workspace_members``.

  • Get risk template

    Get the workspace's risk template: the dimensions every project is scored on (0-4). Returns categories of dimensions, each with its ``id``. Reuse those ids in any change -- recorded scores point at them.

  • Get rule result evidence

    Get the evidence attached to a rule result.

  • Get test results

    List results for a test.

  • Get workspace rule stats

    Get aggregate rule-result stats for a workspace (compliance summary).

  • List commits

    List the commits in a project, newest first. Each commit carries its ``status`` (e.g. ``completed`` or ``failed``) and its ``passing_goal_count`` / ``failing_goal_count`` / ``total_goal_count``, so a failed push (``status="failed"``, 0 tests) stands out. Use this to show the user which commits are failed or superseded before ``delete_commit``.

  • List commit test results

    List the test results for a commit. Each result is shaped to the essentials: test_name, status, threshold, the measured value, and goal_id -- pass that goal_id to ``fetch_failed_rows_for_goal`` to drill into the failing rows and read the LLM judge's per-row scores and explanations.

  • List custom metrics

    List a project's custom metrics, with the tests that use each one. Returns each metric's key, name, description, bounds and parameter definitions. Use the key in a ``customMetricThreshold`` test (type ``performance``) whose threshold is ``{"measurement": "value", "insightName": "customMetric", "insightParameters": [{"name": "key", "value": "<key>"}], "operator": "<", "value": 5}``. ``measurement`` is always the literal ``"value"``; the key goes in ``insightParameters``.

Page 1 / 3Next