Skip to main content
Glama
google-health-mcp

google-health-mcp

health_get_food_log

Retrieve daily calories and water intake totals, with optional individual food and drink entries, from Google Health. Use live refresh to fetch dates not yet in the local cache.

Instructions

Get daily food and water totals, and each entry on request.

Returns calories consumed and water intake (in mL) per day. Only populated where the user logs food or water by hand in a connected app. Returns from cache by default, syncing once a day from a few days before the last sync. An entry logged since today's first sync, or for an older date, needs live=True over a window covering it.

Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "30d". Default: 30 days back from the end date or today, whichever is earlier; 7 with include_entries. end_date: End date as "YYYY-MM-DD", "YYYY-MM" (its last day), or "Nd". Default: today. live: If true, re-fetch this window from the API before reading the cache. include_entries: If true, also return each food and drink logged, with Google's fields for it: for food, foodDisplayName, mealType, serving, energy, energyFromFat, totalCarbohydrate, totalFat, nutrients and food (Google's reference to the food record); for a drink, amountConsumed. Integers may arrive as strings. The first sync of entries covers 30 days, so a day before that can have a total and no entries until health_sync is run with since.

Returns food_log, one row per logged day with calories_in and water_ml, and count, the number of rows. Days with no logging are omitted. With include_entries, also food_entries and water_entries. Each entry carries date, the local date it was logged for, and data_source. It also carries start_time and end_time in UTC, and start_utc_offset for the local time; on entries logged in the app, end_time falls seconds after start_time. entry_count is how many entries both lists hold.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "health_get_food_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNo
end_dateNo
start_dateNo
include_entriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_entries
      Added value: +{
      +  "default": false,
      +  "title": "Include Entries",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv1.12.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "health_get_food_logOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does disclose a lot: default reads come from cache, cache syncs once a day from a few days before the last sync, days with no logging are omitted, integers may arrive as strings, and app-logged entries have end_time seconds after start_time. However, several statements are hard to parse, and nothing is said about permissions, rate limits, or error behavior for this mutation-free but API-hitting tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a one-line summary, then Args, then Returns, which is a sensible structure for a tool with no output schema. It is dense but mostly earns its length, though a few clauses are tangled (the 30-day first-sync explanation) and the totals are described twice, once in prose and once in the return-shape sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with no annotations and no output schema, the description covers the missing pieces: input formats and defaults, cache-vs-live semantics, the exact returned fields (food_log, count, food_entries, water_entries, entry_count) and per-entry attributes like date, data_source, and UTC timestamps. An agent could call and interpret this tool without further lookup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does: it documents accepted date formats for start_date ('YYYY-MM-DD', 'YYYY-MM', '30d') and end_date (including 'YYYY-MM' resolving to its last day and 'Nd'), states both defaults and how start_date's default interacts with include_entries, and explains what live and include_entries actually change.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Get daily food and water totals, and each entry on request,' which tells an agent exactly what data comes back (calories, water in mL, optional per-entry rows). It does not explicitly contrast itself with siblings (e.g. health_sync, health_trends), but the resource is distinctive enough that mis-selection is unlikely.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete conditions for the optional behaviors: 'live=True over a window covering it' for entries logged since today's first sync or for older dates, and include_entries to get per-item detail. It also routes the agent to health_sync when a day may have totals but no entries. No explicit when-not-to-use statement, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.