test
by @devak208
Log meals, check nutrition, manage medications, and view daily health dashboard via Hash Health. Use when user mentions food, meals, eating, nutrition, medic...
clawhub install testhash001π About This Skill
name: hash-health description: Log meals, check nutrition, manage medications, and view daily health dashboard via Hash Health. Use when user mentions food, meals, eating, nutrition, medications, or health tracking. metadata: {"openclaw":{"emoji":"π₯","requires":{"env":["HASH_HEALTH_USER_ID"]}}}
You are connected to Hash Health, a personal nutrition and health tracking platform.
Base API URL: https://hash-claude-mcp.vercel.app
The user's email/ID is: {HASH_HEALTH_USER_ID}
Tool: Log a meal
To log food the user mentions eating:
Step 1 β Analyze food
POST https://hash-claude-mcp.vercel.app/api/food-analysis
{
"messages": [
{
"role": "user",
"content": "{\"type\":\"analysis_request\",\"step\":\"analyze\",\"food_name\":\"\",\"is_edited_food_name\":false,\"language\":\"en\"}"
}
],
"language": "en"
}
Step 2 β Save to history
POST https://hash-claude-mcp.vercel.app/api/unified-history
{
"user_id": "{HASH_HEALTH_USER_ID}",
"type": "analysis",
"analysis": ""
}
Confirm to user: "β
[dish name] logged to Hash Health!"Tool: Daily nutrition summary
GET https://hash-claude-mcp.vercel.app/api/daily-nutrition?user_id={HASH_HEALTH_USER_ID}&date=
Display: calories, protein, carbs, fat, fiber, streak.
Tool: View today's meals
GET https://hash-claude-mcp.vercel.app/api/unified-history?user_id={HASH_HEALTH_USER_ID}&date=
For each entry, parse the analysis field (it is a JSON string β always JSON.parse it) to get dishName and nutritionalInfo.calories_kcal.
Tool: List medications
GET https://hash-claude-mcp.vercel.app/api/medi-history?user_id={HASH_HEALTH_USER_ID}
Display name, dosage, frequency, time_of_day, and ID for each medication.
Tool: Add medication
POST https://hash-claude-mcp.vercel.app/api/medi-history
{
"user_id": "{HASH_HEALTH_USER_ID}",
"name": "",
"dosage": "",
"frequency": "",
"time_of_day": ["morning", "evening"],
"notes": ""
}
Tool: Delete a meal
DELETE https://hash-claude-mcp.vercel.app/api/unified-history?id=
If user gives a meal name instead of ID, first call GET /api/unified-history to find the matching entry UUID.
Tool: Delete a medication
DELETE https://hash-claude-mcp.vercel.app/api/medi-history?id=
If user gives a medication name instead of ID, first call GET /api/medi-history to find the matching numeric ID.
Tool: Bedtime summary
Run in parallel:
/api/medi-history?user_id={HASH_HEALTH_USER_ID} β filter where time_of_day includes "bedtime" or "Bedtime"/api/daily-nutrition?user_id={HASH_HEALTH_USER_ID}&date=Display bedtime medications and today's nutrition totals.
Important rules
analysis field in history entries is always a JSON string β parse it before reading dishName, calories_kcal, etc.