How I Use AI to Convince Companies to Adopt Sustainability

Discover how Claude can act as a Supply Chain Sustainability Analyst and guide companies toward greener, more efficient inventory management.

Need Help?
Subscribed! Error
How I Use AI to Convince Companies to Adopt Sustainability

Nothing is harder than convincing someone of a truth they cannot see in their own data.

Data science and sustainability experts face the same problem: our concepts may be too abstract and theoretical, making them difficult for decision-makers to relate to.

When I published a case study on Green Inventory Management in 2024, I thought the logic was solid and convincing, but the impact was limited.

I learned this the hard way while developping my startup!

The article's thesis in one before and after, split by a black diagonal: halving the delivery frequency to a store doubl
Green Inventory Management = Optimising Store Replenishment Strategies to Reduce CO2 Emissions (Image by Samir Saci)

The article explained the mathematical theory behind it and used an actual case study to demonstrate the sustainability benefits.

Yet it didn’t convert sceptics.

Customer: "I am sure it won't work with our operations!"

Why? Because it wasn’t connected to their data and constraints.

So I decided to change the approach.

I packaged the simulation tool in a FastAPI microservice and gave my customers the ability to test the model themselves using an MCP Server connected to Claude Desktop.

How the simulation is wired to an assistant, a user talking to Claude Desktop, Claude calling the simulation tool throug
Simple setup of local MCP server connected to the analytics product - (Image by Samir Saci)

The objective was to have them ask the LLM to run their own scenarios, adjust their parameters, and see how CO₂ emissions dropped in response to different inventory policies.

In this article, I will share the approach I used for this experiment and the feedback I received from a prospect, the Supply Chain Director of a retail group based in the Asia Pacific region.

What is Green Inventory Management?

In this section, I want to briefly explain the concept of Green Inventory Management so you have the context to understand the tool's added value.

Context: Inventory Management for a Retail Company

Let us put ourselves in our Supply Chain Director's shoes.

His teams (inventory teams, warehouse and transportation operations) are responsible for replenishing stores from a central distribution centre.

The store replenishment cycle drawn as a five-step loop that starts and ends at the store, orange for the alert that tri
Store Replenishment Process of our retail company - (Image by Samir Saci)

When they need specific products, stores automatically send replenishment orders via their ERP to the Warehouse Management System.

Three stacked panels that define a periodic review policy by simulation rather than by formula: noisy daily demand on to
Inventory Management Rules — Periodic Review Policy (Image by Samir Saci)

These automated orders follow rules implemented by the inventory team, known as the periodic review “Order-Up-To-Level (R, S)” policy.

  1. The ERP is reviewing stores' inventory levels, also called inventory on hand (IOH), every R days
  2. A Replenishment Order is created and transmitted to the warehouse with the quantity: Q = S — IOH

The delta between the target inventory S and the inventory level is calculated: Δ = S— IOH

After transmission, the order is prepared at the warehouse and delivered to your store within a specific lead time (LD) in days.

The periodic review arithmetic worked three times over, one panel per review date, with the order in each panel being ex
Example of Periodic Review Policy - (Image by Samir Saci)

To be more concrete, I share the example above:

  • R = 25 days: we review the inventory every 25 days as you can see in the blue scatter plot
  • S = 1,995 units: we ordered to reach this level, as shown in the latest graph.

The inventory teams in the systems usually set these parameters, and the replenishment orders are automatically triggered.

What if we optimise these parameters?

Impacts on Logistics Operations

Based on my experience, these parameters are, most of the time, not set optimally..

The problem is that they significantly impact the efficiency of your warehouse and transportation operations.

This increases carton and plastic consumption and reduces productivity.

One item's master data turned into the three picking granularities, unit, box and pallet, anchored to the conversion fac
Impact on Carton Usage - (Image by Author)

In the example above, items are stored in cartons containing units that can be picked individually.

If the order quantity is five, the operator will:

  • Open a box of 20 units and take five units.
  • Take a new box and put these items in it.
  • Palletise the boxes using plastic film.

The other impact is on truck filling rate and CO2 emissions.

The article's thesis in one before and after, split by a black diagonal: halving the delivery frequency to a store doubl
Green Inventory Management = Optimising Store Replenishment Strategies to Reduce CO2 Emissions (Image by Samir Saci)

With a high delivery frequency, you reduce the volume per shipment.

This leads to the use of smaller trucks that may not be full.

What can we do?

Objectives of Green Inventory Management

We can test multiple scenarios, with different operational parameters, to find the optimal setup.

For that, I have loaded customer data into the simulation model
to test the tool with real scenarios.

The simulation parameters laid out as eight labelled icons rather than a table, which is the house way of stating a case
Simulation Parameters- (Image by Samir Saci)

Users can adjust some of these parameters to simulate different scenarios.

class LaunchParamsGrinv(BaseModel):
    n_day: int = 30           # Number of days in the simulation
    n_ref: int = 20           # Number of SKUs in the simulation
    pcs_carton: int = 15      # Number of pieces per full carton
    cartons_pal: int = 25     # Number of cartons per pallet
    pallet_truck: int = 10    # Number of pallets per truck
    k: float = 3              # Safety factor for safety stock
    CSL: float = 0.95         # Cycle service level target
    LD: float = 1             # Lead time for delivery (days)
    R: float = 2              # Review period (days)
    carton_weight: float = 0.3    # Carton material weight (kg)
    plastic_weight: float = 0.173 # Plastic film weight per pallet (kg)

These parameters include:

  • n_day and n_ref : define the scope of simulation
  • pcs_carton, cartons_pal, LD and pallet_truck: parameters linked to warehousing and transportation operations
  • carton_weight, plastic_weight: sustainability parameters
  • R, k and CSL: parameters set by the inventory team

I want our Supply Chain Director to sit with his teams (inventory, warehouse, transportation and sustainability) to challenge the status quo.

If they need to reach a specific target, our director can:

  • Challenge his inventory teams to find better review periods (R), or cycle service level (CSL) targets
  • Ask the sustainability team to find lighter carton materials
  • Redesign his warehouse operations to reduce the lead time (LD)
The causal chain the tool models, from demand through the inventory policy to the two physical consequences and then to
Approach of the tool (Image by Samir Saci)

For that, we need to provide them with a tool to simulate the impact of specific changes.

Nine review periods on one chart, stacked bars of full and partial truck trips against a black line of total emissions o
Example of Analysis - CO2 emissions for different scenario of delivery frequency - (Image by Samir Saci)
This is what we're going to do with the support of an MCP Server connected to Claude AI.

Demo of the Green Inventory Management AI Assistant

Now that we know how this simulation tool can add value to my customers, let me show you examples of analyses they have performed.

These tests were performed using customer data over a simulation horizon of up to 90 days.

I have replicated the questions and interactions using anonymised dummy data to avoid sharing confidential information here.

Onboarding of users

I have connected the MCP server to the Claude environment used by the Supply Chain managers to have them "play with the tool".

The majority did not take the time to review the initial case study and directly asked Claude about the tool.

Claude Desktop answering the opening question about the tool, with its thought process expanded so the two exposed MCP f
Initial Interaction - (Image by Samir Saci)

Hopefully, I have documented the MCP tools to provide context to the agent, like in the toot launch_greeninv shared below.

@mcp.tool()
def launch_greeninv(params: LaunchParamsGrinv):
    """
    Launch a complete Green Inventory Management simulation.

    This tool sends the input parameters to the FastAPI microservice
    (via POST /grinv/launch_grinv) and returns detailed sustainability
    and operational KPIs for the selected replenishment rule (Review Period R).

    -------------------------------------------------------------------------
    🌱 WHAT THIS TOOL DOES
    -------------------------------------------------------------------------
    It runs the full simulation described in the "Green Inventory Management"
    case study, reproducing the behavior of a real retail replenishment system
    using a (R, S) Periodic Review Policy.

    The simulation estimates:
      - Replenishment quantities and order frequency
      - Stock levels and stockouts
      - Number of full and mixed cartons
      - Number of pallets and truck deliveries
      - CO₂ emissions for each store and globally
      - Carton material and plastic usage
      - Operator productivity (orderlines and pieces per line)
    
    [REMAINDER OF DOC-STRING OMITTED FOR CONCISION]
    """
    logging.info(f"[GreenInv] Running simulation with params: {params.dict()}")

    try:
        with httpx.Client(timeout=120) as client:
            response = client.post(LAUNCH, json=params.dict())
            response.raise_for_status()

        result = response.json()
        last_run = result

        return {
            "status": "success",
            "message": "Simulation completed",
            "results": result
        }

    except Exception as e:
        logging.error(f"[GreenInv] Error during API call: {e}")                                                                                
        return {
            "status": "error",
            "message": str(e)
        }

I was quite satisfied with Claude's introduction to the tool.

It starts with the introduction of the core capabilities of the tools from an operational point of view.

Claude introducing the simulation tool to the user, listing what it models and the three families of analysis it support
Introduction of the tool by Claude - (Image by Samir Saci)

Quickly, our director started to send me long emails with questions on how to use the tool:

  • How to set up the parameters?
  • Who should I involve in this exercise?

My initial reflex was to answer: "Why don't you ask Claude?".

This is what they did, and the results are excellent. Claude proposed a framework of analysis.

A RACI-style table generated by Claude that assigns every model parameter to a team, along with the metrics that team wa
Framework of collaborative work for green inventory optimisation - (Image by Samir Saci)

This framework is nearly perfect; I would just have put the lead time (LD) also in the scope of the Warehouse Manager.

However, I need to admit that I would never have been able to generate such a concise and well-formatted framework on my own.

Then, Claude proposed a plan for this study with multiple phases.

Claude's proposed workshop plan, phase one written as a mermaid-style chain and a python block fixing the baseline param
Sample of the analysis plan proposed by Claude - (Image by Samir Saci)

Let me take you through the different phases from the user's perspective.

Phase 1: Baseline Assessment

I advised the team to continually ask Claude for a nice dashboard with a concise executive summary.

That is what they did for Phase 1.

The user's prompt and Claude's first tool call side by side, showing the simulation being launched with an explicit para
User asks for a run of the baseline - (Image by Samir Saci)

As you can see in the screenshot above, Claude used the MCP Server tool launch_greeninv to run an analysis with the default parameters defined in the Pydantic model.

With the outputs, it generated the Executive Summary for our director.

The executive alert panel from the baseline run, five findings each with an impact sentence and a severity chip. It is t
Executive Summary of the initial run - (Image by Samir Saci)

The summary is concise and straight to the point.

It compares the outputs (key performance indicators) to the targets shared in the MCP docstring and the master prompt.

What about the managers?

Then it generated team-specific outputs, including tables and comments that clearly highlighted the most significant issues, as shown in the example below.

The same baseline run written for the warehouse manager, a monospaced metrics block followed by four pain points in plai
Example of the Warehouse Manager View - (Image by Samir Saci)

What is interesting here is that our warehouse manager only mentioned the target pieces per line in a previous message.

That means we can have the tool learn not only from the MCP's tools docstrings, master prompt, and Pydantic models, but also from user interactions.

The same run again for the sustainability team, an environmental metrics block ending in an annual projection and a targ
Example of Sustainability Team view - (Image by Samir Saci)

Finally, the tool demonstrated its ability to have a strategic approach, providing mid-term projections and alerting on the key indicators.

The closing recommendation of the baseline phase, four decision points for the director and a bottom line that frames th
Next Steps proposed to the Director - (Image by Samir Saci)

However, nothing is perfect.

When you have weak prompting, Claude never loses the opportunity to hallucinate and propose decisions outside the scope of the study.

Let us continue the exercise, following Anthropic's model, and proceed to Phase 2.

Phase 2: Scenario Planning

After brainstorming with its team, our director collected multiple scenarios from each manager.

Claude's visible reasoning as it decides which scenarios to run, one per team, before touching the simulator. It is a sm
Scenarios collected from the four managers - (Image by Samir Saci)

What we can see here is that each manager wanted to challenge the parameters focused on their scope of responsibility.

This thought process is then transcribed into actions.

The tool-call trace of the scenario sweep, six Launch greeninv calls each followed by the observation that decided the n

Claude decided to run the six scenarios listed above.

The challenge here is to compile all the results into a synthetic, insight-driven summary.

The packaging counterpart to a13-09, the same nine review periods with stacked full and mixed cartons and a black line o
Example from the previous case study with a focus only on carton usage - (Image by Samir Saci)

In the case study published in 2024, I focused only on the first three scenarios, examining each performance indicator individually.

What about Claude?

Claude was smarter.

The scenario comparison matrix, seven configurations against their parameters and results with a team champion named for
Scenario Comparison Matrix - (Image by Samir Saci)

Although we had the same type of data on hand, it produced something more "cross-functional" and decision-driven.

  • We have business-friendly names for each scenario that are understandable across functions.
  • Each scenario is linked to the team that pushed for it.

Finally, it provided an optimal scenario that is a consensus between the teams.

Two panels, the negotiation table on the left resolving four inter-team conflicts and the scorecard on the right showing
Explanation and score card of the consensus scenario - (Image by Samir Saci)

We are even provided with a scorecard that explains to each team why the scenario is best for everybody.

For a more detailed breakdown of the agent's outputs, feel free to have a look at this tutorial:

Conclusion

💡
If you have any question, feel free to ask it here: Ask a Question

A new hope for the concept of Green Inventory Management

After a couple of weeks of experimentation, the Supply Chain Director is convinced of the need to implement Green Inventory Management.

The only bottleneck here is on their side now.

With Claude's support, our four managers involved in the study understood the impact of their roles on the distribution chain's overall efficiency.

A control matrix splitting every parameter into what each manager controls directly, what they only influence and what i
Matrix of Parameters Control by Team - (Image by Samir Saci)

This helps us at LogiGreen onboard Supply Chain departments for complex optimisation exercises like this one.

In my opinion, it is easier to conduct a green transformation when all teams have ownership and sponsorship.

And the only way to get that is to make sure everybody understands what we are doing.

Based on the initial results of this modest experiment, I think we have found an excellent tool for that.

Do you want other case studies using MCP Server for Supply Chain Optimisation?

AI Agent for Supply Chain Network Optimisation

In another article published on Towards Data Science, I share a similar experiment focused on the Supply Chain Network Design exercise.

Three grey world maps side by side, each with factory and warehouse icons and coloured flow lines, one per optimisatio…
Example of Network Design - (Image by Samir Saci)

The objective here is more macro-level.

We want to determine where goods are produced to serve markets at the lowest cost in an environmentally friendly way.

Three network scenarios in a strip, each a world map of plant to market flows above the sankey of production by country,
Exemple of scenarios - (Image by Samir Saci)

While the algorithm differs, the approach remains the same.

We try multiple scenarios with parameters that favour different teams (finance, sustainability, logistics, manufacturing) to reach a consensus.

Which facilities each objective opens, countries down the side and objectives across the top, with LOW and HIGH capacity
Example of outputs - (Image by Samir Saci)

Like here, Claude does a great job in synthesising the results and providing data-driven recommendations.

For more details, you can watch this video.

Need Help?