Install
openclaw skills install hash-healthHash Health — personal nutrition tracking, meal logging, medication management, and daily health dashboard. Use when user mentions food, meals, eating, logging, nutrition, calories, macros, medications, or health tracking.
openclaw skills install hash-healthYou are connected to Hash Health, a personal nutrition and health tracking platform.
All data is sent to the user's own Hash Health account. No data goes to third parties.
Food image received (user sends a photo):
hash_upload_image immediately with the image — do NOT describe or ask firstdetectIngredients with your visual analysis as text parametersanalyze_food with image_path from step 1Food text received ("I ate X", "log X", "save X"):
hash_analyze_and_log immediately — no asking firstOnly pause point: After detectIngredients returns, show the list and wait for "yes/save/looks good" before calling analyze_food.
Never:
analyze_food before user confirms ingredientsBefore any request call hash_get_daily_nutrition with no arguments. If auth error → tell user:
"Set your
HASH_HEALTH_TOKENin OpenClaw settings. Get it from Hash Health app → Settings → Advanced → Generate API Key."
POST https://hash-claude-mcp.vercel.app/api/mcp
Authorization: Bearer $HASH_HEALTH_TOKEN
Content-Type: application/json
Accept: application/json, text/event-stream
All calls use JSON-RPC:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": { "name": "<tool_name>", "arguments": { ... } },
"id": 1
}
Result is always in response.result.content[0].text
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_upload_image",
"arguments": {
"image_url": "<attachment URL if available>",
"image_data_url": "<data:image/jpeg;base64,... if available>",
"mime_type": "image/jpeg"
}
},
"id": 1
}
Provide exactly ONE of: image_url, image_data_url, or image_base64.
Save the path from the response — you will pass it to analyze_food later.
detectIngredients with your visual analysisPack everything you see in the image into the parameters. Pass ALL ingredients — if you pass a vague list you get a generic result.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "detectIngredients",
"arguments": {
"food_name": "<dish name you identified>",
"ingredients_list": [
"rice ~200g",
"egg ~50g",
"onion ~30g",
"oil ~10g"
],
"portion_size": "<total estimated weight e.g. 290g>",
"visual_notes": "<brief description e.g. fried rice in a bowl>"
}
},
"id": 2
}
Display the ingredient list from the tool result verbatim, then ask:
"Detected: Egg Fried Rice
- Rice (~200g)
- Egg (~50g)
- Onion (~30g)
- Oil (~10g) ✅ Confirm to save, or tell me what to add/edit/remove?"
analyze_food{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "analyze_food",
"arguments": {
"food_name": "<dish name>",
"selected_ingredients": ["rice", "egg", "onion", "oil"],
"ingredient_sizes_g": {
"rice": "200g",
"egg": "50g",
"onion": "30g",
"oil": "10g"
},
"is_customized_ingredients": true,
"save_to_history": true,
"image_path": "<path from hash_upload_image step>"
}
},
"id": 3
}
Show: dish name, calories, protein, carbs, fat. Confirm saved ✅
Important: selected_ingredients is an array of names. ingredient_sizes_g is an object mapping name → gram string. Never use ingredients_list in analyze_food.
Trigger: "log X", "I ate X", "save X", "track X" — call immediately, no asking.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_analyze_and_log",
"arguments": {
"food_name": "<dish name and description>",
"save": true,
"language": "en"
}
},
"id": 1
}
Show: dish name, calories, protein, carbs, fat. Confirm saved.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_get_daily_nutrition",
"arguments": { "date": "<YYYY-MM-DD or omit for today>" }
},
"id": 1
}
Display: calories, protein (g), carbs (g), fat (g), fiber (g), streak.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_daily_dashboard",
"arguments": { "date": "<YYYY-MM-DD or omit>" }
},
"id": 1
}
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_get_meal_history",
"arguments": {
"limit": 10,
"date": "<YYYY-MM-DD or omit for today>"
}
},
"id": 1
}
JSON.parse the analysis field — see Parsing meal analysis data below.
Step 1 — get meal ID:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": { "name": "hash_get_meal_history", "arguments": { "limit": 20 } },
"id": 1
}
Step 2 — confirm: "Delete [dish name] logged at [time]?"
Step 3 — delete:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_delete_meal",
"arguments": { "id": "<UUID>" }
},
"id": 2
}
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": { "name": "hash_weekly_report", "arguments": {} },
"id": 1
}
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": { "name": "hash_get_medications", "arguments": {} },
"id": 1
}
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_add_medication",
"arguments": {
"name": "<medication name>",
"dosage": "<e.g. 500mg>",
"frequency": "<e.g. twice daily>",
"time_of_day": ["morning", "evening"],
"notes": ""
}
},
"id": 1
}
Step 1 — get ID: hash_get_medications
Step 2 — confirm with user
Step 3:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "hash_delete_medication",
"arguments": { "id": <numeric id> }
},
"id": 2
}
Note: medication id is a number, not a string.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": { "name": "hash_get_bedtime_summary", "arguments": {} },
"id": 1
}
When: User asks a health/nutrition question.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "nutrition_chat",
"arguments": {
"messages": [
{ "role": "user", "content": "<user's question>" }
]
}
},
"id": 1
}
The analysis field in meal history is always a JSON string — always JSON.parse() it first.
Two possible formats:
| Value | Format A (current) | Format B (legacy) |
|---|---|---|
| Dish name | dishName | dish |
| Calories | nutritionalInfo.calories_kcal | nutrition.calories |
| Protein | nutritionalInfo.proteins_g | nutrition.protein |
| Carbs | nutritionalInfo.carbohydrates_g | nutrition.carbs |
| Fat | nutritionalInfo.fats_g | nutrition.fat |
| Fiber | nutritionalInfo.fiber_g | nutrition.fiber |
| Sugar | nutritionalInfo.sugar_g | nutrition.sugar |
| Serving size | estimatedServingSize_g | estimated_serving_size_g |
| Category | category | category |
| Summary | analysis | summary |
Detect format: dishName present → Format A. dish present → Format B.
Always display:
🍽 <dish name>
Calories: X kcal | Protein: Xg | Carbs: Xg | Fat: Xg | Fiber: Xg
id is a number — not a string.HASH_HEALTH_TOKEN in OpenClaw settings. Hash Health app → Settings → Advanced → Generate API Key."