kmsg-mcp exposes three tools for KakaoTalk integration with clear action verbs and reasonable parameter schemas. However, the implementation has significant gaps in description quality, parameter validation, error handling, and security. Descriptions are present but generic; schemas are well-formed but lack comprehensive validation guidance; error recovery is minimal. The tools are narrowly focused (good composition) but lack the depth needed for robust agent planning.
Tools (3)
kmsg_readread onlysource verified70/100
Read recent KakaoTalk messages from a chat via kmsg.
kmsg_sendwritesource verified68/100
Send a KakaoTalk message via kmsg. Default sends immediately; confirm=true triggers confirmation-required response.
Descriptions lack actionable context for agent decision-making. 'Send a KakaoTalk message via kmsg' does not explain when to use this vs kmsg_read, what happens on confirmation, or what to do on failure.
kmsg_send and kmsg_send_image accept a 'confirm' boolean parameter (default false) that changes behavior from immediate send to CONFIRMATION_REQUIRED response, but error handling and recovery paths are not documented. No guidance on what the agent should do when confirmation is required.
Parameters 'deep_recovery', 'keep_window', and 'trace_ax' lack clear descriptions of their purpose and impact. 'deep_recovery' description is vague ('Enable deep recovery mode for window resolution'). Agents cannot reason about when to use these flags.
kmsg_readkmsg_sendkmsg_send_image
Recommendations
Expand kmsg_read description: 'Retrieve recent KakaoTalk messages from a chat room or direct conversation. Returns up to 20 messages (configurable via limit parameter) in reverse chronological order. Use this to check what was said before responding. Requires the KakaoTalk app running and accessibility permissions granted.' Include output schema: array of {timestamp: ISO8601, sender: string, content: string, message_id: string}.
Expand kmsg_send description: 'Send a text message to a KakaoTalk chat room or user. Default behavior sends immediately and returns success. If confirm=true, returns a CONFIRMATION_REQUIRED response so the user can approve before actual send. This prevents accidental messages. Returns {message_id, timestamp, status} on success. Does not support message formatting or mentions yet.'
Document 'deep_recovery' parameter: 'If window resolution fails (rare), enable this to retry with extended timeout. Use only if kmsg_send returns a window resolution error. Adds ~2 seconds latency.'
Document 'trace_ax' parameter: 'Enable accessibility API debugging logs for troubleshooting. Included in error responses but adds verbosity. Use only when requested by support.'
Add output schema documentation to all three tools. Example for kmsg_send: 'Returns {status: "sent" | "pending_confirmation", message_id?: string, timestamp?: string, confirmation_token?: string}. If confirm=true and not confirmed by user, status is "pending_confirmation" with a confirmation_token for later resume.'
No documented output schema for any tool. kmsg_read should specify: what fields are returned per message (timestamp, sender, content, media_type?), how many messages max, what pagination looks like. kmsg_send should clarify: does it return a confirmation ID, timestamp, message_id for chaining?
Error handling is minimal. No recovery guidance for common failures: chat not found, permission denied, kmsg timeout, image format unsupported, network error. Error responses (if any) do not guide the agent on next steps.
No security-related parameter validation or descriptions. 'image_path' parameter accepts a string with no documented constraints (path traversal risk? absolute vs relative? file size limit?). 'chat' parameter accepts any string, no validation that it resolves to a valid room or user.
kmsg_read's 'limit' parameter defaults to 20 (good) but maxes at 100, no guidance on token impact when the LLM requests 100 messages or on pagination strategy when the chat has thousands of messages.
Tool composition is good (three focused tools, one action each), but no documentation on multi-step workflows. E.g., to send a message to 'Jack', does the agent need to call kmsg_send('Jack', message) directly, or must it first lookup/resolve a chat room? Unclear.
kmsg_send
Implement error guidance for kmsg_send and kmsg_send_image: 'If chat not found, return {error: "chat_not_found", searched_term: "[user input]", hint: "Try searching KakaoTalk for similar names or ask the user for the exact chat name"}'. Similar for permission, timeout, and format errors.
Add validation and constraints to parameter descriptions: 'image_path (required): Absolute or relative path to a local image file (PNG, JPG, GIF; max 10MB). Will be rejected if file does not exist or format unsupported.'
Clarify idempotency and retry behavior: 'kmsg_send is idempotent via message_id, calling with the same parameters twice within 5 seconds will not duplicate the message. Safe to retry on transient errors (timeout, network).'
Document when confirm=true is useful: 'Use confirm=true for sensitive or high-importance messages to get user approval before sending. Useful in scenarios where LLM hallucination risk is high (e.g., replying to a heated conversation).'
Add a composition note: 'To send a message to a user by name, pass the display name directly (e.g., "Jack", "Alice Kim") to the chat parameter. Do not require a user_id lookup, this tool handles name resolution internally.'