Skip to main content
Glama

trigger_eval_run

Starts a background evaluation of agent suite scenarios or recent live chats, then returns a run ID immediately for status polling.

Instructions

Fire an eval run and return its run_id immediately (background job). source=suite grades suite scenarios (optional variant overrides for model/prompt/gen-config comparisons; prompt_overrides maps a prompt to the version NUMBER to test instead of the pinned one, e.g. {"system": 3} for this agent's own instructions or {"<agent_kind>/": 3} — an entry naming no such prompt or version is refused, never ignored; repeats 1-20 for consistency; concurrency 1-8 = how many scenario attempts run at once (0 = the suite's default_context.concurrency, else EVAL_CONCURRENCY, else 4; voice_live suites always run one at a time); profile_version_id pins the run to one promoted profile snapshot, e.g. a bake-off variant — must belong to profile_id and the suite needs an evaluator model; voice_mode picks sim/live transport for a runner_kind=voice_live suite, overriding the suite's default_context.voice.mode — leave blank to use the suite default, which itself defaults to sim. live is a REAL, billable provider call and is manual-trigger-only: this tool (a human/agent calling it directly) is allowed, but a schedule or bake-off requesting live is rejected by _voice_live_guard). source=live_chats grades real recent chats — judge_model and expectations are REQUIRED there. Poll with eval_runs action=get.

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": {
      "profile_id": "<profile_id>"
    },
    "name": "trigger_eval_run"
  }
}

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
top_pNoNucleus-sampling override.
sourceNosuite (grade suite scenarios) | live_chats (judge sampled real chats).suite
repeatsNoRun each scenario this many times (1-20).
model_idNoVariant: run with this model instead.
suite_idNoEval suite UUID (eval_suites action=list).
agent_kindNolive_chats: agent kind to sample.
profile_idYesAgent profile UUID (list_profiles / get_profile).
voice_modeNovoice_live suites: sim (simulated, free) | live (real, billable provider call) | '' = suite default.
business_idNoBusiness to run the scenarios as.
concurrencyNoScenario attempts run at once (1-8; 0 = suite default, else 4). voice_live suites always run 1.
judge_modelNolive_chats: model string of the LLM judge.
sample_sizeNolive_chats: how many chats to sample.
temperatureNoVariant: temperature override.
expectationsNolive_chats: rubric the judge grades against.
lookback_daysNolive_chats: how many days of real chats to sample from.
variant_labelNoLabel shown for this variant in comparisons.
thinking_levelNoReasoning-effort override (minimal|low|medium|high).
thinking_budgetNoReasoning token budget override.
prompt_overridesNoVariant: {prompt_key: version_number} to run with.
max_output_tokensNoVariant: max output tokens.
profile_version_idNoPin the run to this saved agent_profile_versions snapshot (must belong to profile_id).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 whole behavioral burden and does so: it discloses that this is an async background job returning immediately, that live voice is a REAL billable provider call permitted only for manual triggers, and that invalid prompt overrides are refused rather than silently ignored. It also reveals default-resolution order for concurrency and the voice_live single-at-a-time constraint.

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?

Nearly all content is load-bearing, but it is delivered as one dense run-on paragraph with deeply nested parentheses, making per-parameter lookup hard. The opening sentence is well front-loaded, yet the remaining guidance would scan far better as a short list of mode-specific notes.

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 22-parameter tool with an output schema, the definition covers the genuinely ambiguous parameters, cross-parameter constraints, and mode-dependent requirements well. A few variant knobs (top_p, thinking_budget, max_output_tokens, business_id, sample_size/lookback_days) are left to the schema, which is acceptable given full schema coverage and the presence of an output schema.

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

Parameters5/5

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

Schema coverage is already 100%, so the description had to earn credit beyond it, and it does: it explains the prompt_overrides key/version format with two concrete examples, the refusal behavior for unmatched entries, that profile_version_id must belong to profile_id and requires an evaluator model, and that blank voice_mode inherits the suite default which itself defaults to sim.

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 specific verb+resource+return contract: 'Fire an eval run and return its run_id immediately (background job).' It also names the sibling to use for polling ('eval_runs action=get'), so an agent can route correctly without inspecting other schemas.

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?

Explicitly separates the two modes: source=suite for suite scenarios and source=live_chats for real chats with judge_model/expectations REQUIRED. It also states the when-not condition for voice_mode=live (schedules and bake-offs are rejected by the guard). It stops short of directing the agent to sibling tools for the scenario-comparison workflow, so it is strong but not fully exhaustive.

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