Presents options to the user as tappable inline buttons in Telegram. After Claude calls ask_user(), the server writes a request file that the Telegram bot monitors. The bot displays inline keyboard buttons, and when the user clicks, their choice is injected back to Claude.
The ask_user tool has a well-structured schema with proper parameter definitions and validation logic in the implementation. However, the tool description conflates user-facing instruction ('STOP and wait') with technical documentation, violating the separation of concerns. The description is 280+ characters, exceeding the recommended 10-200 char range for LLM clarity. Parameter descriptions are present but minimal. The tool's WRITE risk classification is appropriate, but there is no confirmation pattern or dry-run capability documented for this destructive/state-modifying operation. The schema itself is sound (types, required fields, minItems/maxItems constraints), but lacks output schema documentation.
Present options to the user as tappable inline buttons in Telegram. IMPORTANT: After calling this tool, STOP and wait. Do NOT add any text after calling this tool - the user will tap a button and their choice becomes their next message. Just call the tool and end your turn.
Tool description mixes system behavior ('STOP and wait') with tool documentation; lacks separation of concerns. Description length 280+ chars exceeds LLM-optimized 10-200 char baseline.
No output schema documented. Responses are text-only with no structured return type. LLM cannot infer what the response object contains or plan downstream chains.
WRITE operation (state-modifying tool) has no confirmation/dry-run pattern. Tool writes files to disk and injects user response into chat, but provides no way for agents to preview consequences before executing.
Parameter descriptions are minimal (4-7 words). 'question' is 26 chars, 'options' is 54 chars. Should explain WHAT each controls, when to use which, and format/constraint expectations per pattern:tool-description baseline (72 chars avg).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 46 | - | v1 |
Error handling in implementation is basic (lines 74-77: throws generic 'Unknown tool' and 'question and at least 2 options required' errors). No recovery guidance, no categorization of error type, no actionable next steps per pattern:recovery-guide.
Implementation reads from unvalidated file path (~/.lydia-bibel-bot/ask-user/query-context.json) without explicit schema validation. Risk of malformed JSON silently setting chatId/userId to empty strings (lines 85-92).