get_upcoming
Retrieve your upcoming todos from the Things app using natural language commands to stay organized and manage tasks efficiently.
Instructions
Get upcoming todos
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- things_server.py:34-41 (handler)The handler function for the 'get_upcoming' tool. It is registered via the @mcp.tool decorator. Retrieves upcoming todos using the 'things' library, formats them with format_todo, and returns a formatted string.@mcp.tool async def get_upcoming() -> str: """Get upcoming todos""" todos = things.upcoming(include_items=True) if not todos: return "No items found" formatted_todos = [format_todo(todo) for todo in todos] return "\n\n---\n\n".join(formatted_todos)