count_memories tool ¶Returns COUNT(*) over the memory store, with the same set of
optional filters that list_memories accepts plus tag and
source-provider filters. Cheap; useful as a sanity check before a
bulk operation (“how many would I touch?”).
include_deletedBoolean. Optional, default false.
tagsArray of strings. Optional. A memory is counted if it has at least one of these tags.
source_providerString. Optional exact-match filter on source_provider.
untagged_onlyBoolean. Optional. Only count rows with no tags.
min_charsInteger. Optional. Only count rows whose text length is at least this many characters.
max_charsInteger. Optional. Only count rows whose text length is at most this many characters.
not_confirmed_sinceISO 8601 timestamp. Optional. Only count rows with
last_confirmed_at IS NULL or older than this instant.
{
"ok": true,
"count": 412
}
INVALID_INPUT (out-of-range filter values), DATABASE_ERROR.