Skip to main content
Glama
google-health-mcp

google-health-mcp

health_rebuild

Rebuild a cached date range by refetching it from Google and previewing every row that would change or be removed before applying updates to the local cache.

Instructions

Fetch a date range again from Google and report every row that would change.

For when the cache may hold something Google no longer does, or holds it differently. These dates are fetched again, with a day either side, and a row Google sent before and no longer holds is removed. A removed row loses any imported value it carried, and the reply lists it with every value. Where Google still holds a row, an imported value beside Google's stays. History only an import wrote is never touched. A type whose fetch brings back nothing it can store keeps its rows, and says so in a note. A daily weight or body-fat figure synced before release 1.13.0 stays even after its readings are deleted. Without apply nothing is changed: the reply is a preview. Show the person what it lists before running it again with apply=True. A preview copies the cache into memory and makes the same requests to Google as applying does.

Args: since: First date to rebuild, "YYYY-MM-DD". Required. until: Last date, "YYYY-MM-DD". Default: today. data_types: "all", or comma-separated names as health_sync takes them. "account" has no dates and is never rebuilt. apply: If true, change the cache. Default: false, a preview.

Returns, per type, removed (each row Google no longer holds, with its values), changed (each row whose values differ, before and after), added and unchanged (counts), and the range the fetch covered. A type whose fetch fails has nothing removed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "since": "<since>"
    },
    "name": "health_rebuild"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNo
sinceYes
untilNo
data_typesNoall

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/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 behavioral burden and does so unusually well: it discloses destructive deletion of removed rows and their imported values, that history written only by an import is never touched, that a type returning nothing storable keeps its rows and notes it, that failed fetches remove nothing, and the legacy weight/body-fat retention rule. The only reason this is not a 5 is that safety classification (is this destructive? does it need auth or rate limits?) must be inferred from prose rather than declared, and the preview's real Google requests could hit quotas without being called out as such.

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?

Purpose and the preview-then-apply instruction are front-loaded, and the Args/Returns blocks make scanning easy. It is dense but long; the paragraph on legacy weight figures and empty-fetch types, while genuinely useful, is packed into a single run-on block that could be split for readability.

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?

There is no output schema, yet the Returns section enumerates removed/changed/added/unchanged plus the covered range and the empty-fetch note, so an agent knows exactly what comes back. For a mutation-style tool with no annotations and no schema descriptions, nothing an agent needs in order to call it correctly is missing.

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 the Args block fully documents all four parameters: date formats ("YYYY-MM-DD"), the default for until (today), the data_types vocabulary including "all" and the fact that "account" has no dates and is never rebuilt, and that apply defaults to false. This is meaning the bare schema (titles only, no descriptions) does not supply.

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

Purpose5/5

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

Opens with a specific verb and resource plus the effect: "Fetch a date range again from Google and report every row that would change." That single line separates it from the read-only health_get_* siblings (it re-fetches and diffs) and from health_sync (it reports changes instead of importing them).

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

Usage Guidelines5/5

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

States the exact triggering condition -- "For when the cache may hold something Google no longer does, or holds it differently" -- and then prescribes the workflow: preview first without apply, "Show the person what it lists before running it again with apply=True." It also warns what preview costs (a cache copy in memory and the same Google requests), which is exactly the guidance an agent needs before choosing to run it twice.

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