A subset of your devices has stopped reporting temperature. Everything else about the fleet looks healthy.
You can guess where to look. The logs might show a sensor error. Battery voltage might be sagging. The affected devices might all be running the same firmware build.
None of those checks is hard on its own. The work is in connecting the answers, and the evidence usually sits in different places: a metrics graph, a log view, a list of firmware versions.
So we handed the whole question to an AI agent and watched what it did.
One Question, 16 Devices
The fleet is a demo: 16 simulated temperature sensors on two firmware versions, with synthetic data that we built to contain a failure. Claude was connected to uLogger through our MCP server and given the single prompt shown at the top of the capture below.
It named the four affected devices, all on firmware v2.1.0, and listed each outage with its start and end time. It quoted the log lines those devices write during an outage: a sensor read timeout, then a skipped temperature sample.
Then it checked something we had not asked about. Two devices on the older v2.0.0 firmware also dipped below 3 V, and both kept reporting temperature. One of them went lower than three of the four affected devices. That observation moves the suspicion from the battery to the firmware. Low voltage is the trigger, and something that changed in v2.1.0 is the cause.
We planted that pattern, so the answer is not a surprise to us. The useful part is that the agent got there from a short question, without being told which devices were affected or that firmware had anything to do with it.
Where It Fell Short
The run was not flawless, and the setup flatters it.
- Our first attempt got two numbers wrong. We first asked only the opening sentence of that prompt. Claude sampled the newest readings and reported that the two older-firmware devices dipped “to 2992 and 2987 mV”. Their real minimums are 2905 and 2932 mV. The conclusion was right both times, but the figures were only right once we told it to read the full series.
- It still did not read everything. Its answer says so: it took the skipped-sample counts from the devices' own log lines instead of the temperature series, and it quoted no voltages for the ten healthy devices because it never read their battery data.
- The data is clean. A simulated fleet has no flaky uplinks, clock drift, or half-deployed firmware. Real fleets do.
A correlation is also not a cause. The agent produced a hypothesis with evidence attached. Someone still has to open the v2.1.0 sensor driver and confirm it.
For the same workflow on a real fleet, see our fleet watchdog resets case study. A sensor maker with more than 250,000 deployed nodes used Claude Code and the uLogger MCP server to trace hundreds of daily watchdog resets to an SPI timing race, and reached the root cause in under an hour.
Why Pasting Logs Does Not Get You Here
Most of us already use an AI assistant for debugging. Find a device, open its logs, copy a few hundred lines, paste them in, and ask what looks suspicious. Then do it again for the next device, and export a CSV of metrics for good measure.
That works, but you are choosing what the assistant sees. If you do not already know that battery voltage matters, or which night the problem happened, the evidence never makes it into the conversation. The assistant cannot reason about data it was never given.
Dashboards have the same limit. Each one answers a question somebody anticipated, and leaves you to connect a voltage graph to a log view to a firmware list across dozens of devices. An agent that can query the system itself can start from a question nobody built a dashboard for.
How Claude Reaches the Data
The connection uses the Model Context Protocol (MCP), a standard way for AI clients to call external tools. uLogger provides an HTTP-based MCP server that exposes its Data API as a set of tools. Setup instructions for Claude Code and other MCP clients are in the uLogger MCP server guide.
- Observability: query firmware logs, device metrics, and log ingestion errors.
- Crash diagnostics: group crashes by fault signature, list fault events, and fetch decoded core dumps.
- Devices and firmware: list applications, device types, modules, and firmware versions.
- Operations: push logging configuration to devices, create deployments, and retrieve the device certificate bundle.
The agent decides which tools to call and in what order. In our run it chose them itself and drew on both metrics and logs.
The MCP server is a stateless proxy hosted in AWS Lambda. It keeps no copy of device data and stores no credentials. It forwards the customer's uLogger API token to the Data API, where the usual tenant isolation and rate limits apply.
Most tools are read-only. Three are not: push_log_config changes logging on a live device over MQTT, create_deployment starts a firmware rollout, and get_certificate_bundle returns the device private key. Keep approval turned on for those three rather than letting an agent call them unattended.
What the Agent Needs From Your Firmware
An agent can only connect what the devices report. The firmware comparison in our run worked because every log record carried the firmware version. Without that field, the agent would have found the voltage dips and had nothing to compare them against.
The same goes for consistent device identifiers, trustworthy timestamps, and metrics with stable names. Instrumentation that was good enough for a person scrolling through logs may not be good enough for an agent joining three data sources.
The payoff is in where the time goes. Reaching a hypothesis worth testing is often the slowest part of field debugging, and it is mostly collection: finding the devices, the window, the logs. That is the part an agent can take on, which leaves the engineer to judge whether the hypothesis is right and what to do about it.
Continue the Series
This is the first article in a three-part series on AI-assisted embedded observability.
- Part 1: AI Is Better at Finding Patterns Than We Are — Why connecting operational data gives AI agents the context to investigate embedded systems.
- Part 2: 10 Embedded Debugging Questions Claude Can Answer in Seconds — Practical examples of using an AI agent to investigate deployed devices. (Coming soon)
- Part 3: Building an Embedded AI Workflow with Claude Code and uLogger — A hands-on guide to connecting Claude Code to uLogger through MCP. (Coming soon)