Skip to main content
Glama

eval_suites

Create, update, list, and re-sync agent evaluation suites, import test scenarios, and diff repo spec changes against live DB rows before applying them.

Instructions

agent_eval_suites CRUD + scenario import + repo re-sync. action: list | get | create (name; EITHER profile_id — agent_kind is then DERIVED from that profile via _sync_agent_kind, overriding any agent_kind also passed, and an unresolvable profile_id errors — OR agent_kind directly, one of this build's suite kinds (legacy/no-profile path, unchanged); runner_kind defaults 'chat' ('voice_live' grades a whole duplex-voice conversation — see docs/admin-portal/03-test.md#voice-eval-suites-runner_kind-voice_live; any other kind is a plugin's own runner, see 03-test.md); default_context, when supplied, is stored as-is (e.g. a voice_live suite's {"voice": {"mode": "sim", ...}}; runner knobs read from it: concurrency (1-8 scenario attempts at once, default 4 — set 1 for scenarios that must not overlap) and fail_on_tool_error (true = any error-shaped tool result fails the scenario)); pass_threshold defaults 0.7, is_active defaults false unless set true — mirrors the portal's "create suite" dialog; scenarios, when supplied, are stored with the new suite, each needing a question as in import_scenarios) | update (suite_id + only the fields supplied change; profile_id, when supplied, re-derives and overwrites agent_kind the same way as create; clear_profile=true UNBINDS an existing profile instead — sets profile_id to NULL and leaves agent_kind untouched (the suite goes back to being manually-managed, same as one that was never bound), mirroring the portal edit form's "— none —" Profile option; a non-empty profile_id takes priority over clear_profile if both are somehow passed; with neither supplied, profile_id is left alone (back-compat for callers that never mention profile_id at all); runner_kind, when supplied, must be one of this build's runner kinds; name, when supplied non-blank, renames the suite; scenarios, when supplied, REPLACES the whole array) | import_scenarios (suite_id, scenarios — each needs a question; an optional name is what the portal shows for the case (the question is shown without one); a missing id is auto-slugified from the name, else the question — APPENDS to the existing array, doesn't replace it) | sync_from_repo (name = the suite's name field in admin.seed_eval_suites._SUITES (the plugin's specs) — NOT suite_id, since the repo constant has no suite_id; seeders are insert-if-missing, so a repo edit to an already-seeded suite's scenarios/runner_kind/default_context/ pass_threshold never reaches a live DB on its own. Without confirm: dry-run — resolves the repo entry and the existing DB row by name and returns a diff summary (scenario id adds/removes, changed-scenario count, and whether runner_kind/default_context/pass_threshold differ) without writing anything. With confirm=true: applies the repo's scenarios + runner_kind + default_context + pass_threshold onto the existing row. Errors if no suite with that name exists yet in the DB (this re-syncs an existing seeded row, it does not create one) or if name isn't a known _SUITES entry).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "eval_suites"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
nameNoSuite name (sync_from_repo: the repo suite's name in admin.seed_eval_suites._SUITES).
actionYesOperation to run: list | get | create | update | import_scenarios | sync_from_repo. The tool description lists what each action needs.
confirmNofalse (default) = dry run, nothing changes; true = execute.
suite_idNoEval suite UUID (eval_suites action=list).
is_activeNoActive flag (false = soft delete).
scenariosNoScenario objects (question, expected, ...).
agent_kindNoAgent kind (derived from profile_id when that is given).
profile_idNoAgent profile UUID (list_profiles / get_profile).
runner_kindNoScoring path: chat | voice_live, or a runner a plugin adds.
clear_profileNoUnbind the suite from its profile.
pass_thresholdNoScore (0-1) a run must reach to pass the gate.
default_contextNoJSON stored as the suite's default run context.
evaluator_model_idNoagent_models UUID of the judge model.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and delivers: defaults (runner_kind 'chat', pass_threshold 0.7, is_active false), replace-vs-append semantics, the NULL-writing behavior of clear_profile, precedence rules between profile_id and clear_profile, and concrete error conditions (unresolvable profile_id, unknown _SUITES name, missing DB row for re-sync). It even explains why re-sync is needed at all (seeders are insert-if-missing).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded action index is the right structure, but the whole thing is one dense block of nested parentheses and em-dash asides that is hard to scan for a single action. Several details (portal dialog mirroring, doc anchor links) are useful but sit inline where they bury the operative rules.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter, six-action mutation tool with no annotations, it is remarkably complete on create/update/import/sync. The remaining holes are list and get, which get no behavioral description at all, and env/evaluator_model_id, which are never mentioned; an output schema exists so return values need not be explained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine cross-field meaning the schema cannot express: profile_id derives and overrides agent_kind via _sync_agent_kind, clear_profile nulls profile_id without touching agent_kind, and sync_from_repo keys on name rather than suite_id. It leaves env, confirm (only implied), evaluator_model_id and the concurrency/fail_on_tool_error knobs inside default_context only partially covered.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a precise scope statement ('agent_eval_suites CRUD + scenario import + repo re-sync') and then enumerates every action with its verb and resource: list, get, create, update, import_scenarios, sync_from_repo. An agent can tell that this is the suite-definition tool and not the run/schedule tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Per-action conditions are unusually explicit: sync_from_repo is dry-run without confirm and applies only with confirm=true; import_scenarios APPENDS while update's scenarios REPLACES; clear_profile is the unbind path. The gaps are external routing – it never says when to use eval_runs/eval_schedules/trigger_eval_run instead, nor points at list_profiles as the source of profile_id, and it gives no explicit 'when not to use' for the suite actions themselves.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.