← Back to Pull requests

Document MCP Code Execution write support #41852

Closed
unknown closed this pull request without merging on Nov 25, 2026 21:09 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 17:00 UTC
Author

<!-- dd-meta {"pullId":"00000000-0000-0000-0000-000000000000","source":"chat","resourceId":"8ea04c27-d564-4f31-b197-81190b27aba3","workflowId":"1b4c569a-360b-4713-9eeb-56ebab055a57","codeChangeId":"1b4c569a-360b-4713-9eeb-56ebab055a57","sourceType":"code_channel"} -->

What does this PR do? What is the motivation?

Updates the Code Execution guide, MCP Server Tools reference, and setup toolset list for generally available write support. Clarifies that the default core toolset includes all three code execution tools and toolsets=code-exec selects only those tools. Uses code-exec for the toolset and execute_code for the individual read-only tool throughout. Documents SDK operation lookup, organization opt-in, permissions and reauthorization, supported resource limits, sandbox boundaries, and safe retries after partial failures. Adds monitor and case examples without Preview enrollment language.

Merge readiness

  • Ready for merge
  • AI assistance

    Used Bits Code to draft the documentation changes and run style and structural checks.

    For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.

  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.
  • Additional notes

    PM confirmation requested before merge:

  • Confirm the exact mcp_write permission name.

  • Confirm the exact execute_code_write tool name.

  • Confirm whether "archive" is a supported monitor action. The examples use the documented "mute" action pending confirmation; use mute/delete if archive is unavailable.
  • Validation:

  • Ran Vale 3.9.1 with the Datadog styles on all three modified pages: the latest corrections introduce no additional alerts; existing page alerts remain.

  • Searched the English documentation for incorrect execute_code toolset labels and query parameters; none remain.

  • Reviewed the corrected toolset labels, search metadata, setup entry, and connection URL while preserving individual tool names and SDK lookup targets.

  • Passed repository pre-commit checks for circular aliases, tracked Cdocs files, and section indexes.

  • Full Hugo site build not run.
  • ---

    PR by Bits - View session in Datadog • Open in Slack

    Comment @datadog to request changes

    Diff: 324 lines (+243 / -81) across 4 files Reviewer: joepeeples Review duration: 11768m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 324 lines diff across 4 files
    0.47
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.346
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #41852"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.0% (MEDIUM) · Higher = larger blast radius
    47.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.6% · Safe to merge
    18.6%