Skip to main content

Tools Reference

The MCP server exposes 4 tools, plus a rich set of resources and prompts. Together they cover 230+ commands across 33 ABsmartly command groups.

Tools

discover_commands

Browse available command groups or search by keyword. Call without parameters to see all groups.

{ "group": "experiments" }
{ "search": "archive" }

get_command_docs

Get detailed documentation for a specific command, including parameters, types and examples.

{
"group": "experiments",
"command": "createExperimentFromTemplate"
}

execute_command

Execute any ABsmartly command. Common commands are listed in the tool description; use discover_commands for the full list.

{
"group": "experiments",
"command": "listExperiments",
"params": { "state": "running", "items": 10 }
}

Parameters:

NameRequiredDescription
groupyesCommand group (e.g. experiments, metrics, goals)
commandyesCommand name (e.g. listExperiments, createExperimentFromTemplate)
paramsnoCommand parameters as a JSON object
confirmednoSet to true to confirm destructive actions
rawnoReturn the full CommandResult with rows / detail / warnings / pagination
limitnoMax items for list operations (default: 20)
Destructive actions require confirmation

start, stop, archive and delete operations all return a confirmation prompt on the first call. Re-invoke the command with confirmed: true to actually perform the action.

Experiment creation previews

createExperimentFromTemplate also requires confirmation. The first call returns a preview — the resolved API payload (with names mapped to IDs) plus any warnings — without creating the experiment. Review the preview, then call again with confirmed: true to actually create it.

Creating experiments with templates

The recommended way to create experiments is with markdown templates:

{
"group": "experiments",
"command": "createExperimentFromTemplate",
"params": {
"templateContent": "---\nname: my_experiment\ntype: test\npercentages: \"50/50\"\nunit_type: user_id\napplication: www\n---\n\n## Variants\n\n### variant_0\n\nname: control\nconfig: {}\n\n---\n\n### variant_1\n\nname: treatment\nconfig: {}\n"
}
}

Templates use YAML frontmatter for configuration and markdown for variants, audience and description. Names for applications, unit types, metrics, teams, tags and owners are automatically resolved to IDs.

Read the absmartly://docs/templates resource for complete examples, including:

  • Basic A/B test
  • Feature flags
  • Group Sequential Tests (GST)
  • Screenshots
  • Custom fields
  • Multi-variant (A/B/C) tests

get_auth_status

Check the current authentication state and connection info. Returns the authenticated email, name, ABsmartly endpoint and authentication type.

Are we authenticated?

Command groups

GroupDescriptionKey commands
experimentsExperiment lifecyclelist, get, create, start, stop, archive, clone, diff, export, bulk
metricsMetric definitions and reviewlist, get, create, review, access
goalsGoal definitionslist, get, create, access
segmentsAudience segmentslist, get, create, delete
teamsTeam managementlist, get, create, members
usersUser managementlist, get, create, api-keys
appsApplicationslist, get, create, archive
envsEnvironmentslist, get, create
unitsUnit typeslist, get, create
tagsExperiment tagslist, get, create, delete
authAuthenticationwhoami, api-keys
insightsAnalyticsvelocity, decisions
webhooksWebhook managementlist, get, create, delete
rolesRole managementlist, get, create
datasourcesData source configlist, test, introspect
exportconfigsExport configurationlist, create, pause

Additional groups: goaltags, metrictags, metriccategories, apikeys, permissions, assetroles, notifications, favorites, cors, updateschedules, customsections, platformconfig, activity, statistics, events, storageconfigs, actiondialogfields.

Resources

The MCP server exposes resources that AI assistants can read directly, without having to call execute_command. They're handy for fast lookups (entity lists) and embedded documentation.

URIDescription
absmartly://entities/applicationsCached applications list
absmartly://entities/unit-typesAvailable unit types
absmartly://entities/teamsTeams list
absmartly://entities/usersUsers list
absmartly://entities/metricsMetrics list
absmartly://entities/goalsGoals list
absmartly://entities/tagsExperiment tags
absmartly://entities/custom-fieldsCustom field definitions
absmartly://docs/templatesMarkdown template examples and reference
absmartly://docs/apiAPI documentation
absmartly://docs/experimentsExperiment management docs
absmartly://docs/metricsMetrics docs
absmartly://docs/goalsGoals docs
absmartly://docs/segmentsSegments docs
absmartly://docs/analyticsAnalytics docs
absmartly://examples/api-requestsCommon request patterns

Prompts

The server also ships built-in prompts that clients can surface as one-click actions:

PromptDescription
experiment-statusQuick overview of all running experiments
create-experimentGuided experiment creation with entity context
create-feature-flagSimplified feature flag creation
analyze-experimentDeep analysis of a specific experiment
experiment-reviewReview running experiments for issues