MCP Tool: Diet Builder, Patient Logs & Fridge AI | Diets Premium Skip to main content
Model Context Protocol 2024.11 • Semantic Smart Engine TOOL: management_diet POST /_mcp/management/diet Trainer & Patient AI

Diet Builder (Trainer Mode) & Patient Tracking / Fridge Replacement AI

Intelligent dual-mode diet engine:\n1) Trainer Mode (granted_to IS NULL & created_by == user): Create and edit diets, add/remove days, meal schemas, recipes, foods, supplements, exercises, upload S3 media, and assign diet copies to patients (ASSIGN_TO_PATIENT). Trainers cannot edit personal patient logs (water, feel, notice, smoke).\n2) Recipient/Patient Mode (granted_to == user): View assigned diet, log daily water intake (LOG_WATER), mood/wellbeing (LOG_FEEL), personal notes (LOG_NOTICE), biohacking/smoke (LOG_BIOHACKING), and evaluate fridge ingredients against scheduled meals (EVALUATE_FRIDGE_REPLACEMENT). Physical meal swaps (REPLACE_MEAL) are permitted when allowEditMeals=1.

Protocol
JSON-RPC 2.0
NPM Package
dietspremium-mcp
MCP Method
tools/call
Clients
Claude / Cursor / Node
npm

Official NPM Package: dietspremium-mcp

Install the official DietsPremium MCP connector from the npm registry.

View on npmjs.com
Install via npm
npm i dietspremium-mcp
Run Instantly with npx
npx -y dietspremium-mcp --auth "Bearer YOUR_MCP_SECRET"

Tool Argument Schema

Schema definition for the management_diet tool.

Argument Type Status Default Description
action string required LIST_DIETS Trainer: LIST_DIETS, GET_DIET, GET_DAY, CREATE_DIET, UPDATE_DIET, DELETE_DIET, ADD_DAY, UPDATE_DAY, DELETE_DAY, ADD_SCHEMA, UPDATE_SCHEMA, DELETE_SCHEMA, ADD_ITEM, UPDATE_ITEM, REMOVE_ITEM, ASSIGN_TO_PATIENT, GET_MEDIA, ADD_MEDIA, REPLACE_MEDIA, DELETE_MEDIA. Patient: EVALUATE_FRIDGE_REPLACEMENT, REPLACE_MEAL, LOG_WATER, LOG_FEEL, LOG_NOTICE, LOG_BIOHACKING
payload object optional {} Diet key (diet_key), day_key, schema_key, item_type (recipe|food|supplement|exercise), fridge_ingredients, water_ml, feel_score, notice
locale string optional pl Language locale
page integer optional 1 Page number (max 10 items per page)
max_results integer optional 10 Items per page (1-10)

MCP Client Configuration

Configure Claude Desktop, Cursor IDE, or direct JSON-RPC HTTP clients.

Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "dietspremium": {
      "command": "npx",
      "args": [
        "-y",
        "dietspremium-mcp",
        "--auth",
        "Bearer YOUR_MCP_SECRET"
      ]
    }
  }
}
Cursor IDE (.cursor/mcp.json)
{
  "mcpServers": {
    "dietspremium": {
      "command": "npx",
      "args": [
        "-y",
        "dietspremium-mcp",
        "--auth",
        "Bearer YOUR_MCP_SECRET"
      ]
    }
  }
}
Raw JSON-RPC 2.0 HTTP POST Call for management_diet
curl -X POST "https://www.dietspremium.com/_mcp" \
  -H "Authorization: Bearer YOUR_MCP_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "management_diet",
      "arguments": {
  "action": "EVALUATE_FRIDGE_REPLACEMENT",
  "payload": {
    "diet_key": "MTA4",
    "day_key": "NTIw",
    "schema_key": "MjEwNA==",
    "fridge_ingredients": [
      {"name": "jajka", "grams": 180},
      {"name": "awokado", "grams": 70},
      {"name": "szpinak", "grams": 100}
    ]
  },
  "locale": "pl"
}
    }
  }'

JSON-RPC 2.0 tools/call Payload

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "management_diet",
    "arguments": {
  "action": "EVALUATE_FRIDGE_REPLACEMENT",
  "payload": {
    "diet_key": "MTA4",
    "day_key": "NTIw",
    "schema_key": "MjEwNA==",
    "fridge_ingredients": [
      {"name": "jajka", "grams": 180},
      {"name": "awokado", "grams": 70},
      {"name": "szpinak", "grams": 100}
    ]
  },
  "locale": "pl"
}
  }
}

Tool Execution Response

SUCCESS
{
  "status": "success",
  "mode": "recipient",
  "can_replace_physically": true,
  "scheduled_meal": {"kcal": 460, "proteins": 28, "fats": 32, "carbs": 12},
  "fridge_proposal": {"kcal": 445, "proteins": 26.5, "fats": 31.0, "carbs": 9.5, "compatibility": "HIGH"}
}

Explore All MCP Tools

Direct documentation for all intelligence tools.

View Full MCP Overview
TOOL allergen

Allergen Risk & Intolerance Registry

Dietary allergens, cross-contamination risks, EU 1169/2011 allergen standards, and ingredient intolerance profiles.

Allergology & Safety Protocol
TOOL article

Clinical Nutrition Guides & RAG Grounding

Search 6,000+ peer-reviewed nutrition articles, clinical guidelines, and wellness guides for agent grounding and citations.

Publications & Knowledge Base
TOOL company

Dietetic Catering & Clinic Directory

Search 173,000+ health clinics, dietetic catering providers, gyms, and wellness brands with geo-location metadata.

B2B & Directory
TOOL exercise

Exercise Biomechanics & Calorie Burn

Search 2,000+ workout exercises with targeted anatomical muscle groups, required equipment, and execution guidelines.

Fitness & Biomechanics
TOOL food

Nutritional Database & Macro Search

Search 1,900+ verified foods with complete macronutrients, calorie filters, micronutrients, and allergen exclusions.

Nutrition & Macros
TOOL medication

Pharmacology & Food-Drug Interactions

Database of 53,000+ active substances evaluating critical food-drug interactions, absorption interference, and nutrient depletion.

Pharmacology & Safety
TOOL recipe

Culinary Recipes & Macro Balancing

Search 780+ chef-curated recipes with preparation steps, ingredients with gram weights, portion macronutrients, and difficulty levels.

Culinary & Meal Prep
TOOL user

Specialists & Certified Dietitians

Search verified clinical dietitians, sports nutritionists, and certified personal trainers for client assignment.

Specialists & Trainers
TOOL supplement

Supplements & Active Dosages

Dietary supplements catalog with active compound dosages, vitamin forms, and safety guidance.

Nutrition & Supplements
TOOL diet

Clinical & Lifestyle Diet Templates (158 Types)

Official nutritionist-designed diet templates with multi-currency pricing, day duration (3-28 days), macro splits, and allergen avoidance.

Odżywianie & Diety
TOOL food-world

Global Food Products & Barcodes (Open Food Facts + USDA)

Search 3.5M+ global branded products, EAN/UPC barcodes, brands, Nutri-Score, Eco-Score, and international ingredients.

Global Products & Barcodes
TOOL knowledge

Clinical Knowledge & Dietetic Grounding

Clinical nutrition guidelines, scientific dietary facts, medical definitions, and evidence-based grounding.

Publications & Knowledge Base
TOOL management_account

Account, Profile, GeoName Address, Job, Education & S3 Avatar/Cover

Manage your personal profile (first/last name), S3 avatar & background cover images, verified GeoName residential address, jobs, educations, and personal tags.

Account & Profile Management
TOOL management_calendar

Personal & Company Calendar Events Manager

List, create, edit, and delete events in your personal or company calendar with public/private visibility and S3 media attachments.

Calendar & Scheduling
TOOL management_company

Company, Clinic & Catering Profile Management

Manage owned or assigned companies (CompanyTrainerAssign allow_edit=1): address, Mon-Sun opening hours, website, features, and S3 media.

B2B & Clinic Management
TOOL management_patient

Patient & Client CRM (List, Add, Edit, Soft-Deactivate)

List your patients, onboard new patients, update patient profiles and clinical notes, or deactivate patient assignments (active = 0).

Specialist & Patient CRM
TOOL management_diet

Diet Builder (Trainer Mode) & Patient Tracking / Fridge Replacement AI

Dual-mode diet management: Trainer Mode (granted_to=NULL) for full diet/day/meal/recipe/food/supplement/exercise editing, and Patient Mode (granted_to=user) for water/feel/notes logging and AI Fridge Meal Replacement.

Odżywianie & Diety (Management)
TOOL management_training

Training Plan Builder (Trainer Mode) & Workout Execution

Create and edit training templates, workout days, exercise sets/reps/tempo/rest, assign plans to patients, or log patient workout notes.

Fitness & Biomechanics (Management)

Share