stop_study
End the study timer and complete the current session in the YPT study tracker; defaults to the recorded start time and clears it after success.
Instructions
Stop the study timer and finish the current session.
If ``started_at`` is omitted the timestamp recorded by :func:`start_study`
is used; the recorded value is cleared after a successful stop.
:param started_at: Session start time in epoch milliseconds, as returned
by ``start_study``. Optional; defaults to the recorded session.
:type started_at: int | None
:param device_model: Device model reported to the YPT API. Defaults to
``"ypt-mcp"``.
:type device_model: str
:returns: The full day-log shape described in ``get_day_log``.
:rtype: dict[str, Any]
:raises RuntimeError: If there is no recorded session and ``started_at``
is not provided, or if YPT credentials are not configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| started_at | No | ||
| device_model | No | ypt-mcp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||