Enshape
v1.0.1Read your private Enshape diary and log meals through scoped account authorization.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_daily_summary Read Enshape daily nutrition summary
Returns saved daily targets, quantity-weighted logged calories and macros, signed remaining and explicit overages for a strict user-local YYYY-MM-DD date. Missing or invalid nutrition is incomplete, never zero-filled; unknown totals and remaining are null. One shared diary call. No recommendations or writes.
| Parameter | Type | Description |
|---|---|---|
date * | string |
get_nutrition_targets Read saved Enshape nutrition targets
Returns only saved daily calories, protein, carbs, fat and fiber targets, with missing targets explicit. No recommendations or guessed goals. Requires meals:read and consumes one shared diary call.
get_meals Read Enshape food diary
Returns a bounded page of the connected account’s private meals for a local calendar date, including persisted IDs and saved nutrition. When hasMore is true, nextAfterId is the afterId for the next page. Oversized entries are marked for checking in Enshape. Each page consumes one diary call.
| Parameter | Type | Description |
|---|---|---|
date * | string | |
afterId | integer | |
limit | integer |
recent_foods Find recently logged Enshape foods
Returns up to 50 recent private diary entries for the connected account, including their dates and saved nutrition.
get_nearby_meal_suggestions Suggest meals at nearby restaurants
Suggests meals at restaurants near coordinates supplied by the user, from meal combinations saved in Enshape, optionally filtered by query, maxCalories or minProtein. Returns at most 10 suggestions plus nearbyRestaurants chains within the radius with distance, saved nutrition, serving info, component items and a notification-free logFoodReference. Suggest savedTargetMode: "meal_share" with date when personalizing one meal. Menu freshness is unknown, so the user must check the official current menu. Location is not stored. Consumes one shared diary call. Never writes.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude of the place to search around, in degrees, given by the user. Never guess it from the device, IP address or a place name. |
longitude * | number | Longitude of the place to search around, in degrees, given by the user. |
date | string | With useSavedTargets, the user’s local calendar date (YYYY-MM-DD). Scores against saved daily targets minus what the diary already holds for that date. |
excludedRestaurants | array | Restaurant chains to leave out, by name. Case and punctuation are ignored; partial names do not match. |
limit | integer | Number of meal suggestions to return. Defaults to 5, maximum 10. |
maxCalories | number | Optional maximum calories per meal. |
minProtein | number | Optional minimum protein grams per meal. |
query | string | Optional dish, cuisine or restaurant filter words (e.g. "grilled chicken" or "Chipotle"). |
radiusMiles | number | Search radius in miles. Defaults to 10, maximum 25. |
savedTargetMode | string | With useSavedTargets: whole_day (default) scores against the daily totals (minus the diary when date is given); meal_share scores against one meal’s share as the Enshape app does: a third of each da… |
targets | object | Nutrition goals for this one meal, in calories and grams. All five values are required. Omit for unpersonalized suggestions. |
useSavedTargets | boolean | Personalize with the connected account’s saved DAILY targets. Only true opts in. These are whole-day totals, not a per-meal budget, unless date is also given or savedTargetMode is meal_share. |
find_foods Find foods and restaurant menu items in Enshape
Searches Enshape by plain-language name or restaurant mention, without a location: verified restaurant menu items, reviewed restaurant combos (resolved automatically when a known chain appears in query or restaurant), plus the user’s own saved foods and recipes. Returns at most 10 items per page with a ref, per-serving nutrition, provenance and, with meal targets, Enshape’s fit score and reasons; follow nextCursor for more. Check the official current menu before relying on restaurant values. Log a result only after confirmation, with log_food_reference. Consumes one diary call. Never write…
| Parameter | Type | Description |
|---|---|---|
query * | string | Food or dish words, optionally with the restaurant, e.g. "chicken burrito bowl" or "Chipotle chicken bowl". Filler words are ignored; every remaining word must match. |
cursor | string | nextCursor from the previous page of this same search. |
kinds | array | What to search: restaurant (verified menu items and reviewed meals), mine (foods the user saved in Enshape), recipe (the user’s recipes, per serving). Default: all, or restaurant only when restauran… |
limit | integer | Results per page, at most 10. |
restaurant | string | Restaurant chain to search within, by name. Case and punctuation are ignored ("chick fil a" matches Chick-fil-A). With a restaurant, query words narrow its menu. |
targets | object | Goals for this one meal (calories and grams; all five required). Ranks results by Enshape’s fit score and explains the fit. Omit to rank by match. |
get_usual_meals Find the user’s usual Enshape meals
Returns up to 10 distinct foods the user logs most, from their newest 300 diary entries on or before a local date, ranked by meal slot (when given), how often and how recently, with the latest portion, saved per-serving nutrition and a diary ref for log_food_reference. Nothing is logged: confirm the food, portion, slot and date first. Each call consumes one diary call.
| Parameter | Type | Description |
|---|---|---|
date * | string | User’s local calendar date (YYYY-MM-DD). Only entries on or before it are read. |
limit | integer | |
mealSlot | string | Rank foods usually logged in this slot first. |
get_nutrition_trends Read Enshape nutrition trends
Returns per-day logged totals for up to 31 user-local dates in one consistent read, with averages over complete logged days (count stated), target-hit days when daily targets are set, and the logged-day streak ending at endDate. Unknown values stay null and never become zero; unlogged days are not zero days. Factual diary totals only, no advice. One diary call for the whole range.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | Last user-local calendar date (YYYY-MM-DD), inclusive; at most 31 days after startDate counting both ends. |
startDate * | string | First user-local calendar date (YYYY-MM-DD), inclusive. |
update_nutrition_targets Update saved Enshape nutrition targets
Changes only explicitly confirmed daily calories, protein, carbs, fat or fiber targets for the connected account. Omitted fields are preserved. Requires separate targets:write consent, at least one whole-number target, and confirmed:true. Returns the exact saved targets read back under the account lock. No automatic recommendations, profile, micronutrient or diary changes. Each valid attempt uses one shared diary call. After an uncertain outcome read targets before repeating an explicitly confirmed patch.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | User explicitly confirmed these exact target values. Unspecified targets are preserved. |
calories | integer | |
carbs | integer | |
fat | integer | |
fiber | integer | |
protein | integer |
log_meal Log a meal in Enshape
Creates one private diary entry for the connected account after the user confirms the portion, per-serving nutrition, local date and meal slot. Requires all five nutrition values and their source. Approved estimates are labeled. After an uncertain save, check the diary before retrying with the same requestId. Identical retries return the existing entry. Changed payloads are rejected.
| Parameter | Type | Description |
|---|---|---|
calories * | number | |
carbs * | number | |
confirmed * | boolean | User explicitly requested logging these values, portions and date, and accepted any estimates. |
date * | string | User’s local calendar date in YYYY-MM-DD format. |
fat * | number | |
fiber * | number | |
mealSlot * | string | |
name * | string | |
nutritionSource * | string | Source of per-serving nutrition: user-provided, food label, official menu, or an explicitly user-approved estimate. |
protein * | number | |
requestId * | string | Idempotency key for one intended meal. Identical retries return the original meal; different payloads using this key are rejected. |
estimated | boolean | True if any nutrition value is an estimate approved by the user. |
quantity | number | |
servingSize | string |
log_food_reference Log a food from Enshape by reference
Creates one confirmed private diary entry from a ref returned by find_foods (verified menu item, reviewed restaurant meal or the user’s own food), get_nearby_meal_suggestions (combo) or get_usual_meals, get_meals and recent_foods (diary entry); own foods and diary entries need meals:read too. Enshape resolves and saves the per-serving nutrition, including micronutrients when known, and, when the grant includes meals:read, returns the saved values and totals to read back. Requires quantity, local date, meal slot and confirmed:true after the user confirms. Identical retries with the same reque…
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | User explicitly confirmed this food, portion, meal slot and date. |
date * | string | User’s local calendar date in YYYY-MM-DD format. |
mealSlot * | string | |
ref * | object | |
requestId * | string | Idempotency key for one intended entry. A retry with the same reference, quantity, slot and date returns the original entry; anything else under this key is rejected. |
quantity | number | Servings of the referenced food (per-serving values are multiplied by it). |
delete_meal Delete a meal from Enshape
Permanently deletes one private diary entry belonging to the connected account after the user explicitly confirms that exact entry. Use its saved diary ID from Enshape and verify ambiguous or stale entries before deleting. If the outcome is uncertain, check the diary before retrying with the same ID. A deleted:false result means the entry is absent and does not identify who removed it. Each valid attempt, including retries and missing entries, consumes one shared diary call. Only the private diary is affected.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | User explicitly confirmed deletion of this exact diary entry. |
mealId * | integer | Persisted private diary entry ID, not a catalog ID. |
request_restaurant Request a restaurant for Enshape review
Stores a restaurant request in a private moderation inbox after explicit user confirmation. Requires restaurant name, a short message, and a stable requestId; optionally a coarse town or city. Never provide precise location, private contact details or diary content. Never creates restaurants or imports menu data, and makes no promise of addition or a reply. Uses one shared assistant allowance attempt; submissions also share a stricter 3 per rolling 24 hours limit per account across web, mobile and assistants. Reuse requestId after uncertain outcomes.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | |
message * | string | |
requestId * | string | |
restaurantName * | string | |
restaurantCity | string |
get_account_status Check Enshape plan and assistant usage
Returns server-verified Premium status, diary tool usage, remaining Free allowance, UTC reset time and request caps for the connected account. An unavailable entitlement check reports unknown, never Premium. This lookup does not consume the diary allowance and remains subject to request rate limits. Does not sell or upgrade subscriptions.