Skip to main content
Glama
Quantified Self MCP Server

Quantified Self MCP Server

Check how current the data is

get_data_status
Read-onlyIdempotent

Check database freshness and completeness before analysis: see latest data date, coverage gaps, last import, and overall status (CURRENT, STALE, INCOMPLETE, NO_DATA, IMPORT_FAILED).

Instructions

Report how current and complete the database is: latest data date, coverage window, gaps, last successful import, and an overall status of CURRENT, STALE, INCOMPLETE, NO_DATA or IMPORT_FAILED. Check this before drawing conclusions from any analysis, and say so when the status is anything other than CURRENT. The status and latest_data describe the database as a whole, so one metric still arriving keeps them current while another has stopped: read "stale_metrics" too (each metric's own latest day vs. its threshold, most behind first; it's when the data is for, not when imported) before presenting a listed metric as current.

Privacy note: this server and its SQLite file are entirely local, but the data returned by this tool becomes part of the conversation sent to whatever model the calling client is configured with. If that model runs in the cloud rather than on your machine, treat this the same as pasting the data into a chat with that provider.

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": "get_data_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
stale_after_daysNoHow many days the latest data may trail today before the status becomes STALE (30 days for weight and workouts). Defaults to 2. Metrics in HEALTH_PRIVATE_FIELDS are ignored.

Output Schema

NameRequiredDescriptionDefault
gapsYes
as_ofYes
actionNo
reasonNo
sourceNo
statusYes
coverageYes
gap_countYes
days_behindNo
latest_dataNo
missing_daysYes
latest_importNo
stale_metricsNo
days_with_dataYes
stale_after_daysYes
last_successful_importNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.2
    • changedInput schema / properties / stale_after_days / description
      Previous value: -"How many days the latest data may trail today\nbefore the status becomes STALE. Defaults to 2."New value: +"How many days the latest data may trail today\nbefore the status becomes STALE (30 days for weight and\nworkouts). Defaults to 2. Metrics in HEALTH_PRIVATE_FIELDS\nare ignored."
  2. Changed1 schema field changedv0.8.1
    • addedOutput schema / properties / stale_metrics
      Added value: +{
      +  "default": [],
      +  "items": {
      +    "properties": {
      +      "days_behind": {
      +        "type": "integer"
      +      },
      +      "latest_data": {
      +        "type": "string"
      +      },
      +      "metric": {
      +        "type": "string"
      +      },
      +      "stale_after_days": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "metric",
      +      "latest_data",
      +      "days_behind",
      +      "stale_after_days"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changedv1.0.30
    • changedOutput schema / properties / latest_import / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "error": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "finished_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "id": {
      -        "type": "integer"
      -      },
      -      "importer": {
      -        "type": "string"
      -      },
      -      "measurements_written": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "rows_loaded": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "rows_skipped": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "source_file": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "source_sha256": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "started_at": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "importer",
      -      "status",
      -      "started_at"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "coverage_after_end": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "coverage_after_start": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "coverage_before_end": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "coverage_before_start": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "finished_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "id": {
      +        "type": "integer"
      +      },
      +      "importer": {
      +        "type": "string"
      +      },
      +      "measurements_written": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "records_added": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "records_removed": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "records_seen": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "records_unchanged": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "records_updated": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "rows_loaded": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "rows_skipped": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "source_file": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "source_sha256": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "started_at": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "importer",
      +      "status",
      +      "started_at"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Addedv1.0.29

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, local, non-destructive) it discloses two things structured fields cannot carry: the privacy consequence that returned data enters the conversation and may reach a cloud model, and the subtle semantics that the top-level status/latest_data are database-wide while per-metric staleness lives in 'stale_metrics' and is keyed on data date, not import date. These are exactly the behavioral facts an agent would otherwise misread.

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 is front-loaded and each subsequent sentence (usage trigger, stale_metrics caveat, privacy note) carries distinct information. The stale_metrics sentence is dense and parenthetically overloaded, and the privacy paragraph is long, but it is clearly separated and nothing is redundant with the schema or annotations.

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?

An output schema exists, so return values need no explanation, and the annotations cover the safety profile; the description uses its space on the things those fields cannot convey — when to call, how to interpret partial staleness, and the privacy implication. Nothing an agent needs in order to call this correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100% and the single parameter stale_after_days is already fully documented, including the 30-day exception for weight and workouts and the HEALTH_PRIVATE_FIELDS exclusion. The description adds no additional meaning about the threshold, so the baseline of 3 applies.

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?

States a specific verb and resource ('Report how current and complete the database is') and enumerates exactly what is returned: latest data date, coverage window, gaps, last successful import, and the five-value status vocabulary. This makes it distinguishable from data-reading siblings, though it never names a sibling (e.g. get_import_status) to draw the boundary explicitly.

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 a clear when-to-use rule: 'Check this before drawing conclusions from any analysis, and say so when the status is anything other than CURRENT' — an unusually actionable instruction that ties the call to a workflow step. It offers no when-not-to-use condition and names no alternative tool for overlapping questions such as import history.

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