# Logistics Cost-to-Serve Calculator AI Agent Connect

> Logistics Cost-to-Serve Calculator MCP lets your AI client analyze the actual expenses tied to specific customers or sales channels. It pulls together handling, transport, returns, and support costs to reveal net revenue and contribution margins. You can pinpoint exactly where logistics expenses eat into your profits.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_OAdV4kYDb4KeM66nhtvE9N61KdMMVGuh1Z9OLKOk/ai-agent-connect
- **Tags:** cost-to-serve, profitability, logistics, supply-chain, revenue-analysis

## Description

You can stop guessing which customers are actually making you money. This MCP gives your agent the ability to calculate precise cost-to-serve metrics by aggregating every layer of logistics expense. Instead of looking at gross revenue, you can see the impact of transport, returns, and special handling requirements on your bottom line. 

Your AI client can run deep dives into individual customer profitability or aggregate those costs across entire distribution channels. If you need to see how specific cost increases affect your margins, you can generate a service cost bridge to visualize the movement from base handling to final total cost. It also helps you maintain data integrity by flagging missing allocation drivers, ensuring your rankings and prioritization decisions are based on complete volume and frequency data.

## Tools

### calculate_customer_cts
This tool calculates specific cost-to-serve and profitability metrics for a single customer. Use it to find out if a specific account is actually profitable.

### get_service_cost_bridge
This tool provides a detailed breakdown of how base handling costs move to the final total cost. It shows the incremental impact of every cost layer.

### identify_missing_allocation_drivers
This tool finds entities that cannot be accurately ranked. It flags accounts that lack the necessary volume or frequency data for a correct analysis.

### calculate_channel_cts
This tool aggregates all costs and revenue for an entire sales channel. It provides a high-level view of channel profitability.

## Prompt Examples

**Prompt:** 
```
Calculate the cost-to-serve for customer CUST-123 with 50 orders, 500 units, $5 handling rate, $2 transport rate, 5% return rate, $10 support per order, $100 special costs, $5000 gross revenue, and $200 discounts.
```

**Response:** 
```
The net revenue for CUST-123 is $4,800.00, and the total cost-to-serve is $3,150.00, resulting in a contribution of $1,650.00.
```

**Prompt:** 
```
Show me the cost bridge for customer CUST-456 using the previously calculated data.
```

**Response:** 
```
The service cost bridge for CUST-456 shows a base handling cost of $200, an additional $150 for transport, $50 for returns, $30 for support, and $20 for special requirements, totaling $450.
```

**Prompt:** 
```
Identify which customers are missing the 'orderVolume' driver in this list: [{'customerId': 'A'}, {'customerId': 'B', 'orderVolume': 10}].
```

**Response:** 
```
The incomplete customer ID is: ['A'].
```

## Capabilities

### Customer Profitability Analysis
Your agent calculates net revenue and contribution margins for individual accounts.

### Channel Aggregation
Your AI client sums up costs and revenue across entire distribution channels.

### Cost Layer Visualization
Your agent builds a service cost bridge to show the jump from handling to total cost.

### Data Integrity Checks
Your AI client identifies missing volume or frequency data needed for accurate ranking.

## Use Cases

### Customer Rationalization
Identify low-margin customers by calculating their specific cost-to-serve.

### Channel Performance Review
Compare the profitability of different sales channels using aggregated cost data.

### Margin Leakage Analysis
Use the cost bridge to see exactly how transport or returns are eating into margins.

### Data Quality Auditing
Find accounts with insufficient volume data before running profitability reports.

## Benefits

- Calculates net revenue by accounting for discounts and returns.
- Identifies missing data drivers to prevent inaccurate customer rankings.
- Breaks down total costs into specific layers like transport and support.
- Aggregates individual customer data into full channel views.

## How It Works

Connect your AI client to Vinkius to start running logistics calculations immediately.

1. Connect your preferred client like Claude or Cursor to the Vinkius platform.
2. Provide your logistics data or specific customer parameters to your AI agent.
3. The agent calls the relevant MCP tool to process the costs and revenue.
4. Your agent returns the calculated margins, cost bridges, or data gaps.

## Frequently Asked Questions

**What is cost-to-serve in logistics?**
It is the total cost required to fulfill orders for a specific customer or channel, including transport, handling, and support.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client including Claude, Cursor, and Windsurf.

**How does the cost bridge work?**
The cost bridge shows the step by step movement from base handling costs to the final total cost by adding layers like transport and returns.

**Does this MCP handle data validation?**
Yes, it includes a tool to identify missing allocation drivers like volume or frequency to ensure your data is complete.

**Can I analyze entire sales channels?**
Yes, the tool includes a specific function to aggregate costs and revenue across entire distribution channels.

**What is Cost-to-Serve (CTS)?**
Cost-to-Serve is the total cost incurred to fulfill all requirements for a specific customer or channel, including warehouse handling, transport, returns, and support overhead.

**How can I see the breakdown of costs for a single customer?**
You can use the `get_service_cost_bridge` tool to see a detailed movement from base handling costs to the final total cost.

**Can I aggregate costs for an entire sales channel?**
Yes, the `calculate_channel_cts` tool allows you to aggregate costs and revenue for an entire sales channel by providing a list of customer metrics.
