Skip to main content
Glama

Data availability and sync evidence

data_status

Inspect before health reviews or investigating missing data. Returns the last received upload batch, collection date ranges/counts and per-metric coverage. Not a sync command. history_import is the iPhone's own report of its history import (complete, still arriving, or unknown for older app builds); while it is still arriving, collections.*.first_date and history_import.workout_details.reached_date say how far back it has reached, since it imports newest first; when next_step is present, relay its message to the user; last_night says whether last night's sleep is stored, may still be on its way, or did not come in an upload made after the user's usual wake time, and its message is what to say instead of 'no record'; never_received names sleep or heart data that has never arrived at all, and its message is what to tell the user; HealthKit read permissions are unknown. An upload can be empty or re-send old records; old dates alone do not prove stalled sync. No account identifiers returned.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
setupYes
metricsYes
refreshNo
next_stepYes
last_nightYes
collectionsYes
last_ingestYes
limitationsYes
history_importYes
never_receivedYes
healthkit_read_permissionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / collections / properties / food
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "days_present": {
      +      "type": "number"
      +    },
      +    "first_date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "last_date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "records": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "first_date",
      +    "last_date",
      +    "days_present",
      +    "records"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / collections / required
      Previous value: -[
      -  "daily",
      -  "sleep",
      -  "workouts"
      -]New value: +[
      +  "daily",
      +  "sleep",
      +  "workouts",
      +  "food"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / never_received
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "kind": {
      +            "enum": [
      +              "sleep",
      +              "heart"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "kind",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "last_ingest",
      -  "collections",
      -  "metrics",
      -  "history_import",
      -  "next_step",
      -  "last_night",
      -  "healthkit_read_permissions",
      -  "limitations",
      -  "setup"
      -]New value: +[
      +  "last_ingest",
      +  "collections",
      +  "metrics",
      +  "history_import",
      +  "next_step",
      +  "last_night",
      +  "never_received",
      +  "healthkit_read_permissions",
      +  "limitations",
      +  "setup"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / properties / refresh / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "arrived_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "last_upload_at": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "requested_at": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "arrived",
      -          "locked",
      -          "requested",
      -          "background_off",
      -          "unreachable"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "last_upload_at",
      -      "requested_at",
      -      "arrived_at",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "arrived_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "last_upload_at": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "requested_at": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "arrived",
      +          "current",
      +          "locked",
      +          "requested",
      +          "background_off",
      +          "unreachable"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "last_upload_at",
      +      "requested_at",
      +      "arrived_at",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed1 schema field changed
    • changedOutput schema / properties / next_step / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "enum": [
      -          "open_app",
      -          "update_app"
      -        ],
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "enum": [
      +          "open_app",
      +          "update_app",
      +          "widen_health_access"
      +        ],
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. Changed1 schema field changed
    • changedOutput schema / properties / refresh / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "arrived_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "last_upload_at": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "requested_at": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "arrived",
      -          "locked",
      -          "requested",
      -          "unreachable"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "last_upload_at",
      -      "requested_at",
      -      "arrived_at",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "arrived_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "last_upload_at": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "requested_at": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "arrived",
      +          "locked",
      +          "requested",
      +          "background_off",
      +          "unreachable"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "last_upload_at",
      +      "requested_at",
      +      "arrived_at",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  6. Changed1 schema field changed
    • changedOutput schema / properties / refresh / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "arrived_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "last_upload_at": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "requested_at": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "arrived",
      -          "requested",
      -          "unreachable"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "last_upload_at",
      -      "requested_at",
      -      "arrived_at",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "arrived_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "last_upload_at": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "requested_at": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "arrived",
      +          "locked",
      +          "requested",
      +          "unreachable"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "last_upload_at",
      +      "requested_at",
      +      "arrived_at",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  7. Changed1 schema field changed
    • addedOutput schema / properties / refresh
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "arrived_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "last_upload_at": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "requested_at": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "arrived",
      +            "requested",
      +            "unreachable"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "last_upload_at",
      +        "requested_at",
      +        "arrived_at",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  8. Changed1 schema field changed
    • changedOutput schema / properties / setup / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account_email": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "install_url": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "no_data_yet",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "install_url",
      -      "account_email",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account_email": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "install_url": {
      +        "type": "string"
      +      },
      +      "iphone_signed_in": {
      +        "type": "boolean"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "no_data_yet",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "install_url",
      +      "account_email",
      +      "iphone_signed_in",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  9. Changed1 schema field changed
    • changedOutput schema / properties / setup / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "install_url": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "no_data_yet",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "install_url",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account_email": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "install_url": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "no_data_yet",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "install_url",
      +      "account_email",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  10. Changed2 schema fields changed
    • addedOutput schema / properties / last_night
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "last_night_end": {
      +          "type": "string"
      +        },
      +        "last_upload_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "nights_recorded": {
      +          "type": "number"
      +        },
      +        "status": {
      +          "enum": [
      +            "received",
      +            "before_usual_wake",
      +            "awaiting_upload",
      +            "not_in_upload",
      +            "too_little_history"
      +          ],
      +          "type": "string"
      +        },
      +        "usual_wake": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "window_days": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "last_night_end",
      +        "last_upload_at",
      +        "usual_wake",
      +        "nights_recorded",
      +        "window_days",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "last_ingest",
      -  "collections",
      -  "metrics",
      -  "history_import",
      -  "next_step",
      -  "healthkit_read_permissions",
      -  "limitations",
      -  "setup"
      -]New value: +[
      +  "last_ingest",
      +  "collections",
      +  "metrics",
      +  "history_import",
      +  "next_step",
      +  "last_night",
      +  "healthkit_read_permissions",
      +  "limitations",
      +  "setup"
      +]
  11. Changed2 schema fields changed
    • addedOutput schema / properties / history_import / properties / workout_details
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "pending_older": {
      +          "type": "number"
      +        },
      +        "reached_date": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "with_details": {
      +          "type": "number"
      +        },
      +        "workouts": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "workouts",
      +        "with_details",
      +        "reached_date",
      +        "pending_older"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / history_import / required
      Previous value: -[
      -  "status",
      -  "full_history",
      -  "reported_at",
      -  "app_version",
      -  "meaning"
      -]New value: +[
      +  "status",
      +  "full_history",
      +  "reported_at",
      +  "app_version",
      +  "meaning",
      +  "workout_details"
      +]
  12. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The description carries substantial behavioral context beyond the annotations: HealthKit read permissions are unknown, an upload can be empty or re-send old records, and old dates alone do not prove a stalled sync — all important caveats for interpreting results. It also explains the semantics of next_step, last_night, never_received and history_import and instructs relaying their messages to the user. The one gap is a mild tension with readOnlyHint=false: the description frames the tool purely as an inspection/return operation and never acknowledges any side effect an agent might expect from a non-read-only annotation.

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

Conciseness3/5

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

The when-to-use clause is correctly front-loaded, but the return-value interpretation is delivered as one long semicolon-chained sentence that mixes four distinct concepts (history_import, next_step, last_night, never_received). It is dense and readable only on a careful second pass; splitting these into separate lines or bullets would cost nothing and gain much.

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

Completeness4/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 not be enumerated, yet the description adds the interpretive layer the schema cannot: how to read an in-progress history import, what to say when sleep is missing, and what the permission blind spot means. What it omits is small — mainly an explicit statement that the operation itself has no arguments and no required prerequisites.

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

Parameters4/5

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

The tool takes no parameters, so there is nothing for the description to disambiguate on the input side. It instead spends its words on output interpretation, which is a reasonable use of the space at this granularity.

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?

The description names a concrete resource set — last upload batch, collection date ranges/counts, per-metric coverage — so an agent knows it is a data-availability inspector rather than a data fetcher. The explicit 'Not a sync command' rules out one misreading. It does not, however, distinguish itself from siblings like query_daily or report_gap, which is why it stops at 4.

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?

'Inspect before health reviews or investigating missing data' gives a clear trigger condition, and 'Not a sync command' sets a boundary on expectations. There is no pointer to an alternative tool when the agent actually wants a sync or a repair, so the when-not guidance is partial rather than complete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources