GnistAI GnistAI
Log in

Calories Burned

Calculate caloric expenditure by activity, duration, and body weight using MET values.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 type: calculator type type calculator calculator lifecycle: maintained lifecycle lifecycle maintained maintained Health

Data source: Compendium of Physical Activities

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/calories-burned/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (5)

calculate_calories_burned

Calculate calories burned for a physical activity.

Uses MET (Metabolic Equivalent of Task) values from the Compendium of Physical Activities.
Formula: calories = MET * 3.5 * weight_kg / 200 * duration_minutes.

ParameterTypeRequiredDescription
activitystringrequiredActivity ID (e.g. running-5mph, cycling-moderate, yoga-hatha).
weight_kgnumberrequiredBody weight in kilograms.
duration_minutesnumberrequiredDuration of activity in minutes.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "calculate_calories_burned",
    "arguments": {
      "activity": "example",
      "weight_kg": 1.0,
      "duration_minutes": 1.0
    }
  }
}
search_activities

Search available physical activities by name or category.

ParameterTypeRequiredDescription
querystringrequiredSearch by activity name or category (e.g. 'running', 'swimming').
limitintegeroptional (default: 20)
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_activities",
    "arguments": {
      "query": "example"
    }
  }
}
list_activities_by_category

List all activities in a given category.

ParameterTypeRequiredDescription
categorystringrequiredActivity category (e.g. Running, Swimming, Gym, Sports).
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "list_activities_by_category",
    "arguments": {
      "category": "example"
    }
  }
}
get_activity_categories

List all available activity categories.

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_activity_categories",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/calories-burned/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "calculate_calories_burned", "arguments": {"activity": "example", "weight_kg": 1.0, "duration_minutes": 1.0}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/calories-burned/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "calculate_calories_burned",
    "arguments": {
      "activity": "example",
      "weight_kg": 1.0,
      "duration_minutes": 1.0
    }
  }
},
)
print(resp.json())

Related Toolkits (Health)

Resources