Skip to content

Agent tools

The MAESTRO agent drives autobench through MCP tools named maestro_benchmark_* (published to the MAESTRO harness as mcp__maestro__maestro_benchmark_*). The Datasets screen calls the same tools. Every result has status (completed, unavailable or rejected), an optional message and data.

ToolModel callsAgent callCall from the Datasets screen
maestro_benchmark_startyes, within the budgetasksno dialog (the wizard button is consent)
maestro_benchmark_control: pause, resume, stop, retry_failedresume continues paid work within the approved budgetno dialogno dialog
maestro_benchmark_control: extendyes, more paid calls; may raise the budgetasksno dialog
maestro_benchmark_instructone spec call when appliedno dialogno dialog
maestro_benchmark_programonly revise (one call)asks, for every operationno dialog
maestro_benchmark_edit, maestro_benchmark_composenoneno dialogno dialog
maestro_benchmark_status, _list, _models, _file, _datasetnone (read-only)no dialogno dialog
maestro_dataset_importnoneno dialog—

A session with the never ask approval preset approves the dialogs above automatically. Only calls minted by the app’s own screen skip the dialog; the agent cannot borrow that path. See Confirmations.

Start generating a verified dataset for a task or chain. Returns at once; work continues in the background.

ArgumentMeaning
idempotency_key8–128 characters. Repeating a start with the same key returns the same run.
taskThe task, up to 8,000 characters. Required.
chain{artifact_id, content_sha256} of a chain staged in this session.
chain_entity_idA chain saved in memory; used when the staged artifact is gone.
chain_name, input_fields, output_description, toolsOptional context. Input fields default to the chain’s input.<name> references, else text.
settingsOptional; see below.

settings (all optional):

FieldValuesDefault
target_cases4–50024
difficultyeasier, balanced, harderbalanced
holdout_fraction0–0.50.25
max_total_tokens5,000–5,000,0001,000,000 with Codex, 200,000 with the chat model
stop_modetarget, budget, callstarget
max_llm_calls1–5000required for calls
providercodex, chatCodex if available
modelmodel nameCodex default model, or the chat model
reasoning_effortlow, medium, high—
batch_size1–2510
task_kindtext, toolstext
strategyllm, programllm
modalitytext, image, pdf, docx, xlsx, csv, audiotext
check_methodauto, exact, one_of, numeric, regex, json_fields, contains_all, judgeauto
check_descriptionup to 4,000 characters—
check_pattern, check_fields (one field), check_tolerance, check_labelsparameters of the check—
input_format, output_format, requirementsfree text—

Refused: file modalities without Codex, files with tools, program with tools or files, calls without max_llm_calls.

Read a run: stage, counters, events after after_seq, spec versions, instructions, units, dataset versions and, with include_cases (default true), the last 1,000 cases. Holdout references, rationales and the solver’s answers on holdout cases are never returned.

List runs (limit 1–100, default 20).

action: pause, resume, stop, retry_failed (optionally one unit_id) or extend. Each call needs a request_key; repeating it replays the first result. For extend: counts is {family_id: how many more} (up to 200 per family), extra_tokens raises the budget (total at most 5,000,000).

Add an instruction (up to 2,000 characters) to a running or paused run. It is applied at the next safe point and creates a new spec version. Needs a request_key.

Edit cases without model calls. op: update, accept, exclude, restore, move, add; with case_id, fields, expected, alternatives, split, family_id as needed. Edited and added cases are accepted at level manual.

Plan a version from accepted cases: total, shares ({family_id: weight}), splits ({family_id: "search" | "holdout"}). With save: true it stores a new version; otherwise it returns the plan only.

Generator programs. op: show, preview (run code or the saved program on count cases in the sandbox), save (store code as a new version), revise (one model call with instruction), generate (count more cases, up to 2,000, locally). revise and generate are refused while the run is still working.

Read the generated file of a search case for review: name, size, MIME type, path and, up to about 1.4 MB, the content in base64. Holdout files are refused.

Which providers are available: Codex status, its reason when unavailable, its models and default model; the chat model; the default provider.

Stage the search part of a version (dataset_id, bf_<16 hex>.v<N>) as an evolution dataset artifact and return the evaluator settings: binary_match with equality or regexp, or a rubric with LLM judge (0..1). Refused for tool tasks, file inputs, unsupported checks and versions with fewer than 2 search cases.

  • maestro_find_artifacts: find chains and dataset versions by words (“the latest dataset”); returns dataset:<id> references.
  • maestro_evolution_prepare: stage a chain and a dataset from those references.
  • maestro_dataset_import: import a CSV/TSV/XLSX file from the project folder as an evolution dataset. See Import your own file.

Runs, cases, specs, programs and dataset versions are kept in a local SQLite file:

Terminal window
# default
~/.local/state/care/benchmark-factory/factory.sqlite3
# generated input files
~/.local/state/care/benchmark-factory/assets/<run_id>/
# override the store path
export CARE_BENCHMARK_FACTORY_DB=/path/to/factory.sqlite3

The model credential of a run lives only in process memory and is never written to the store.