tg_pending
Find Telegram chats with unanswered messages: who waits for you and who owes you a reply. Filter by direction, age, type, or archive to surface stale threads needing attention.
Instructions
Conversations left hanging: who waits on a reply from you, and who owes you one. Unlike tg_unread this survives the chat being opened — a message read and then forgotten is no longer unread, but it is still unanswered. Oldest first.
Broadcast channels are excluded unless kind="channel" (their last message is incoming by definition), and so is Saved Messages — a note to yourself is not a debt.
Args: limit: how many chats to return. direction: "theirs" (default) — last message incoming, never replied to: the ball is in your court; "mine" — yours, nobody answered; "both" — one list, each row tagged. min_age_hours: skip anything newer. 24 or 48 shows only what went stale. kind: one type only — "user", "bot", "group", "channel". Asking for a type overrides the exclusions above. archived: null (default) covers both lists, false the main one, true the archive. include_bots: bots are out by default (their last message is nearly always an unanswered notification).
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": "tg_pending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| limit | No | ||
| archived | No | ||
| direction | No | theirs | |
| include_bots | No | ||
| min_age_hours | No |