Tool ideas #95

Open
opened 2026-04-20 03:33:52 +03:00 by skobkin · 2 comments
Owner
  • get_message_thread_context
    • Return a compact reply chain around the current message, including parent and a few direct children if available in memory.
    • Useful specifically for older replied-to messages where the normal recent context may have already scrolled away.
  • find_recent_media
    • List recent photos, documents, videos, and voice messages with sender and timestamp metadata.
    • Useful when a user says “summarize the PDF above” or “what was that image he sent?” and the model needs a reliable target.
    • Note: think about filtering by supported type (model capabilities)
  • compare_timestamps (superseeded by #96)
    • Compare two RFC3339 timestamps and return exact delta in days/hours/minutes.
    • Cheap companion to get_current_time and reminders; helps avoid model mistakes like “how long until X?” or “how long ago was Y?”
  • format_datetime (superseeded by #96)
    • Render an RFC3339 timestamp into a human-friendly string for a chosen locale/timezone format.
    • Small tool, but useful when the model has the right instant and just needs a reliable display form.
  • get_chat_activity_window
    • Return a compact summary of recent message cadence: first/last message, count, rough burstiness.
    • Useful for heuristics like whether the chat is currently active enough for reminders, polls, or spontaneous participation logic later.
  • get_server_timezone
    • Return the server’s timezone name and UTC offset only.
    • Tiny tool, but useful when the model needs environment grounding without full current-time output.
  • get_weekday (superseeded by #96)
    • Return the weekday for a given RFC3339 timestamp.
    • Trivial to implement, but removes a common model error source.
  • list_recent_bot_mentions
    • Return recent messages that explicitly mentioned the bot by username or alias.
    • Useful for trigger analysis and future spontaneous participation logic.
  • get_history_bounds
    • Return oldest/newest timestamps currently present in in-memory history for the scope.
    • Useful so the model knows what period it can safely reason about.
  • list_recent_polls
    • Return recent polls/quizzes and basic metadata.
    • Telegram-structure based, not language-dependent.

Related to #92

- [x] `get_message_thread_context` - Return a compact reply chain around the current message, including parent and a few direct children if available in memory. - Useful specifically for older replied-to messages where the normal recent context may have already scrolled away. - [ ] `find_recent_media` - List recent photos, documents, videos, and voice messages with sender and timestamp metadata. - Useful when a user says “summarize the PDF above” or “what was that image he sent?” and the model needs a reliable target. - Note: think about filtering by supported type (model capabilities) - [x] ~~`compare_timestamps`~~ (superseeded by #96) - Compare two RFC3339 timestamps and return exact delta in days/hours/minutes. - Cheap companion to get_current_time and reminders; helps avoid model mistakes like “how long until X?” or “how long ago was Y?” - [x] ~~`format_datetime`~~ (superseeded by #96) - Render an RFC3339 timestamp into a human-friendly string for a chosen locale/timezone format. - Small tool, but useful when the model has the right instant and just needs a reliable display form. - [x] `get_chat_activity_window` - Return a compact summary of recent message cadence: first/last message, count, rough burstiness. - Useful for heuristics like whether the chat is currently active enough for reminders, polls, or spontaneous participation logic later. - [x] ~~`get_server_timezone`~~ - Return the server’s timezone name and UTC offset only. - Tiny tool, but useful when the model needs environment grounding without full current-time output. - [x] ~~`get_weekday`~~ (superseeded by #96) - Return the weekday for a given RFC3339 timestamp. - Trivial to implement, but removes a common model error source. - [ ] `list_recent_bot_mentions` - Return recent messages that explicitly mentioned the bot by username or alias. - Useful for trigger analysis and future spontaneous participation logic. - [x] `get_history_bounds` - Return oldest/newest timestamps currently present in in-memory history for the scope. - Useful so the model knows what period it can safely reason about. - [ ] `list_recent_polls` - Return recent polls/quizzes and basic metadata. - Telegram-structure based, not language-dependent. Related to #92
skobkin self-assigned this 2026-04-20 03:33:52 +03:00
Author
Owner

get_server_timezone

Return server timezone as a part of get_current_time response payload.

compare_timestamps

Merge into datetime_math

format_datetime

Replace by datetime_format

get_weekday

Merge into datetime_math

> `get_server_timezone` Return server timezone as a part of `get_current_time` response payload. > `compare_timestamps` Merge into `datetime_math` > `format_datetime` Replace by `datetime_format` > `get_weekday` Merge into `datetime_math`
Author
Owner

context awareness:

context awareness: - #97 - #98
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
skobkin/telegram-ollama-reply-bot#95
No description provided.