Home / Companies / Datadog / Blog / Post Details
Content Deep Dive

Cut AI agent cost and improve accuracy with Code Execution in the Datadog MCP Server

Blog post from Datadog

Post Details
Company
Date Published
Author
Kit Freddura, Amy Zhou
Word Count
1,525
Company Posts That Month
22
Language
English
Hacker News Points
-
Post removed?
No
Summary

Datadog Code Execution, now generally available through the Datadog MCP Server, enables AI agents to conduct multistep observability investigations by generating and running JavaScript in a sandboxed environment. Rather than sending raw results from each separate query through the model, agents can query Datadog APIs for logs, metrics, traces, and other data sources in parallel, apply control flow, correlate and aggregate results, and return only relevant evidence. In tests across 25 observability tasks and four AI models, Code Execution improved average answer correctness from 74.1% to 89.6%, while reducing input-token use by 73.2% and tool calls by 39.6% compared with Datadog’s Core toolset. The system keeps credentials outside the sandbox, with a trusted MCP service making requests under the caller’s existing permissions and policies. Users can enable the code-exec toolset after connecting the Datadog MCP Server to an AI client to investigate questions spanning multiple observability signals.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
MCP 12 2,241 148 72 -74%
AI Agents 7 931 231 103 -84%
Observability 6 472 102 54 -85%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.