# Sugar Total Calculator AI Agent Connect

> Sugar Total Calculator lets your AI client manage a running log of everything you eat and drink. Instead of manually calculating grams, you just tell your agent what you consumed, and it handles the math, the logging, and the totals for your current session.

## Overview
- **Category:** health
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_rfFjnllbsbTWEexqwm3kX6U7SsfBoRHgL1fWmWrY/ai-agent-connect
- **Tags:** sugar, diet, nutrition, health, tracking

## Description

Managing sugar intake shouldn't involve a spreadsheet or a notebook. This MCP turns your AI client into a dedicated nutrition logger that understands sugar content. You can quickly log a snack or a drink, check your current list, or wipe an entry if you made a mistake. It calculates the total sugar for your session and provides the average sugar per item, giving you a clear picture of your dietary patterns without the mental math. It works by maintaining a session-based list that your agent can query whenever you need a status update on your intake.

## Tools

### add_food_item
Adds a new food or drink entry with a specific sugar amount to your current session.

### calculate_totals
Computes the total sugar sum and the average sugar per item for your session.

### list_sugar_items
Shows you the full list of food and drink items currently being tracked.

### remove_food_item
Deletes a specific item from your active tracking session.

## Prompt Examples

**Prompt:** 
```
Add an apple with 10 grams of sugar to my session 'session-123'.
```

**Response:** 
```
Added apple with 10 grams of sugar to session session-123.
```

**Prompt:** 
```
What is my total sugar for session 'session-123'?
```

**Response:** 
```
The total sugar for session session-123 is 10 grams, with an average of 10 grams per item.
```

**Prompt:** 
```
List all items in session 'session-123'.
```

**Response:** 
```
The items in session session-123 are: apple (10g).
```

## Capabilities

### Session-based logging
Your agent uses this to keep track of specific eating windows or daily logs.

### Automated math
The agent calls this to sum up grams and find averages instantly.

### List management
Your agent uses this to review or prune your current food entries.

## Use Cases

### Daily sugar monitoring
Log every sugary snack throughout the day to see your cumulative total.

### Meal planning verification
Check how much sugar is left in your daily limit after logging a meal.

### Error correction
Remove an item from your log if you accidentally entered the wrong amount.

## Benefits

- Removes the need for manual sugar math.
- Maintains a clean, session-based history of intake.
- Works directly within your existing AI chat interface.

## How It Works

Connect the MCP to your client and start talking to your agent about your food intake.

1. Connect the MCP to your preferred client like Claude or Cursor.
2. Tell your agent to add a food item and its sugar content.
3. Ask your agent for the total sugar count or the list of items.
4. Use the agent to remove items if your log needs updating.

## Frequently Asked Questions

**How do I use this MCP?**
You connect it to an MCP-compatible client and then simply tell your agent to add, list, or calculate sugar items.

**Can I use this with Claude?**
Yes, you can use this with any MCP-compatible client, including Claude.

**Does it calculate averages?**
Yes, the calculate_totals tool provides both the total sum of sugar and the average sugar per item.

**How are items organized?**
Items are organized into sessions, allowing you to track different days or specific eating periods separately.

**How do I add a new item?**
Use the `add_food_item` tool by providing the session ID, the name of the food, and the sugar amount in grams.

**How can I see my total sugar intake?**
You can use the `calculate_totals` tool to retrieve the total sugar and the average sugar per item for your session.

**Can I remove an item I added by mistake?**
Yes, use the `remove_food_item` tool with the exact name of the item to remove it from your session.
