Skip to main content
Glama

get_reading_stats

Read-only

Retrieve aggregated reading statistics for a weekly, monthly, yearly, or custom date range. Get books finished, total pages read, and daily average from your Sansfiction reading logs.

Instructions

Reading statistics for a time range, matching the app's Stats page. Choose the range in ONE of two ways: (a) scope + date — e.g. scope='monthly', date='2026-03-15' covers that whole month; or (b) an explicit from+to pair, which OVERRIDES scope/date when both are given. Returns { range:{start,end}, booksFinishedCount, totalPagesRead, dailyAverage, logsCount, logs? }. dailyAverage is computed only for monthly/yearly scopes (null for weekly and for explicit from/to ranges). When to use: aggregate metrics (pages read, books finished, averages) over a period. To list the underlying books use list_my_books; to record progress that feeds these numbers use update_library_book with current_page. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoExplicit range end (ISO 8601 date). Must be paired with `from`.
dateNoAnchor date (ISO 8601 YYYY-MM-DD) selecting which week/month/year `scope` refers to. Default: today. Ignored when both `from` and `to` are supplied.
fromNoExplicit range start (ISO 8601 date). Must be paired with `to`; together they override `scope`/`date`.
scopeNoGranularity of the range relative to `date`. Default 'monthly'. Ignored when both `from` and `to` are supplied.
include_logsNoWhen true, include the raw reading-log entries (`logs[]`) in the response. Default false.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fgbytes/sansfiction-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server