Developer Tools · Data & Analytics

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.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Update online scoring rule

    Save or rewind an online-scoring rule that runs saved evaluator functions. This tool is the approval surface for both mutations: state the proposed parameters, then call it without asking the user to type a separate confirmation. For save, provide function_ids, the rule scope, filters, and sampling rate. New rules default to paused; pass status active only when the user has authorized processing new traffic. Existing rules preserve their status when omitted. A group scope requires group_by and placement and accepts optional interval_seconds and max_traces. For rewind, require an existing active automation_id and choose start_time from the user's requested window. Activate a paused rule with set_automation_status before rewinding it. Do not repeatedly resubmit it to poll for progress.

  • Update pattern

    Update an existing project pattern's content, source review, status, quality, or feedback, and optionally attach quoted evidence to matching traces. Closing an active pattern saves the reason as feedback. Before using this tool, use search_patterns to inspect the current pattern. Backfill a missing source_review after triage; omit it to preserve the saved review. When revising evidence, include Frequency (evidence.frequency) whenever measurable; other monitors are optional additions. Reactivated Patterns automatically notify the configured project Pattern alert destinations; do not send a separate alert.

  • Update protected field rule

    Update fields of an existing protected field rule by id. Omitted fields are unchanged; set enabled to false to pause a rule. A policy is identified by scope_object_type (organization, project_group_projects, or project), scope_object_id, and restrict_object_type (project_log by default; use dataset for dataset rules). Ingest rules (stage "ingest", action "redact") redact detected entity_types inside field_paths before data is stored. Read rules (stage "read", action "hide") hide field_paths from readers who match protect_when and do not match allow_when. field_paths are arrays of keys or indexes, such as [["input"], ["metadata", "email"]]. protect_when and allow_when are expressions over row, partition, principal, and credential, for example "true", 'principal.user_id in ["<user id>"]', or '"<group id>" in principal.group_ids'. Read rules only support principal.user_id and principal.group_ids conditions.

PreviousPage 2 / 2