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.
60 actionsAPI key
What your agent can do in Braintrust MCP
Looks up
- Generate permalinkGenerate a direct web link (permalink) to a Braintrust object for sharing or bookmarking.
- Get monitoring viewInspect a saved Monitoring view, including its options and ordered chart definitions.
- Get project settingsGet Braintrust project settings, including the configured field paths in settings.user_id_fields and settings.session_id_fields.
- Get protected field policyGet the protected field policy and its rules for a scope.
- Infer schemaLook up field paths and types when the query depends on an unknown field.
- List automationsList a project's automations, including online scoring rules, alerts, exports, retention policies, Topics automations, and other…
- List dataset custom viewsList 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 viewsList 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 objectsList recently created projects, experiments, datasets, prompts, or functions you have access to.
- List scheduled loop job runsList a saved scheduled Loop job's run threads, newest first, with thread IDs, names, and Braintrust links.
Show 12 more
- List slack channelsList 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 skillLoad a guide when the request matches the workflow or SDK task described below.
- Lookup api keysLook up Braintrust API keys and service tokens by exact IDs, exact name, or an explicit request to list all visible keys.
- Lookup usersLook up human Braintrust organization members by exact user IDs, partial name or email, or an explicit request to list all users.
- Measure pattern frequencyMeasure distinct users, sessions, or traces matched by a pattern in one time window of up to 14 days.
- Read patterns rubricRead the project's Patterns rubric, which defines how to assign pattern severity and categories.
- Resolve attachmentsResolve one attachment reference or a batch from sql_query results into temporary download URLs.
- Resolve objectConvert names to IDs (or vice versa) and parse Braintrust URLs.
- Search docsSearch Braintrust documentation to find relevant information and guidance.
- Search patternsSearch existing patterns in a project by text, semantic similarity, ID, status, or quality.
- Sql queryRun one read-only Braintrust SQL (BTQL) query.
- Summarize experimentGet aggregated performance metrics for an experiment, optionally compared to a baseline.
Takes action
- Add to datasetAdd 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 queueAdd existing project log traces, experiment traces, or dataset rows to Human Review, optionally assigning individual reviewers.
- Create dashboard sqlCreate a project-scoped dashboard, optionally containing SQL charts that were already previewed with generate_dashboard_chart_sql.
- Create environment update alertCreate an alert for environment updates.
- Create evaluatorCreate a versioned Braintrust LLM or inline code evaluator.
- Create facetCreate a versioned Braintrust facet that extracts structured information from spans or traces.
- Create human review scoreCreate a native Human Review score definition for a project.
- Create log alertCreate an alert for individual matching project logs.
- Create preprocessorCreate a versioned Braintrust preprocessor from inline JavaScript using the same QuickJS runtime as the Braintrust UI.
- Create promptCreate a versioned Braintrust prompt using the same function representation as project.prompts.create() and bt functions push.
Show 28 more
- Create protected field ruleAdd a protected field rule to a scope's policy, creating the policy if needed.
- Create scheduled loop jobCreate a custom Loop job that runs on an interval or cron schedule over a recent project-data window.
- Create threshold alertCreate a threshold alert for an aggregate over a recent project-data window.
- Delete protected field ruleDelete a protected field rule by id.
- Edit dataset rowsInsert, update, or delete up to 1000 Braintrust dataset rows using explicit operations.
- Enable topics automationEnable Topics for a Braintrust project.
- Fail dashboard sectionReport a failure for a precomputed dashboard section using the target and revision from its computation request.
- Generate dashboard chart sqlGenerate a SQL-backed dashboard chart configuration for visualizing data from project_logs.
- Publish dashboard sectionPublish one precomputed chart, Markdown note, or insight to a registered dashboard artifact target.
- Rewind topics automationRewind an existing Topics automation to process historical data from an explicit start time or recent window.
- Run evalRun a Braintrust experiment through the authenticated Eval API with a hosted dataset, inline rows, or a prior experiment, any saved or…
- Run scheduled loop jobRun a saved active scheduled Loop job using the same execution path as Run now in Braintrust.
- Save dataset custom viewCreate or update a versioned custom view that reviewers use to label rows of a dataset.
- Send feedbackSend 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 statusPause or activate an alert, scheduled job, or online scoring rule.
- Set project default preprocessorSet or clear the default preprocessor for a Braintrust project.
- Set project session id fieldConfigure the project's session or conversation ID field and create its bloom index.
- Set project user id fieldConfigure the project's derived end-user ID field and create its bloom index.
- Set topics automationUpdate an existing Topics automation's configuration.
- Test evaluatorRun one saved, global, or inline evaluator on representative inputs without writing results.
- Test facet on traceRun 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 traceRun a saved, global, or inline preprocessor on one to 50 canonical span, trace, or group references concurrently using the same preview…
- Unpin topic mapsRemove version pins from topic maps on an existing Topics automation so they classify new traffic with each topic map's latest version.
- Update dashboard sqlApply one or more SQL chart or section edits to an existing project dashboard.
- Update debug reportSave or replace the diagnosis report for one trace.
- Update online scoring ruleSave or rewind an online-scoring rule that runs saved evaluator functions.
- Update patternUpdate an existing project pattern's content, source review, status, quality, or feedback, and optionally attach quoted evidence to…
- Update protected field ruleUpdate fields of an existing protected field rule by id.