# Okareo [Health: Active]

**Category:** 🗣️ Conversational AI  
**Repository:** https://github.com/okareo-ai/okareo-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/okareo

## Description
Evaluate and monitor voice and text agents. Synthetic users to find edges.

## Tools
Capabilities this server exposes over MCP:

- **list_checks** — List available quality checks, grouped by category.

        Returns checks (both built-in and custom) available in your Okareo
        account, organized into `checks_by_category` using the platform's
        `__category:<Category>` tags; checks with no category appear under
        `uncategorized`. Select checks from the category matching your task
        AND modality: voice-specific categories (e.g. voice/audio quality)
        apply to voice simulations, while checks outside voice-specific
        categories are generally useful for both chat and voice. A check
        carrying multiple categories appears under each of them.

        Each check has a name, description, and output_data_type.
        output_data_type uses the server vocabulary: "bool" is a pass/fail
        check and "int" is a scored check — these correspond to output_type
        "pass_fail" and "score" in create_or_update_check and generate_check.
        Use these check names with run_test to evaluate model quality.

        Args:
            limit: Maximum number of checks to return (default 20), applied to
                the total before grouping. Use 0 for no limit.
            all_versions: When false (default), returns only the latest version of
                each check. When true, returns the full version history of every
                check, each entry annotated with its version number.
        
- **run_test** — Submit a quality test that evaluates a model against a scenario using checks.

        Returns promptly so the call never times out on long runs. Short runs return
        ``status: "finished"`` with results ready; longer runs return
        ``status: "running"`` with the ``test_run_id`` and ``app_link`` — the run
        continues to completion on its own. In both cases, poll get_test_run_results
        with the returned test_run_id to retrieve scores.

        Args:
            scenario_name: Name of the scenario to evaluate against.
            model_name: Name of the registered model to evaluate.
            checks: List of check names to apply (e.g., ["coherence", "relevance"]).
                Use list_checks to discover available checks and pick from the
                category matching the task and modality — do not use
                voice-specific checks for text evaluations (or vice versa);
                checks outside voice-specific categories suit both.
            name: Optional human-readable name for this test run.
            type: Type of evaluation. Defaults to NL_GENERATION. Valid values:
                NL_GENERATION, INFORMATION_RETRIEVAL, MULTI_CLASS_CLASSIFICATION,
                INVARIANT, MULTI_TURN, AGENT_EVAL.
        
- **list_test_runs** — Find a test run in the project, most recent first.

        Two depths, because finding a run and comparing runs are different jobs:

        - "summary" (default): identity, type, status, conversation count,
          timings, and what each run executed against (target, scenario,
          driver). Enough to find the run you mean.
        - "detailed": adds aggregate metrics, the app link, and the provenance
          identifiers. Use it to compare runs without opening any of them.

        Neither depth returns per-conversation scores — use
        get_test_run_results for those.

        Args:
            model_name: Optional filter — only show test runs using this model.
            scenario_name: Optional filter — only show test runs using this scenario.
            limit: Maximum number of runs to return, sorted by most recent first.
                Defaults to 10. Set to 0 to return all runs.
            offset: Number of runs to skip. Defaults to 0.
            simulation_only: When True, return only MULTI_TURN simulation runs.
                Useful for browsing past simulation results without NL_GENERATION or
                other test run types appearing in the list.
            detail_level: "summary" (default) or "detailed".
        
- **get_test_run_results** — Load the results of a specific test run, one page at a time.

        Look up by test run ID (UUID) or by name (returns the most recent run
        matching that name). Both lookups return the same shape.

        A test run is a container of conversations, so this reads like a list:
        it returns a bounded page, not the whole run. Three depths:

        - "summary" (default): run aggregates, provenance, and each
          conversation's whole scenario input and result. No per-check
          outcomes, no explanations, no transcripts.
        - "detailed": adds the row-level metrics block, which carries
          per-check outcomes AND their written explanations. This is where you
          find out which conversations failed and why.
        - "full": adds conversation transcripts and any media.

        Use get_conversation_transcript to inspect one conversation without
        raising the depth for the whole page.

        Every response carries a `rerun` block: the run_simulation call that
        re-runs this simulation, and every configuration value that call will
        inherit, already in the parameter shape the tool takes. To re-run with
        a change — a different driver, an added check, background noise — pass
        that one parameter alongside based_on_run_id and the rest carries over.

        Args:
            test_run_id: The UUID of the test run. Takes precedence over name.
            name: The name of the test run. Returns the most recent match.
            detail_level: "summary" (default), "detailed", or "full".
            limit: Conversations per page. Defaults to 20. Use 0 for all.
            offset: Number of conversations to skip. Defaults to 0.
            include_transcripts: DEPRECATED — use detail_level="full". Retained
                for one release; detail_level wins when both are supplied.
        
- **get_conversation_transcript** — Retrieve the full conversation transcript for a single data point.

        Use this after get_test_run_results to drill into a specific
        conversation. Provide either scenario_index (1-based, from the
        scores summary) or test_id (UUID) to identify the conversation.

        Returns the complete message transcript (model_input), final
        output (model_result), per-turn check scores (metric_value),
        and the scenario seed data.

        Args:
            test_run_id: The UUID of the test run.
            scenario_index: 1-based index of the conversation within
                the test run. Visible in get_test_run_results output.
            test_id: UUID of the specific data point. Alternative to
                scenario_index.
        
- **reevaluate_test_run** — Re-score a completed test run against a set of checks.

        Re-runs checks against an already-finished test run without re-executing
        the original model or simulation, and without changing the original
        run's results. Useful after a check definition changed, or to score an
        existing run against additional checks.

        Args:
            test_run_id: UUID or name of a completed test run.
            checks: Optional list of check names (or IDs) to score against.
                When omitted, the run's existing checks are re-run.
        
- **save_scenario** — Save a named scenario for use in quality tests.

            Provide EXACTLY ONE dataset source: `content`, `file_path`, or
            `rows`.

            Prefer `file_path` for local .jsonl files — the server reads the
            file directly, so no rows pass through the assistant's context.
            When passing rows through the assistant instead, keep the dataset
            UNDER 2,000 rows (`content` with the file's text, or `rows` for
            tiny datasets). For 2,000 rows or more, always use `file_path` or
            upload directly to Okareo via the web app, SDK, or CLI, to avoid
            unnecessary token cost.

            If a scenario with the same name already exists, the existing
            scenario is returned (idempotent). Scenarios are immutable after
            creation — use create_scenario_version to create updated versions.

            Args:
                name: A unique name for the scenario.
                content: Raw JSONL text (one JSON object with 'input' and
                    'result' per line). Only for datasets under 2,000 rows.
                file_path: Path to a local .jsonl file. Preferred — works for
                    any size.
                rows: List of data rows, each with 'input' (any type) and
                    'result' (any type). Use for small scenarios (< 20 rows).
                tags: Optional list of tags for categorizing the scenario.
            
- **list_scenarios** — List scenarios in the project, most recent first.

        Returns scenario names, IDs, tags, row counts, and creation dates.
        Use this to discover existing scenarios before running a test.

        Args:
            limit: Maximum number of scenarios to return (default 20).
                Set to 0 to return all scenarios.
        
- **get_scenario** — Read a scenario's metadata and all data rows.

        Look up by name or scenario ID. Returns scenario details and all
        input/result data rows.

        Args:
            name: Name of the scenario to retrieve.
            scenario_id: ID of the scenario to retrieve. Takes precedence over name.
        
- **create_scenario_version** — Create a new version of an existing scenario with updated data.

        Automatically determines the next version number (e.g., 'my-test-v2',
        'my-test-v3'). The original scenario is treated as version 1.

        Args:
            base_name: Name of the original scenario to create a version of.
            rows: List of data rows for the new version, each with 'input' and 'result'.
        
- **preview_delete_scenario** — Preview what will be deleted before removing a scenario.

        Shows the scenario details and count of related test runs that will
        also be deleted. Use delete_scenario to confirm deletion after reviewing.

        Args:
            name: Name of the scenario to preview deletion for.
            scenario_id: ID of the scenario. Takes precedence over name.
        
- **delete_scenario** — Permanently delete a scenario and all related test data.

        Both scenario_id and name are required. Use preview_delete_scenario first
        to see what will be deleted before confirming.

        Args:
            scenario_id: The ID of the scenario to delete (from preview_delete_scenario).
            name: The name of the scenario to delete.
        
- **move_scenario** — Move a Scenario — and everything under it — to another project.

        Moves are per Scenario, never per simulation: the Scenario, all of its
        simulations, their datapoints, check results, and traces move together.
        Targets never move — they are shared across the organization and stay
        usable from every project. Monitors, dashboards, and notification
        settings stay in the source project.

        DRY-RUN-FIRST PROTOCOL: dry_run defaults to true and the first call
        must keep it that way. Present the returned plan to the user — the
        per-table counts and any blockers — and only after
        the user explicitly confirms call this tool again with dry_run=false.
        Never execute a move the user has not confirmed against those counts.

        A blocked move (simulations still running, or a same-named Scenario in
        the destination) returns the server's structured refusal. Do not retry
        it unchanged: wait for the simulations to finish, or rename one of the
        Scenarios.

        Args:
            scenario: The Scenario to move — name (within the source project) or id.
            to_project: Destination project — name or id.
            dry_run: True (default) reports what would move without writing.
        
- **list_available_llms** — Browse available LLMs from the Okareo registry.

        Returns all LLMs that can be used when registering a generation model
        for testing. Each entry has a name, display name, and provider. Use a
        model_name from this list when calling register_generation_model.
        
- **register_generation_model** — Register a generation model for testing by selecting an LLM from the registry.

        Creates a generation model (Model Under Test) that points to a specific LLM
        (e.g., 'azure/gpt-4o-mini'). Use list_available_llms to see available
        LLMs. The registered generation model can then be used with run_test.

        Args:
            name: A human-readable name for this generation model (e.g., 'my-chatbot').
            model_name: The LLM from the registry (from list_available_llms).
        
- **list_generation_models** — Browse all registered generation models in the project.

        Returns generation model names, IDs, target LLM configurations, and
        creation timestamps. Use this to see what generation models are
        available for testing.
        
- **get_generation_model** — Read detailed information about a registered generation model.

        Returns the generation model's target LLM configuration, tags, creation
        time, and any warnings (e.g., if the target LLM has been deprecated).

        Args:
            name: Name of the registered generation model.
        
- **update_generation_model** — Change the LLM that a registered generation model points to.

        Updates the generation model to use a different LLM from the registry.
        Use list_available_llms to see available LLMs.

        Args:
            name: Name of the registered generation model to update.
            model_name: The new LLM from the registry.
        
- **delete_generation_model** — Remove a registered generation model and all its related test data.

        Permanently deletes the generation model and cascades to associated
        test runs and test data points. This cannot be undone.

        Args:
            name: Name of the registered generation model to delete.
        
- **create_or_update_target** — Create or update a Target — the AI system you want to evaluate in a simulation.

        Calling create_or_update_target with the same name as an existing Target will
        **fully replace** its configuration — caller must re-specify all desired fields.
        Supported types: 'generation' (foundation model), 'custom_endpoint' (your own
        REST API), and 'voice' (voice-based targets reached by phone via Twilio or
        over SIP).

        **Cloning workflow**: this tool accepts the same key structure that `get_target`
        returns, so you can read an existing Target, change `name`, swap in real values
        for any field whose value is `"***REDACTED***"`, and pass the result here as
        kwargs. Calls that still contain the redaction sentinel are rejected with an
        error naming each offending path; the sentinel is never forwarded to the backend.

        Args:
            name: Unique name for this target.
            type: Target type — 'generation', 'custom_endpoint', or 'voice'.

            model_id: (generation targets) Foundation model ID, e.g. 'gpt-4o-mini'.
            temperature: (generation targets) Response randomness, default 0.
            system_prompt_template: (generation targets) System instructions; mustache
                syntax supported, e.g. '{scenario_input}'.
            user_prompt_template: (generation targets) User prompt template.
            dialog_template: (generation targets) Dialog formatting template.
            tools: (generation targets) Tool definitions for function calling.

            next_message_params: (custom_endpoint) Nested HTTP config for each
                conversation turn. Required keys: 'url', 'method'. Optional:
                'headers', 'body', 'status_code', 'response_message_path',
                'response_session_id_path', 'response_tool_calls_path'.
                All response path values MUST use dot-path notation starting with
                'response.' — e.g., 'response.message', 'response.choices[0].message.content',
                'response.choices[0].tool_calls'. Never use bare property names.
                For SSE/streaming endpoints, include a 'streaming' object with:
                  - 'stop': array of stop conditions (OR semantics — any match ends
                    the stream). Each has 'value' (required) and optional 'path'
                    (dot-path into JSON chunk). Without 'path', matches raw SSE data.
                  - 'select': array of select conditions (AND semantics — all must
                    match for a chunk's content to be extracted). Each requires
                    'path' and 'value'.
                When streaming, set response_message_path to the chunk field
                (e.g., 'response.choices[0].delta.content').
            start_session_params: (custom_endpoint, optional) Nested HTTP config to
                initialise a session. Required key: 'url'. Optional: 'method',
                'headers', 'body', 'status_code', 'response_session_id_path'
                (dot-path starting with 'response.', e.g. 'response.id'),
                'response_message_path'. Supports 'streaming' object (same
                structure as next_message_params.streaming).
            end_session_params: (custom_endpoint, optional) Nested HTTP config to
                close a session after the last turn.
            auth_params: (custom_endpoint, optional) Token-based authorization config.
                Required keys when provided: 'url', 'method', 'response_access_token_path'
                (dot-path starting with 'response.', e.g. 'response.access_token').
                Optional: 'headers', 'body', 'status_code'.
            sensitive_fields: (custom_endpoint, optional) List of dot-path strings for
                secret fields within auth_params (e.g., 'auth_params.body.client_id').
                The MCP auto-generates entries for top-level auth_params keys; use this
                for deeper paths. To remove auth from an existing target, call
                create_or_update_target again without auth_params.
            max_parallel_requests: (custom_endpoint, twilio) Concurrency limit. This is
                the same setting the Okareo web UI labels "max concurrency".

            edge_type: (voice targets) How Okareo reaches the voice agent —
                'twilio' (dial a phone number) or 'sip' (call a SIP URI).

            to_phone_number: (voice twilio) Destination phone number (required).
            account_sid: (voice twilio, custom only) Twilio account SID. If provided,
                auth_token and from_phone_number are also required (all-or-nothing).
                Omit for generic Twilio targets using Okareo's managed integration.
            auth_token: (voice twilio, custom only) Twilio auth token. Required with
                account_sid and from_phone_number.
            from_phone_number: (voice twilio, custom only) Caller phone number. Required
                with account_sid and auth_token.

            sip_uri: (voice sip) Destination SIP URI (required), e.g.
                "sip:agent@your-domain.example.com". Use this to test any voice
                agent reachable over SIP — for example one fronted by Daily,
                Vapi, LiveKit, or a SIP trunk.
            sip_username: (voice sip, optional) SIP authentication username.
            sip_password: (voice sip, optional) SIP authentication password
                (stored as a sensitive field).
        
- **get_target** — Check the current configuration of a test target.

        Retrieves a Target by name. Works for all target types (Generation,
        Custom Endpoint, and Voice).

        For **custom_endpoint** Targets, the response is a flat envelope whose
        keys mirror the kwargs accepted by `create_or_update_target`, so a
        copilot can read the result, swap in a new name + secrets, and feed it
        back to create to clone the Target. Fields the backend keeps secret
        (those listed in `sensitive_fields`) appear with the literal value
        `"***REDACTED***"` — these MUST be replaced with real values before
        calling `create_or_update_target`, which rejects payloads still
        containing the sentinel.

        The `max_parallel_requests` field on custom_endpoint Targets is the
        same setting the Okareo web UI labels "max concurrency".

        For generation and voice Targets, the response shape is unchanged
        (kept stable for existing callers).

        Args:
            name: Name of the target to retrieve.
        
- **list_targets** — Find a simulation target.

        Lists every simulation target (voice and custom_endpoint types) created
        via create_or_update_target. Does not include generation models
        registered via register_generation_model — use list_generation_models
        for those.

        Bounded by default and filterable by name. Two depths:

        - "summary" (default): target id, name, type, and creation date.
        - "detailed": adds tags and a short configuration summary.

        Use get_target for one target's complete configuration.

        Args:
            limit: Maximum number of targets to return. Defaults to 20. Set to
                0 to return all.
            offset: Number of targets to skip. Defaults to 0.
            name_contains: Case-insensitive substring filter on the target name.
            detail_level: "summary" (default) or "detailed".
        
- **delete_target** — Remove a simulation target and all its related test data.

        Permanently deletes the target and cascades to associated
        test runs and test data points. This cannot be undone.

        Args:
            name: Name of the target to delete.
        
- **create_or_update_driver** — Define a simulated user persona that will interact with your target.

        Creates or updates a Driver by name (upsert). Author ONLY the core
        persona sections in prompt_template, in this order:

        - `## Persona` — who the simulated user is (static character).
        - `## Scenario Details` — contains the scenario reference
          (`{scenario_input}` or a specific path like
          `{scenario_input.objectives}`), placed immediately before
          Objectives. This is how each scenario row's data reaches the
          conversation.
        - `## Objectives` — WHAT the driver is trying to accomplish, written
          from the driver's goal (not from scenario variables).
        - `## Soft Tactics` — HOW the driver probes, escalates, and stops.

        Do NOT author Hard Rules, a Turn-End Checklist, or Conversation
        Behavior sections: the MCP automatically appends the platform's
        canonical versions of those blocks (including the language rule
        matching `language`) — the same blocks the Okareo UI appends to
        generated drivers. Any caller-authored variant of these sections is
        replaced by the canonical text, and repeated updates never duplicate
        the blocks.

        For voice agents, configure how the simulated user speaks with `voice`,
        `voice_profile`, `voice_instructions`, and `language`. Call
        list_driver_voices first to discover valid voice and profile values.

        Args:
            name: Unique name for this driver.
            prompt_template: The core persona prompt (Persona, Scenario
                Details, Objectives, Soft Tactics — see above). Hard Rules and
                Conversation Behavior are appended automatically.
            model_id: Foundation model to power the driver (defaults to project default).
            temperature: Response randomness, default 0.6.
            voice_instructions: Free-text speaking instructions for voice simulations
                (tone, pace, accent). Not validated against the voice catalog.
            voice_profile: Voice profile name for voice simulations. Validated
                against the catalog from list_driver_voices.
            voice: Voice identifier for voice simulations. Validated against the
                catalog from list_driver_voices.
            language: Language the driver responds in, as the bare ISO code
                the voice catalog serves (e.g. "en", "es", "ja"); regional
                variants like "fr-CA" are accepted when their base code
                matches the voice's language. When a `voice` is set and
                language is omitted, it is derived from that voice's catalog
                language (disclosed as `language_derived_from_voice` in the
                response); a value conflicting with the voice's language is
                rejected. Also drives the appended Hard Rules language rule.
        
- **get_driver** — Retrieve a driver persona you've already configured.

        Retrieves a Driver by name, returning its full configuration including the
        persona prompt.

        Args:
            name: Name of the driver to retrieve.
        
- **list_drivers** — Find a driver persona in your organization.

        Drivers are shared across every project, so this list grows with the
        whole organization's history rather than one project's — it is bounded
        by default and filterable by name.

        Two depths:

        - "summary" (default): driver id, name, model, and creation date.
        - "detailed": adds temperature and, for voice drivers, their voice
          settings.

        Voice attributes are omitted entirely for text drivers rather than
        returned empty.

        Args:
            limit: Maximum number of drivers to return. Defaults to 20. Set to
                0 to return all.
            offset: Number of drivers to skip. Defaults to 0.
            name_contains: Case-insensitive substring filter on the driver name.
            detail_level: "summary" (default) or "detailed".
        
- **list_driver_voices** — Discover the voices, voice profiles, and languages available for
        configuring voice-capable drivers.

        Call this before create_or_update_driver when building a voice agent
        simulation, so you can pass valid `voice`, `voice_profile`, and
        `language` values.

        Each entry in `voices` carries selection metadata — use it to pick
        the voice:
        - `language`: bare ISO code (e.g. "en", "es", "ja"). The driver's
          `language` is derived from the selected voice's language when
          omitted, and must not conflict with it.
        - `accent`: free-text accent label present on many voices (e.g.
          "British", "Mexican", "Parisian", "Southern US"). To satisfy an
          accent request, select a voice whose `accent` matches — writing
          accent instructions into `voice_instructions` does NOT change the
          TTS voice.
        - `gender`: e.g. "feminine" / "masculine".

        `voice_profiles` are emotion/delivery presets (happy, angry,
        sarcastic, ...) — they shape affect, not accent or language.
        `languages` lists the distinct voice languages available.
        
- **run_simulation** — Run a multi-turn conversation evaluation of your AI agent.

        Combines a Target (the system under test), a Driver (the simulated user),
        and a Scenario (the test cases) to generate realistic multi-turn conversations
        and evaluate them with quality checks.

        Returns promptly so the call never times out on long runs. Short runs that
        finish within the buffer window return ``status: "finished"`` with results
        ready; longer runs return ``status: "running"`` with the ``test_run_id``,
        ``app_link``, and an ``estimated_runtime`` — the run continues to completion
        on its own. In both cases, poll get_test_run_results with the returned
        test_run_id for scores, and get_conversation_transcript for transcripts.

        **To rerun a previous simulation**, pass based_on_run_id with the original
        run's ID and supply only the values you want to change. Everything the
        original recorded carries over: scenario, target, driver, checks,
        stop_check, repeats, max_turns, first_turn, checks_at_every_turn,
        turn_transition_time and — for voice runs — augmentation and
        silence_timeout_ms. Any argument you pass overrides that one field and
        leaves the rest inherited.

        A parameter the original run never recorded falls to this tool's default
        rather than being guessed at, and anything it recorded that this tool
        cannot set is reported in `rerun_notes` rather than silently dropped.

        Read a run's `rerun` block first (get_test_run_results) to see exactly
        what will carry over.

        For custom_endpoint Targets: an exception raised during the run (for
        example the endpoint erroring mid-conversation) FAILS the run — it is
        reported as a failed simulation, not silently skipped.

        **Voice augmentations** — for voice Targets, the `augmentation` parameter
        applies realistic acoustic and conversational effects. Seven top-level
        keys: `cap`, `directed_speech`, `secondary_speaker`, `backchannel`,
        `barge_in`, `dropout`, plus the composable `noise`. **Composition rule**:
        at most one non-noise strategy may be active, optionally combined with
        `noise`. Augmentations apply only to voice Targets — calls against
        generation or custom_endpoint Targets with an augmentation block are
        rejected. Field-level errors (out-of-range value, missing required field,
        swapped offsets, unknown strategy, or a setting Okareo would ignore) are
        returned by the MCP before any call to Okareo.

        Strategy required / optional fields (numeric ranges in brackets):
          - cap: probability [0.0, 1.0] required. pause_ms [0, 10000] optional.
          - directed_speech: probability [0.0, 1.0] required. lpf_cutoff_hz (>0),
            gain_db [-40.0, 0.0], sample_rate (>0), prompt, reverb_preset optional.
          - secondary_speaker: probability [0.0, 1.0] AND secondary_voice (non-empty
            string) required. inter_speaker_pause_ms [0, 5000], lpf_cutoff_hz (>0),
            gain_db [-40.0, 0.0], sample_rate (>0), secondary_prompt,
            secondary_voice_instructions, secondary_reverb_preset optional.
          - backchannel: utterance (non-empty string) required. probability
            [0.0, 1.0], min_offset_ms (>=0), max_offset_ms (>= min_offset_ms),
            seed optional.
          - barge_in: prompt (non-empty string) required. probability [0.0, 1.0],
            min_offset_ms (>=0), max_offset_ms (>= min_offset_ms), seed optional.
          - dropout: probability [0.0, 1.0] required — the chance, per caller
            turn, that the caller says nothing for the whole turn, so the agent
            hears dead air. seed optional.
          - noise: noise_profile (non-empty string) AND noise_snr_db (number)
            required. seed optional.

        `start_at_turn` (int >= 1, default 1) and `end_at_turn` (int >= 1,
        default none) are optional on directed_speech, secondary_speaker,
        backchannel, barge_in and dropout, and not accepted by cap or noise.
        Together they are the window the strategy may fire in. Both count the
        agent's turns that carried words, which is not the transcript's turn
        numbering. `end_at_turn` must not be before `start_at_turn`;
        `start_at_turn` must not exceed max_turns. To fire on one turn only, set
        both to that turn and probability to 1.0.

        The SDK's spellings are accepted too: `profile` / `snr_db` for noise, and
        `voice` / `prompt` / `reverb_preset` for secondary_speaker — but not both
        spellings of one setting. Settings Okareo ignores are rejected by name,
        including three the SDK publishes: noise.probability,
        barge_in.replacement_text and barge_in.utterance.

        A dropped turn leaves no message in the transcript;
        `get_conversation_transcript` reports those turns as `dropped_turns`.

        Two limits worth knowing. Every voice Target takes an augmentation block,
        but its connection decides which strategies can fire. dropout needs a
        connection where the caller can stay silent: phone, SIP and WebRTC
        Targets. barge_in and backchannel need one where the caller can
        interrupt: phone, SIP and WebRTC Targets, except a SIP Target dialed
        directly (sip_mode "direct"). OpenAI and Deepgram realtime Targets carry
        none of the three. A strategy the connection cannot carry is left out and
        the run still succeeds. And a `seed` makes every repeat of the run fire
        on the same turns.

        For copy-paste examples and the full reference, call
        `get_templates("voice_augmentations")`.

        Args:
            name: Human-readable name for this simulation run.
            scenario_name: Name of an existing scenario set (from list_scenarios,
                or one you just created with save_scenario) supplying the test
                cases. Always pass this — it is optional only when
                based_on_run_id is given AND that run's scenario set still
                exists. Never invent a name; if you do not have one, call
                list_scenarios or save_scenario first.
            target_name: Name of the target to evaluate (from list_targets or
                create_or_update_target). Same rule as scenario_name: always
                pass it unless based_on_run_id can supply it.
            driver_name: Name of the driver persona. If omitted, the project default
                driver is used.
            checks: List of check names to apply (from list_checks). Pick from
                the list_checks category matching the task and modality —
                voice-specific categories for voice simulations, categories
                outside them for either modality; never chat-only checks for
                audio (or vice versa). Every simulation runs with at least one
                check: when omitted or empty, the benign code-based "latency"
                performance check is applied automatically and the response
                discloses the substitution via `default_check_applied`.
                Supplied checks are used unchanged.
            repeats: Number of times to run each scenario row, default 1.
            max_turns: Maximum conversation turns per simulation, default 5.
            first_turn: Who speaks first — 'target' or 'driver', default 'target'.
            based_on_run_id: ID of a previous simulation run to inherit the full
                recorded configuration from; any other argument overrides that
                one field.
                Explicitly supplied values override the original run's parameters.
            augmentation: (voice Targets only) Voice augmentation block. See the
                "Voice augmentations" section above for keys and ranges. An empty
                dict is treated as no augmentation.
            turn_transition_time: Milliseconds of pause between turns. Forwarded to
                the backend as-is; SDK default (1000) is used when omitted.
            silence_timeout_ms: The target reply timeout — how patient Okareo
                is before indicating that the target can't respond. Do NOT set
                or change this value unless the user specifically directs it;
                it should be 10000 ms in nearly all cases. It exists to
                accommodate untuned targets with very long tool calls, during
                which the Driver waits patiently. It does NOT change how fast
                Okareo responds, and lowering it does not speed anything up —
                a slow simulation is not a reason to change it. Forwarded to
                the backend; backend default is used when omitted.
            checks_at_every_turn: When True, checks are evaluated per turn (not
                only at end of run).
            stop_check: Early-stop config: `{"check_name": str, "stop_on": <value>}`.
                The run halts as soon as the named check returns `stop_on`.
        
- **list_simulations** — Find or compare simulation runs in the project, most recent first.

        Two depths:

        - "summary" (default): identity, status, conversation count, timings,
          and what each run executed against (target, scenario, driver).
        - "detailed": adds aggregate model_metrics and the provenance
          identifiers, up to 20 runs at a time.

        **To compare simulations, use detail_level="detailed" here** rather
        than calling get_test_run_results for each run — one response carries
        the aggregates and the provenance needed to tell whether two runs are
        even comparable, without opening any of them.

        Neither depth returns per-conversation scores or explanations. Use
        get_test_run_results for those, then get_conversation_transcript with
        a scenario_index for one conversation's transcript.

        Args:
            target_name: Optional filter — only show simulation runs using
                this target.
            scenario_name: Optional filter — only show simulation runs using
                this scenario.
            limit: Maximum number of runs to return, sorted by most recent
                first. Defaults to 10. Set to 0 to return all runs. In
                "detailed" mode this is capped at 20.
            offset: Number of runs to skip. Defaults to 0.
            detail_level: "summary" (default) or "detailed".
        
- **create_or_update_check** — Create or update a quality check by name (upsert). Supports model-based, code-based, and audio checks.

        Saving to an existing name creates a new version of that check (see
        get_check's "available_versions"). Before writing a prompt_template or
        code_contents from scratch, fetch a worked example with get_templates:
        "boolean_check_prompt", "score_check_prompt", "analysis_check_prompt",
        or "check_code".

        Args:
            name: Unique name for the check.
            description: What the check evaluates.
            check_type: "model" (an LLM judge driven by prompt_template) or
                "code" (a deterministic Python class in code_contents).
            output_type: "pass_fail" (boolean verdict), "score" (numeric, e.g.
                a 1-5 rubric), or "analysis" (free-form qualitative feedback;
                only valid with check_type="model"). For check_type="code" the
                server infers pass_fail vs score from the value evaluate()
                returns (bool vs int/float) — output_type is used only to
                validate the request, not sent to the server. Note: list_checks
                and get_check report this as output_data_type in the server
                vocabulary, where "bool" means pass_fail and "int" means score.
            prompt_template: Required when check_type="model". The judge
                prompt. Write the criterion, rubric, or instructions in your
                own words, and inject the runtime data the judge needs with
                these placeholders — the complete set Okareo substitutes:
                - {model_output}: the model output being evaluated. In a
                  multi-turn conversation this is ONLY the final assistant
                  message, not the full conversation.
                - {scenario_input}: the scenario input / source text.
                - {scenario_result}: the reference/expected output.
                - {model_input}: what was sent to the model (prompt or
                  messages).
                - {message_history}: the full multi-turn conversation — the
                  model_input messages plus the assistant's model_output. Use
                  this when the check must judge the whole conversation.
                - {tool_calls}: the tool/function calls the model just made.
                - {tools}: the tool definitions/schema available to the model.
                - {model_output_metadata}: metadata attached to the most
                  recent model output.
                - {simulation_message_history}: full conversation history
                  reconstructed from trace metadata. Only populated for traced
                  (ingested) conversations; for simulations and evaluations
                  use {message_history}.
                - {user_only_audio}: the user's audio only, for
                  speaker-scoped audio checks. Audio checks only — empty on
                  text evaluations.
                Okareo rejects any placeholder that is not listed above. That
                includes the legacy aliases {generation}, {input}, {result},
                {audio_messages}, and {audio_output} — use {model_output},
                {scenario_input}, {scenario_result}, and {user_only_audio}
                instead. A rejected prompt fails on save and fails
                calibrate_check.
            code_contents: Required when check_type="code" (output_type
                "pass_fail" or "score" only). Python source defining
                `class Check(CodeBasedCheck)` with a
                `@staticmethod def evaluate(...) -> CheckResponse` method.
                Start from `from okareo.checks import CodeBasedCheck,
                CheckResponse`. evaluate() may declare any subset of these
                parameters: model_output, scenario_input, scenario_result,
                metadata, model_input. Return CheckResponse(score=...,
                explanation=...) where score is a bool for pass_fail or an
                int/float for score. See get_templates("check_code") for
                complete examples.
            is_audio: Set to true for audio/voice evaluation. Only valid with
                check_type="model".
            tags: Optional list of string tags to organize the check. Tags are
                stored with the check and returned by get_check.
        
- **generate_check** — Generate a check from a natural language description. Uses AI to create the prompt template (model checks) or Python code (code checks), then saves the check.

        Use this when you only have a description of what to evaluate. When
        you already know the exact prompt template or Python code the check
        should use, call create_or_update_check directly instead. The
        generated prompt/code is returned in the response — review it and
        refine with create_or_update_check if needed.

        Args:
            name: Name for the generated check.
            description: Natural language description of what to evaluate
                (e.g., "check if the response is toxic"). The more specific
                the description, the better the generated check.
            output_type: "pass_fail" (boolean verdict), "score" (numeric), or
                "analysis" (free-form qualitative feedback; model checks only).
            check_type: "model" (LLM judge) or "code" (deterministic Python).
            requires_scenario_input: Set true when the evaluation must compare
                the output against the scenario input. The generated check
                will reference {scenario_input} and only works on runs whose
                scenarios provide it.
            requires_scenario_result: Set true when the evaluation must
                compare the output against the expected result. The generated
                check will reference {scenario_result} and only works on runs
                whose scenarios provide it.
        
- **get_check** — Retrieve the full configuration of a check by name, including its prompt template or code contents.

        Args:
            name: Name of the check to retrieve.
            version: Optional check version number to pin. Omit (or leave null)
                for the most recent version. The response always lists every
                available version under "available_versions".
        
- **delete_check** — Permanently delete a check by name.

        Args:
            name: Name of the check to delete.
        
- **calibrate_check** — Dry-run a draft check against a finished test run: per-row verdicts plus the exact arguments the check received, saving nothing.

        Use this to tune a check before it exists. Write a draft prompt or
        draft code, calibrate it against a run you already have, read the
        per-row verdicts and the values that went in, revise, repeat. It
        persists nothing — no check, no test run, no datapoints, no scores —
        so iterating leaves no litter in the project. When the verdicts are
        right, save the same draft with create_or_update_check.

        What comes back, one entry per test datapoint (the row id the
        evaluation results UI shows, so a verdict traces back to its
        conversation):

        - result: the score or verdict, the judge's explanation, check
          metadata such as latency and cost, and the row's own error if it
          failed. One row erroring does not fail the batch.
        - arguments: what the check actually received for that row, whole —
          values are never truncated, so a JSON one such as metadata still
          parses. A model draft reports the full substituted variable set; a
          code draft reports only the parameters its evaluate() signature
          declares, as raw values.

        Cost and bounds:

        - Every evaluated row costs a real judge call, exactly like rescoring
          that row. inspect_only=true returns the arguments alone and makes
          zero judge calls — use it first to answer "is this variable even
          populated for these rows", which is the usual reason a check scores
          nonsense.
        - At most 100 rows are evaluated per call. The response reports how
          many rows were eligible and flags the cap when it applied, and the
          same run returns the same rows every time, so two iterations are
          comparable.

        Placeholders for prompt_template — the complete set Okareo
        substitutes at evaluation time:
        - {model_output}: the model output being evaluated. In a multi-turn
          conversation this is ONLY the final assistant message, not the full
          conversation.
        - {scenario_input}: the scenario input / source text.
        - {scenario_result}: the reference/expected output.
        - {model_input}: what was sent to the model (prompt or messages).
        - {message_history}: the full multi-turn conversation — the
          model_input messages plus the assistant's model_output.
        - {tool_calls}: the tool/function calls the model just made.
        - {tools}: the tool definitions/schema available to the model.
        - {model_output_metadata}: metadata attached to the most recent model
          output.
        - {simulation_message_history}: full conversation history
          reconstructed from trace metadata. Only populated for traced
          (ingested) conversations; for simulations and evaluations use
          {message_history}.
        - {user_only_audio}: the user's audio only, for speaker-scoped audio
          checks. Audio checks only — empty on text evaluations.
        Okareo rejects any placeholder that is not listed above. That includes
        the legacy aliases {generation}, {input}, {result}, {audio_messages},
        and {audio_output} — use {model_output}, {scenario_input},
        {scenario_result}, and {user_only_audio} instead. A rejected prompt
        fails on save and fails calibrate_check.

        Audio caveat: is_audio=true calibrates, but the row builder supplies
        no audio for test-run rows, so every row comes back with no score and
        the runtime's "No audio data provided" explanation — exactly what
        re-scoring that run would do today. That is a known platform gap, not
        a fault in your draft.

        Args:
            test_run_id: The finished test run whose rows to calibrate
                against, as a UUID from list_test_runs. A run that is still
                running, or in any non-terminal state, is refused.
            check_type: "model" (an LLM judge driven by prompt_template) or
                "code" (a deterministic Python class in code_contents).
                Supply exactly one of the two — a draft carrying both is
                refused here, before any request is sent.
            prompt_template: Required when check_type="model". The judge
                prompt, in the same shape create_or_update_check takes.
            code_contents: Required when check_type="code". Python source in
                the same shape create_or_update_check takes; see
                get_templates("check_code").
            output_type: Required when check_type="model": "pass_fail",
                "score", or "analysis". Not sent for code drafts — the server
                infers a code check's type from what evaluate() returns.
            is_audio: Set true for an audio/voice draft. Only valid with
                check_type="model". See the audio caveat above.
            inspect_only: True returns the arguments for every row and runs
                no judge at all, at no cost.
            name: Name for the draft, at most 200 characters. It labels the
                returned result column only; nothing is created under it.
        
- **get_docs** — Query the Okareo documentation system for information about Okareo primitives and workflows.

        Use this tool when the agent or user needs to understand how Okareo
        concepts work — Scenarios, Checks, Targets, Drivers, Evaluations,
        and Simulations.

        Two modes are available:
        - 'conceptual': Detailed technical documentation for agent reasoning.
          Default top_k=5 (returns up to 5 documentation entries).
        - 'user_legible': Plain-language explanations for human users.
          Default top_k=3 (returns up to 3 documentation entries).

        If the Okareo documentation service is unavailable (e.g. air-gapped
        environment), the tool returns a helpful error suggesting get_templates
        as a fallback.

        Args:
            query: The question to ask the Okareo documentation system. Be
                specific — e.g., 'How do Checks and Evaluations work together?'
                or 'What is a Driver persona?'
            mode: Documentation mode — 'conceptual' or 'user_legible'.
            top_k: Number of documentation entries to return. Defaults to 5
                for conceptual mode, 3 for user_legible mode. Maximum 10.
        
- **get_templates** — Retrieve prompt templates for common Okareo patterns.

        Returns starter templates for building Okareo test components. These
        templates are served as static content from the MCP — no network calls
        required. Always available, even in air-gapped environments.

        Available templates:
        - basic_scenario: Template for creating a basic Okareo test scenario
        - boolean_check_prompt: Template for a pass/fail (boolean) check prompt
        - score_check_prompt: Template for a scored check prompt
        - check_code: Template for a code-based check (Python function)
        - target_validate_check_prompt: Template for validating target output
        - driver_prompt: Template for a Driver persona prompt
        - driver_voice_extension_prompt: Template for voice interaction extensions
        - analysis_check_prompt: Template for an analysis check (qualitative feedback)

        Args:
            template_name: Template identifier to retrieve. Omit to get a
                lightweight listing of all available templates (names and
                descriptions only). Provide a template_name to get the full
                template content. Valid values: basic_scenario,
                boolean_check_prompt, score_check_prompt, check_code,
                target_validate_check_prompt, driver_prompt,
                driver_voice_extension_prompt, analysis_check_prompt.
        
- **get_reps_baseline** — Serve REPS agent-evaluation baseline material (scenario banks, drivers, checks, eval configs).

        REPS is Okareo's agent-evaluation workbench: per-pillar baseline
        material for evaluating AI agents across R-reasoning, E-execution,
        P-performance, and S-security, plus shared explore/ probes and a
        profile/ example. The material is published as tagged releases of
        the okareo-tools repo; this tool serves the latest release so reps
        skills need no local copy of the tree.

        Two modes:
        - Discovery (omit `path`): list what files exist in the served
          release — the full tree, or one area via `pillar`. File lists
          change between releases, so always discover before fetching.
        - Fetch (provide `path`): return one file's exact content as
          published in the release. Use paths verbatim from discovery,
          e.g. 'S-security/scenarios/verification-gate.jsonl'.

        Every response carries the release tag it was served from (e.g.
        'v0.5.1') — record it in evaluation reports as baseline
        provenance. `stale: true` means the last release check failed and
        the content may lag the newest release.

        Args:
            pillar: Optional discovery filter. One of: R-reasoning,
                E-execution, P-performance, S-security, explore, profile.
                Omit to list the entire baseline tree (which also includes
                shared material outside these areas).
            path: Optional file path (relative to the baseline tree, as
                returned by discovery). Provide to fetch that file's
                content; omit for discovery.
            version: Optional release tag. Currently only the served tag
                is available; any other value returns an error naming what
                IS available. Omit to accept the served release.
        
- **ingest_conversations** — Submit completed voice conversations to Okareo for monitoring.

        Each conversation's turns become evaluable data points and any
        configured monitors run their checks automatically. Use this to feed
        production voice traffic (Retell, Twilio, VAPI, ElevenLabs, or a custom
        source) into Okareo monitoring.

        Conversations are validated individually: valid ones are ingested and
        invalid ones are returned in a "rejected" list — the batch is not
        all-or-nothing.

        Args:
            conversations: List of conversation objects. Each MUST include a
                "call_id" and at least one of: "transcript" (a list of
                {role, content, timestamp_ms} turns), "audio"
                ({"type": "url"|"voice_file_id"|"inline_b64", ...}),
                "recording_url", or "recording_bytes_b64". Optional per
                conversation: "context_token", "metadata", "tags" (tags drive
                monitor/filter-group matching), "diarization", "first_turn".
                When both a transcript and audio are supplied, the transcript
                takes precedence.
            mut_id: Optional model-under-test ID. Omit for pure monitoring —
                data points are then matched to monitors by their tags only.
        
- **connect_voice_integration** — Connect a voice provider so its traffic flows into Okareo monitoring.

        Creates a provider integration. The returned integration carries an id
        and a public_id — pass the provider + public_id to get_voice_webhook_url
        to obtain the inbound webhook endpoint to paste into the provider's
        console.

        Args:
            provider: Voice platform — one of: retell, twilio, vapi, elevenlabs.
            webhook_auth_type: Webhook authentication type expected by Okareo
                for this provider (provider-specific — see Okareo docs).
            secrets: Provider-specific secret values (opaque pass-through; the
                response never echoes raw secrets, only a summary).
            metadata: Optional free-form metadata object.
        
- **list_voice_integrations** — List the voice provider integrations in your Okareo project.

        Args:
            limit: Maximum number of integrations to return (default 20). Use 0
                for no limit.
        
- **get_voice_integration** — Retrieve a voice provider integration by id, including its status.

        Args:
            integration_id: The integration's id (from list_voice_integrations).
        
- **update_voice_integration** — Update a voice provider integration's metadata.

        Args:
            integration_id: The integration's id.
            metadata: The new metadata object.
        
- **rotate_voice_integration_secret** — Rotate a voice provider integration's secrets.

        Args:
            integration_id: The integration's id.
            secrets: The new provider secret values. The response returns only
                a secret summary, never raw secret values.
        
- **delete_voice_integration** — Delete a voice provider integration by id.

        Args:
            integration_id: The integration's id.
        
- **get_voice_webhook_url** — Get the inbound webhook endpoint for a voice provider.

        Paste the returned URL into the provider's console so its call traffic
        reaches Okareo monitoring.

        Args:
            provider: Voice platform — one of: retell, twilio, vapi, elevenlabs.
            public_id: The integration's public_id (from connect_voice_integration
                or get_voice_integration). Required for retell and twilio.
        
- **query_analytics** — Query Okareo's product analytics to understand evaluation trends.

        Answers questions like "how is my evaluation quality trending" by
        aggregating measures across dimensions over a time window.

        Args:
            measures: Metrics to aggregate. Required. For the ``check_trend``
                cube: avg_check_value, issue_rate, error_rate, datapoint_count,
                issue_count, error_count, test_run_count, avg_latency, sum_cost,
                input_token_count, output_token_count.
            dimensions: Optional group-by fields (e.g. ["check.name"],
                ["target.name"], ["provider"]).
            cube: Optional analytics cube name (defaults to ``check_trend``,
                currently the only cube).
            filters: Optional list of filter objects
                ``{"member": ..., "operator": ..., "values": [...]}``.
            time_range: Optional look-back window — one of LAST_HOUR,
                LAST_24_HOURS, LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS,
                LAST_90_DAYS. If neither time_range nor time_dimensions is
                given, defaults to LAST_30_DAYS (the analytics API requires a
                time window).
            time_dimensions: Optional time bucketing — a list with at most one
                entry, e.g. [{"dimension": "test_run.start_time",
                "granularity": "day"}] (granularity: hour, day, or week).
            include_metadata: When true, also return the available cubes,
                dimensions, and measures so the query can be refined.
        
- **list_dashboards** — List the analytics dashboards in your Okareo project.

        Args:
            limit: Maximum number of dashboards to return (default 20). Use 0
                for no limit.
        
- **get_dashboard** — Retrieve a dashboard's full configuration by name.

        Args:
            name: Name of the dashboard to retrieve.
        
- **save_dashboard** — Create or update an analytics dashboard by name (upsert).

        If a dashboard with this name already exists it is updated; otherwise a
        new one is created.

        Size each panel with a named ``size`` from the catalog below (PREFERRED
        — guarantees a legible layout) and omit positions entirely: panels are
        auto-placed in the order given (left-to-right, top-to-bottom on a
        12-column grid, wrapping rows, never overlapping).

        Size catalog and when to use each:

        - ``small-square`` (3x6): single ``stat`` metrics.
        - ``half-rectangle`` (6x6): ``line``/``bar``/``area`` trends, two per row.
        - ``half-square`` (6x9): ``radar``, ``composed``, denser charts.
        - ``full-rectangle`` (12x9): wide time-series comparisons.
        - ``full-square`` (12x12): ``table`` panels.

        Args:
            name: Dashboard name — the upsert key.
            panels: Optional list of panel definitions. Each panel is an object:

                - ``title`` (str, required): panel heading.
                - ``chart_type`` (str, required): one of ``line``, ``bar``,
                  ``composed``, ``area``, ``radar``, ``stat``, ``table``.
                - ``query`` (object, required): what to chart —
                  ``{"cube": "check_trend", "measures": [...],
                  "dimensions": [...], "filters": [...],
                  "time_dimensions": [...], "order": {...}}``. ``measures`` is
                  required; everything else is optional. ``cube`` defaults to
                  ``check_trend``. The dashboard ``time_range`` applies to all
                  panels — panels do NOT carry their own time range.
                - ``size`` (str): a catalog name (see above). Required unless
                  ``layout`` is given; wins over ``layout`` w/h if both appear.
                - ``layout`` (object): raw grid placement
                  ``{"x": >=0, "y": >=0, "w": >=1, "h": >=1}`` (integers).
                  Only needed when not using ``size``, or to pin an explicit
                  position (give both ``x`` and ``y``; with ``size``, w/h are
                  ignored). Heights below the legibility floor are sized up on
                  save: ``h >= 6`` when ``w <= 6``, ``h >= 9`` when ``w > 6``.
                - ``table_config`` (object, optional): ONLY for
                  ``chart_type == "table"``.

                ``check_trend`` measures: ``avg_check_value``, ``issue_rate``,
                ``error_rate``, ``datapoint_count``, ``issue_count``,
                ``error_count``, ``test_run_count``, ``avg_latency``,
                ``sum_cost``, ``input_token_count``, ``output_token_count``.
                ``check_trend`` dimensions: ``check.name``, ``check.id``,
                ``target.name``, ``target.id``, ``scenario.name``,
                ``scenario.id``, ``test_run.id``, ``test_run.type``,
                ``test_run.is_latest_for_target``, ``source``, ``provider``,
                ``request_model_name``, ``response_model_name``, ``tag``.
                Use ``query_analytics(include_metadata=True)`` for the
                authoritative, current set.

                Example panel::

                    {"title": "Avg Check Value by Check", "chart_type": "bar",
                     "query": {"measures": ["avg_check_value"],
                               "dimensions": ["check.name"]},
                     "size": "half-rectangle"}
            description: Optional dashboard description.
            time_range: Optional default look-back window for the whole
                dashboard. One of: LAST_HOUR, LAST_24_HOURS, LAST_7_DAYS,
                LAST_14_DAYS, LAST_30_DAYS, LAST_90_DAYS. Defaults to
                LAST_90_DAYS when omitted.

        Returns:
            JSON with the saved dashboard and ``action`` (created/updated).
            When sizing or dimensions were changed on save (size overriding
            layout w/h, or a height floored), an ``adjustments`` list reports
            each change: ``{"panel", "field", "from", "to", "reason"}``.
        
- **reorder_dashboards** — Set the display order of dashboards.

        Args:
            ordered_names: Dashboard names in the desired order.
        
- **delete_dashboard** — Delete a dashboard by name.

        Args:
            name: Name of the dashboard to delete.
        
- **list_projects** — See which Okareo projects you can work in, and which one is active.

        Work in Okareo is organized into projects: scenarios, targets,
        simulations, evaluations, and dashboards each belong to exactly one.
        Checks and drivers are shared across all of them.

        Each project reports its tags and whether it is archived. Archived
        projects are still listed and still work — archiving only hides a
        project from the project picker in the Okareo app.

        Use this to answer "which project am I in?", to find an archived
        project worth restoring, and whenever you need to ask the user to
        choose one. Create a new one with create_project.
        
- **select_project** — Choose the Okareo project to work in for this conversation.

        Validates the project exists, then tells you how to apply it. This
        server stores nothing: pass `project` on every subsequent
        project-scoped call, and record the user's choice so you can reuse it
        in later conversations.

        Takes effect immediately — changing project never requires signing
        out, reconnecting, or re-authorizing. An archived project can be
        selected like any other.

        Args:
            project: Project name or id, as shown by list_projects.
        
- **create_project** — Create a new Okareo project.

        Use this when the user wants a fresh place to keep a body of work —
        scenarios, simulations, evaluations, and dashboards each belong to
        exactly one project. To copy an existing project's scenarios into a
        new one instead, use clone_project.

        Creating does NOT switch you to the new project: this server is
        stateless. The response gives you the new project's id — pass it as
        `project` on subsequent project-scoped calls, and remember it for
        later conversations.

        If the name is taken, the call is refused and nothing is created. Ask
        the user for a different name rather than inventing one.

        Args:
            name: Name for the new Project.
            tags: Optional tags for filtering in the Okareo app.
        
- **update_project** — Rename an Okareo project, or change its tags.

        Only what you pass changes: send `name` to rename, send `tags` to
        replace the tag list, send both to do both. Tags are replaced
        wholesale, not merged — read the current ones from list_projects
        first if the user means "add one".

        Name the project explicitly; this tool never guesses which project to
        edit. If the new name is already taken by another project, the call
        is refused and nothing changes.

        This tool does not archive or unarchive — use archive_project and
        unarchive_project for that.

        Args:
            project: The Project to update (name or id).
            name: New name, or omit to leave it alone.
            tags: Replacement tag list, or omit to leave tags alone.
        
- **archive_project** — Hide a project from the Okareo project picker. Nothing is deleted.

        Archiving is how Okareo retires a project you have finished with. It
        is NOT a delete, and there is no delete: every scenario, run, and
        dashboard in an archived project stays intact, the project can still
        be selected by name or id, and every tool still works against it.
        unarchive_project puts it back in the picker.

        Tell the user this plainly — never describe archiving as deleting or
        removing their data.

        The organization's default project cannot be archived; that call is
        refused and nothing changes.

        Args:
            project: The Project to archive (name or id).
        
- **unarchive_project** — Restore an archived project to the Okareo project picker.

        Reverses archive_project. Nothing about the project's contents
        changes — archiving never touched them.

        Find archived projects with list_projects: each row reports
        is_archived.

        Args:
            project: The Project to unarchive (name or id).
        
- **clone_project** — Clone a Project server-side: every Scenario, with all rows, into a new Project.

        One call to the backend's clone endpoint does the whole job in a
        single transaction: it creates the destination Project (tagged
        'Cloned from: <source>') and copies every source Scenario — same
        name, type, tags, and rows in the same order. Scenario data never
        enters this conversation. Runs, evaluations, dashboards, and
        monitors are NOT copied; Targets, Drivers, and Checks are shared
        across the organization and stay usable from the new Project.

        DRY-RUN-FIRST PROTOCOL: dry_run defaults to true and the first call
        must keep it that way. Present the returned plan to the user — the
        Scenario and row counts and any blockers — and only after the user
        explicitly confirms call this tool again with dry_run=false. Never
        execute a clone the user has not confirmed against those counts.

        The server owns every clone rule. A blocked clone (the destination
        name is already taken — the source's own name included — or is the
        reserved 'Global') returns the server's structured refusal. Do not
        retry it unchanged: choose a different name.

        Typical next steps after a clone: register the account's Target in
        the new Project (create_or_update_target with project set to it),
        select_project to keep working there, then run the first simulation.

        Args:
            source_project: The golden Project to clone (name or id).
            new_project_name: Name for the new destination Project.
            dry_run: True (default) reports what would be cloned without
                writing anything.
        
- **list_tenants** — List every Okareo organization you have access to in this MCP session.

        The currently-active organization is marked ``is_current: true``. The
        active organization is determined at sign-in (the token this session
        presents is already scoped to it). Only available on OAuth-authenticated
        sessions; on Bearer-API-key sessions returns
        ``tenant_selection_requires_oauth``.
        
- **switch_tenant** — Explain how to change the Okareo organization this session works in.
        Does not switch it.

        The organization is chosen **during sign-in** (feature 030): when you
        connect the Okareo MCP you pick which organization to authorize, and
        the credential this session uses is scoped to it. This tool returns
        the steps to change it — reconnect/re-authenticate the Okareo MCP from
        your copilot and select a different organization when prompted — and
        the current organization's id. Use ``list_tenants`` to see which
        organizations you have and which one is active. On Bearer-API-key
        sessions returns ``tenant_selection_requires_oauth``: an API key is
        tied to one organization.
        

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "okareo": {
    "command": "uvx",
    "args": ["okareo-mcp"],
    "env": {
      "OKAREO_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `OKAREO_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Okareo MCP server does

Okareo MCP server exposes Okareo’s evaluation workflow through MCP tools. It lets an agent create and version scenario datasets, register LLMs from the Okareo registry, define quality checks, configure systems under test, and execute evaluations from an editor or other MCP client.

Two evaluation paths are available. `run_test` evaluates a registered generation model against a scenario with selected checks. `run_simulation` combines a target, a simulated-user driver, and scenario rows to produce multi-turn conversations. Targets can represent a generation model, a custom REST endpoint, or a voice system reached through Twilio or SIP.

The result workflow supports both quick inspection and deeper diagnosis. Test runs and simulations can be listed with summary or detailed aggregate information; paged results can include per-check explanations, transcripts, and media. A single conversation can be opened separately with `get_conversation_transcript`, and completed runs can be scored again with different checks.

## How it works

Scenarios contain rows with `input` and `result` values. Save them from JSONL text, a local JSONL file, or a small row list. Scenarios are immutable after creation; updated data is stored as a new version. Before running an evaluation, use `list_checks` to find built-in or custom checks appropriate to the text or voice modality.

For simulations, define the target and driver separately. A driver describes the persona, scenario details, objectives, and interaction tactics. Voice drivers can use catalogued voices, profiles, and languages discovered with `list_driver_voices`. Simulation calls return promptly: short runs finish immediately, while longer runs return a run ID for later polling.

## Setup and configuration

The hosted endpoint is available at `https://tools.okareo.com/mcp`. OAuth-capable clients can connect to that URL and authenticate through a browser. Clients without the MCP OAuth flow can send an `Authorization: Bearer` header using `OKAREO_API_KEY`.

For a local installation, Python 3.10–3.12 is supported. The package can be launched with `uvx okareo-mcp` or installed with `pip install okareo-mcp`. Local execution requires `OKAREO_API_KEY`; `OKAREO_BASE_URL` can override the default API endpoint. `TRANSPORT` selects `stdio` or `sse`, and `PORT` controls the SSE port.

## Tools and capabilities

- Create, inspect, version, list, preview-delete, and delete scenarios.
- Browse available LLMs and manage registered generation models.
- List, create, update, run, inspect, and re-score quality checks and test runs.
- Configure generation, custom-endpoint, Twilio, and SIP targets.
- Define text or voice drivers and discover supported voice settings.
- Run multi-turn simulations with repeat counts, turn limits, per-turn checks, early stopping, and rerun inheritance.
- Apply voice conditions such as noise, dropout, barge-in, backchannel, directed speech, and secondary speakers when supported by the connection.

## Limitations and notes

Long-running calls are asynchronous and require polling with the returned test run ID. Result pages are bounded, so large runs should be read page by page. `save_scenario` accepts exactly one data source; passing rows through the assistant is intended for small datasets, while local JSONL files are preferred for larger ones.

Deleting scenarios, targets, or registered generation models permanently removes related test data. Moving a scenario requires a dry run first and explicit confirmation before execution. Voice augmentation applies only to voice targets, and some strategies depend on whether the connection supports silence or caller interruption.

_Full upstream README: https://allmcps.com/mcp/okareo/readme_

