# Braintrust MCP

Query Braintrust logs with SQL, run evals and evaluators, manage prompts, datasets, dashboards, alerts and Topics automations through Braintrust's hosted MCP server.

Category: Developer. Connect from any SulusAssist agent at https://assist.sulus.ai/integrations/braintrust-mcp/.

## Actions

- **Add to dataset**: Add up to 1000 project log rows to a Braintrust dataset by row ID, like the UI's "Add to dataset", without reading and re-sending their…
- **Add to human review queue**: Add existing project log traces, experiment traces, or dataset rows to Human Review, optionally assigning individual reviewers.
- **Create dashboard sql**: Create a project-scoped dashboard, optionally containing SQL charts that were already previewed with generate_dashboard_chart_sql.
- **Create environment update alert**: Create an alert for environment updates.
- **Create evaluator**: Create a versioned Braintrust LLM or inline code evaluator.
- **Create facet**: Create a versioned Braintrust facet that extracts structured information from spans or traces.
- **Create human review score**: Create a native Human Review score definition for a project.
- **Create log alert**: Create an alert for individual matching project logs.
- **Create preprocessor**: Create a versioned Braintrust preprocessor from inline JavaScript using the same QuickJS runtime as the Braintrust UI.
- **Create prompt**: Create a versioned Braintrust prompt using the same function representation as project.prompts.create() and bt functions push.
- **Create protected field rule**: Add a protected field rule to a scope's policy, creating the policy if needed.
- **Create scheduled loop job**: Create a custom Loop job that runs on an interval or cron schedule over a recent project-data window.
- **Create threshold alert**: Create a threshold alert for an aggregate over a recent project-data window.
- **Delete protected field rule**: Delete a protected field rule by id.
- **Edit dataset rows**: Insert, update, or delete up to 1000 Braintrust dataset rows using explicit operations.
- **Enable topics automation**: Enable Topics for a Braintrust project.
- **Fail dashboard section**: Report a failure for a precomputed dashboard section using the target and revision from its computation request.
- **Generate dashboard chart sql**: Generate a SQL-backed dashboard chart configuration for visualizing data from project_logs.
- **Generate permalink** (read-only): Generate a direct web link (permalink) to a Braintrust object for sharing or bookmarking.
- **Get monitoring view** (read-only): Inspect a saved Monitoring view, including its options and ordered chart definitions.
- **Get project settings** (read-only): Get Braintrust project settings, including the configured field paths in settings.user_id_fields and settings.session_id_fields.
- **Get protected field policy** (read-only): Get the protected field policy and its rules for a scope.
- **Infer schema** (read-only): Look up field paths and types when the query depends on an unknown field.
- **List automations** (read-only): List a project's automations, including online scoring rules, alerts, exports, retention policies, Topics automations, and other…
- **List dataset custom views** (read-only): List up to 100 saved custom views for labeling dataset rows in a project, including each view's code and a link reviewers can open.
- **List monitoring views** (read-only): List the saved Monitoring views and chart IDs for a project so the user can choose a view or chart to inspect or edit.
- **List recent objects** (read-only): List recently created projects, experiments, datasets, prompts, or functions you have access to.
- **List scheduled loop job runs** (read-only): List a saved scheduled Loop job's run threads, newest first, with thread IDs, names, and Braintrust links.
- **List slack channels** (read-only): List the Slack workspaces connected to a project's org and the public channels in a workspace, so a Slack alert action targets the channel…
- **Load braintrust skill** (read-only): Load a guide when the request matches the workflow or SDK task described below.
- **Lookup api keys** (read-only): Look up Braintrust API keys and service tokens by exact IDs, exact name, or an explicit request to list all visible keys.
- **Lookup users** (read-only): Look up human Braintrust organization members by exact user IDs, partial name or email, or an explicit request to list all users.
- **Measure pattern frequency** (read-only): Measure distinct users, sessions, or traces matched by a pattern in one time window of up to 14 days.
- **Publish dashboard section**: Publish one precomputed chart, Markdown note, or insight to a registered dashboard artifact target.
- **Read patterns rubric** (read-only): Read the project's Patterns rubric, which defines how to assign pattern severity and categories.
- **Resolve attachments** (read-only): Resolve one attachment reference or a batch from sql_query results into temporary download URLs.
- **Resolve object** (read-only): Convert names to IDs (or vice versa) and parse Braintrust URLs.
- **Rewind topics automation**: Rewind an existing Topics automation to process historical data from an explicit start time or recent window.
- **Run eval**: Run a Braintrust experiment through the authenticated Eval API with a hosted dataset, inline rows, or a prior experiment, any saved or…
- **Run scheduled loop job**: Run a saved active scheduled Loop job using the same execution path as Run now in Braintrust.
- **Save dataset custom view**: Create or update a versioned custom view that reviewers use to label rows of a dataset.
- **Search docs** (read-only): Search Braintrust documentation to find relevant information and guidance.
- **Search patterns** (read-only): Search existing patterns in a project by text, semantic similarity, ID, status, or quality.
- **Send feedback**: Send feedback to the Braintrust team about a problem with this MCP server, such as a missing capability, a tool error that looks like a…
- **Set automation status**: Pause or activate an alert, scheduled job, or online scoring rule.
- **Set project default preprocessor**: Set or clear the default preprocessor for a Braintrust project.
- **Set project session id field**: Configure the project's session or conversation ID field and create its bloom index.
- **Set project user id field**: Configure the project's derived end-user ID field and create its bloom index.
- **Set topics automation**: Update an existing Topics automation's configuration.
- **Sql query** (read-only): Run one read-only Braintrust SQL (BTQL) query.
- **Summarize experiment** (read-only): Get aggregated performance metrics for an experiment, optionally compared to a baseline.
- **Test evaluator**: Run one saved, global, or inline evaluator on representative inputs without writing results.
- **Test facet on trace**: Run an inline facet definition with a saved, global, inline, or project-default preprocessor on one to ten canonical span, trace, or group…
- **Test preprocessor on trace**: Run a saved, global, or inline preprocessor on one to 50 canonical span, trace, or group references concurrently using the same preview…
- **Unpin topic maps**: Remove version pins from topic maps on an existing Topics automation so they classify new traffic with each topic map's latest version.
- **Update dashboard sql**: Apply one or more SQL chart or section edits to an existing project dashboard.
- **Update debug report**: Save or replace the diagnosis report for one trace.
- **Update online scoring rule**: Save or rewind an online-scoring rule that runs saved evaluator functions.
- **Update pattern**: Update an existing project pattern's content, source review, status, quality, or feedback, and optionally attach quoted evidence to…
- **Update protected field rule**: Update fields of an existing protected field rule by id.
