Search documentation

Search the Fumadocs-backed documentation index.

MCP Tools

AX MCP tool catalog with CLI equivalents.

The MCP server mirrors the CLI nouns: same ids, same vocabulary. Org-scoped tools use the current MCP org (see mcp_org tools) unless you pass an org_id override. Arguments marked required must be supplied; everything else is optional.

Experiment tools

ToolWhat it doesCLI equivalent
experiment_listList experiments the org can access.ax experiment list
experiment_viewOne experiment's metadata, axes, and run counts.ax experiment view
experiment_versionsList stored version fingerprints.ax experiment versions
experiment_pullReturn stored YAML (latest or a version).ax experiment pull
experiment_pushValidate and push a YAML version without running.ax experiment push
experiment_runSubmit runs for a registered experiment.ax experiment run <id>
experiment_queryQuery results in experiment scope.ax experiment query

experiment_list filters with search, owner, agents, models, products, environments, updated_since (RFC 3339), and limit. Same-axis values OR; different axes AND.

experiment_run accepts version, repeat, exact variant_ids, the axis selectors (prompt_ids, agents, models, product_ids, environment_ids), registered flags, and mock. Selectors are a union; no selector runs every variant. The response pins the version and returns its fingerprint, ordinal, selected variant ids, and the run request id.

experiment_query takes required experiment_id plus either raw sql (scoped to the experiment) or the experimental modeled fields (metrics, ordered group_by, stat (only mean today), dimension filters, version, and dimensions discovery; the surface may change). Both modes support limit (default 100, cap 1,000), dry_run, and save ({heading, slug?, description?, labels?, force?}); dry_run, save, and dimension discovery are mutually exclusive. Metrics are testPassRate, testsPassed, testsFailed, cost, wallClockTime, tokens, toolCalls, toolFailures.

Run tools

ToolWhat it doesCLI equivalent
run_listList runs with experiment, version, dimension, and status filters.ax run list
run_viewView a run request or one run, optionally with tests.ax run view
run_cancelCancel queued or running work for a request.ax run cancel
run_queryRead-only SQL scoped to one run.ax run query

run_list accepts experiment_id, version_scope, the dimension filters, exact variant_ids, statuses, created_by_ids, status_updated_since (when the run entered its current status, not creation), and limit.

run_view takes a request id or composite run id. Set tests: true for every captured test, or test_name for one test's exit code, duration, and output tails (composite run ids only; not both).

run_query takes required composite run_id and sql, plus limit, dry_run, and save with the same semantics as experiment_query.

Insight tools

ToolWhat it doesCLI equivalent
insight_listList insight metadata.ax insight list
insight_createCreate a saved SQL insight.ax insight create
insight_viewExecute an insight, or return its stored SQL.ax insight view
insight_editUpdate heading, SQL, description, or labels.ax insight edit
insight_deleteDelete by slug or id (idempotent).ax insight delete

insight_create takes required heading and sql, plus slug, description, labels, and force (overwrite mutable content on slug collision; slugs are immutable). insight_view executes live unless sql_only: true. insight_edit is presence-aware: an empty description or labels array clears the field (clear_labels also works).

Secret tools

ToolWhat it doesCLI equivalent
secret_setCreate or overwrite one secret; returns metadata, never the value.ax secret set
secret_listList slugs and audit metadata; never values.ax secret list
secret_deleteDelete one secret by slug.ax secret delete

Org context and CLI auth

ToolWhat it doesCLI equivalent
mcp_org_listList orgs available to the MCP user.ax org list
mcp_org_get_currentThe org context org-scoped tools use.ax org view
mcp_org_set_currentChange that org context.ax org switch
cli_auth_startMint a one-time code that signs in the local CLI.ax auth connect --code

Legacy tools

Kept for compatibility; prefer experiment_query, run_query, and insight_* for new agent workflows.

ToolWhat it doesUse instead
results_queryOrg-wide read-only SQL.experiment_query / run_query
results_scatterDeterministic per-run point sample (capped at 2,000; totalPoints / truncated disclose sampling).experiment_query
results_shareMint a filtered public share URL (anyone with the URL can view).No v0.6 equivalent yet
analyze_*, findings_*Guided trace-analysis and persisted findings.A fuller MCP refresh is planned

Not in MCP

Local authoring (ax experiment create / validate / schema / variants) and file staging stay CLI-side: an experiment_run whose registered YAML declares files: will fail; pull the YAML and use the CLI's --file. There is no watch tool (poll run_view with the request id), and insight export is a client-side CLI operation; agents can consume the structured rows the query and insight tools return.