chain is a goal-oriented network of processes and stock points that delivers finished goods to stores.
Imagine a luxury fashion retailer with a central distribution chain that delivers to stores worldwide (the USA, Asia-Pacific, and EMEA) from a warehouse located in France.

Distribution Chain of a Fashion Retailer from a system point of view – (Image by Samir Saci)
When the store 158 located at Nanjing West Road (Shanghai, China) needs 3 leather bags (reference AB-7478) by Friday, a distribution planner creates a replenishment order.
This order is sent to the warehouse for preparation and shipping.
From this point on, the distribution planner loses direct control.

All the steps from a replenishment order creation to its delivery at the store
The shipment’s fate depends on a complex distribution chain involving IT, warehouse, and transportation teams.
However, if anything goes wrong, the planner is the one who has to explain why the store missed sales due to late deliveries.
Each step can be a source of delays.
Why only 73% of shipments were delivered on time last week?
If shipments miss a cutoff time, this may be due to late order transmission, excessively long preparation time, or a truck that departed the warehouse too late.
Unfortunately, static dashboards are not always sufficient to find root causes!
Therefore, planners typically analyse the data (manually using Excel) to identify the root causes of each failure.
In my career, I have seen entire teams spend dozens of hours per week manually crunching data to answer basic questions.
The most complicated task in Supply Chain Management is dealing with people!
This is a critical role because managers (transportation, warehouse, air freight) will always try to shift responsibility among themselves to cover their own teams.

Challenges faced by the distribution planners to find the root causes – (Image by Samir Saci)
Because root cause analysis is the first step in continuous improvement, we must develop a solution to support planners.
You will never solve operational problems if you cannot find the root causes.
Therefore, I wanted to experiment with how an AI Agent can support distribution planning teams in understanding supply chain failures.
I will ask the AI agent to resolve real disputes between teams to determine whether one team is misinterpreting its own KPIs.

Example of a scenario where Claude can arbitrate between conflicting arguments – (Image by Samir Saci)
The idea is to use the reasoning capabilities of Claude models to identify issues from timestamps and boolean flags alone and to answer natural-language questions.
We want the tool to answer open questions with data-driven insights without hallucinations.
What is the responsibility of warehouse teams in the overall performance?
These are actual questions that distribution planning managers must answer on a day-to-day basis
This agentic workflow uses the Claude Opus 4.6 model, connected via an MCP Server to a distribution-tracking database to answer our questions.

MCP Implementation using Claude Opus 4.6 – (Image by Samir Saci)
I will use a real-world scenario to test the ability of the agent to support teams in conducting analyses beyond what static dashboards can provide:
We are supporting a luxury fashion retail company with a central distribution warehouse in France, delivering to stores worldwide via road and air freight.
A team of supply planners manages store inventory and generates replenishment orders in the system.

Distribution chain: from order creation to store delivery – (Image by Samir Saci)
From this, a cascade of steps until store delivery
In this chain, multiple teams are involved and interdependent.

Warehouse Operations – (CAD by Samir Saci)
Our warehouse team can start preparation only after orders are received in the system.
Their colleagues in the transportation team expect the shipments to be ready for loading when the truck arrives at the docks.
This creates a cascade of potential delays, especially considering cut-off times.

Key timestamps and cut-off times – (Image by Samir Saci)
If a team experiences delays, they will affect the rest of the chain and, eventually, the lead time to deliver to the store.

Example on how delays at the airport can impact the rest of the distribution chain – (Image by Samir Saci)
Hopefully, we are tracking each step in the delivery process with timestamps from the ERP, WMS, and TMS.

Timestamps and leadtime monitoring shipments across the distribution chain – (Image by Samir Saci)
For each element of the distribution chain, we have:
For the step linked to a cut-off time, we generate a Boolean Flag to verify whether the associated cut-off has been met.
To learn more about how the Boolean flags are defined and what is a cut-off, you can check this tutorial
Our distribution manager does not want to see his team manually crunching data to understand the root cause.
This shipment has been prepared two hours late, so it was not packed on time and had to wait the next day to be shipped from the warehouse.
This is a common issue I encountered while responsible for logistics performance management at an FMCG company.
I struggled to explain to decision-makers that static dashboards alone cannot account for failures in your distribution chain.
In an experiment at my startup, LogiGreen, we used Claude Desktop, connected via an MCP server to our distribution planning tool, to support distribution planners in their root-cause analyses.
And the results are quite interesting!
Let us now see what data our AI agent has on hand and how it can use it to answer our operational questions.
We put ourselves in the shoes of our distribution planning manager using the agent for the first time.
P.S: These scenarios come from actual situations I have encountered when I was in charge of the performance management for international supply chains.
We took one month of distribution operations:
For the input data, we collected transactional data from the systems (ERP, WMS and TMS) to collect timestamps and create flags.
A quick Exploratory Data Analysis shows that some processes exceeded their maximum lead-time targets.

Impact of transmission and picking time on loading lead time for a sample of 100 orders – (Image by Samir Saci)
In this sample of 100 shipments, we missed the loading cutoff time for at least six orders.
This indicates that the truck departed the warehouse en route to the airport without these shipments.
These issues likely affected the rest of the distribution chain.
In addition to the lead times, we have our boolean flags.

Example of boolean flags variability: blue means that the shipment is late for this specific distribution step – (Image by Samir Saci)
These booleans measure if the shipments passed the process on time:

Overview of the delivery performance for this analysis – (Image by Samir Saci)
For slightly less than 40% of shipments, at least one boolean flag is set to False.
This indicates a distribution failure, which may be attributable to one or more teams.
Can our agent provide clear and concise explaination that can be used to implement action plans?
Let us test it with complex questions.
To familiarise herself with the tool, she began the discussion by asking the agent what he understood from the data available to him.

Definition of the Boolean flags according to Claude – (Image by Samir Saci)
This demonstrates that my MCP implementation, which uses docstrings to define tools, conforms to our expectations for the agent.
Then she asked the agent how we would use these flags to assess the distribution chain’s performance.

Root Cause Analysis Methodology of the Agent – (Image by Samir Saci)
In this first interaction, we sense the capability of Claude Opus 4.8 to understand the complexity of this exercise with the minimal information provided in the MCP implementation.
I am now sufficiently confident to test the agent on real-world scenarios encountered by our distribution planning team.
They are responsible for the end-to-end performance of the distribution chain, which includes actors with divergent interests and priorities.

Challenges faced by the distribution planners – (Image by Samir Saci)
Let us see whether our agent can use timestamps and boolean flags to identify the root causes and arbitrate potential conflicts.

All the potential failures that need to be explained by Claude – (Image by Samir Saci)
However, the real test is not whether the agent can read data.
The question is whether it can navigate the messy, political reality of distribution planning, where teams blame one another and dashboards may obscure the truth.
Let’s start with a tricky situation!
According to the data, we have 2,084 shipments that only missed the latest boolean flag Delivery OnTime.
The central team assumes this is due to the last-mile leg between the airport and the store, which is under the local team’s responsibility.
For example, the central team in France is blaming local operations in China for late deliveries in Shanghai stores.
The local manager disagrees, pointing to delays at the airport and during customs clearance.
P.S.: This scenario is common in international supply chains with a central distribution platform (in France) and local teams overseas (in the Asia-Pacific, North America, and EMEA regions).
Let us ask Claude if it can find who is right.

Initial nuance of the agent based on what has been extracted from data – (Image by Samir Saci)
Claude Opus 4.6 here demonstrates exactly the behaviour that I expected from him.
The agent provides nuance by comparing the flag-based approach to static dashboards with an analysis of durations, thanks to the tools I equipped it with.

Analysis of variance for the last leg (Airport -> Store) under the responsibility of the local team – (Image by Samir Saci)
This states two things:
This indicates that the problem lies between takeoff and last-mile store delivery.

Reminder of the overall distribution chains – (Image by Samir Saci)
This is exactly what Claude demonstrates below:

Demonstration of Air Freight’s partial responsibility – (Image by Samir Saci)
The local team is not the only cause of late deliveries here.
However, they still account for a large share of late deliveries, as explained in Claude’s conclusion.

Claude’s conclusion – (Image by Samir Saci)
What did we learn here?
In Scenario 1, the agent navigated a disagreement between headquarters and a local team.
And it found that both sides had a point!
But what happens when a team’s argument is based on a fundamental misunderstanding of how the KPIs work?
We have 386 shipments delayed, where the only flag at False is Loading OnTime.
The warehouse teams argue that these delays are due to the late arrival of trucks (i.e., orders prepared and ready on time were awaiting truck loading).
Is that true? No, this claim is due to a misunderstanding of the definition of this flag.
Let us see if Claude can find the right words to explain that to our distribution planner.

Reminder of the overall distribution chains – (Image by Samir Saci)
Because we do not have a flag indicating whether the truck arrived on time (only a cutoff to determine whether it departed on time), there is some ambiguity.
Claude can help us to clarify that.

Initial Answer from Claude – (Image by Samir Saci)
For this question, Claude exactly did what I expected:
Now that the distribution planner knows that it’s wrong, Claude will provide the right elements to respond to the warehouse team.

Correct the statement and data – (Image by Samir Saci)
Unlike in the first scenario, the remark (or question) arises from a misunderstanding of the KPIs and flags.
Claude did a great job providing an answer that is ready to share with the warehouse operations team.
In Scenario 1, both teams were partially right. In Scenario 2, one team was simply wrong.
In both cases, the answer was buried in the data, not visible on any static dashboard.
Static dashboards will never settle these debates.
Even if they are a key part of Logistic Performance Management, as defined in this article, they will never fully explain all late deliveries.
They show what happened, not why, and not who’s truly responsible.

Example of Static Visuals deployed in distribution planning report – (Image by Samir Saci)
Distribution planners know this. That’s why they spend dozens of hours per week manually crunching data to answer questions their dashboards can’t.
Rather than attempting to build a comprehensive dashboard that covers all scenarios, we can focus on a minimal set of boolean flags and calculated lead times to support custom analyses.
These analyses can then be outsourced to an agent, such as Claude Opus 4.6, which will use its knowledge of the data and reasoning skills to provide data-driven insights.

Visuals Generated by Claude for the top management – (Image by Samir Saci)
We can even use it to generate interactive visuals to convey a specific message.
In the visual above, the idea is to show that relying solely on Boolean flags may not fully reflect reality.
Flag-Based attribution was probably the source of a lot conflicts.
All of these visuals were generated by a non-technical user who communicated with the agent using natural language.
This is AI-powered analysis-as-a-service for supply chain performance management.
Reflecting on this experiment, I anticipate that agentic workflows like this will replace an increasing number of reporting projects.
The advantage here is for the operational teams.
They do not have to rely on business intelligence teams to build dashboards and reports to answer their questions.
Can I export this PowerBI dashboard in Excel?
These are common questions you may encounter when developing reporting solutions for supply chain operations teams.
It is because static dashboards will never answer all the questions planners have.

Example of visuals built by Claude to answer one of the questions of our planners – (Image by Samir Saci)
With an agentic workflow like this, you empower them to build their own reporting tools.
The distribution planning use case focused on diagnosing past failures. But what about future decisions?
We applied the same agentic approach, using Claude connected via MCP to a FastAPI optimisation engine, to a very different problem: Sustainable Supply Chain Network Design.

Connect Claude to a module of Sustainable Supply Chain Network Design – (Image by Samir Saci)
The aim was to support supply chain directors in redesigning the network within the context of the sustainability roadmap.
Where should we produce to minimize the environmental impact of our supply chain?
Our AI agent is used to run multiple network design scenarios to estimate the impact of key decisions (e.g., factory openings or closures, international outsourcing) on production costs and environmental impacts.

Network Design Scenarios – (Image by Samir Saci)
The objective is to provide decision-makers with data-driven insights.
This was the first time I felt that I could be replaced by an AI.

Example of trade-off analysis generated by Claude – (Image by Samir Saci)
The quality of this analysis is comparable to that produced by a senior consultant after weeks of work.
Claude produced it in seconds.
More details in this tutorial,
Do you want to learn more about distribution planning?
Supply Planners use Inventory Management Rules to determine when to create replenishment orders.

Demand Variability that retail stores face
These rules account for demand variability and delivery lead time to determine the optimal reorder point that covers demand until goods are received.

Formula of the safety stock – (Image by Samir Saci)
This reorder point depends on the average demand over the lead time.
But we can adapt it based on the actual performance of the distribution chain.
For more details, see the complete tutorial.
Let’s connect on LinkedIn and Twitter; I am a Supply Chain Engineer using data analytics to improve logistics operations and reduce costs.
For consulting on analytics and sustainable supply chain transformation, feel free to contact me via Logigreen Consulting.
If you have any questions, you can leave a comment in my app: Supply Science.