get_today
Retrieve todos due today from the Things app using natural language commands, enabling efficient task management and priority tracking.
Instructions
Get todos due today
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- things_server.py:25-32 (handler)The core handler function for the 'get_today' tool, decorated with @mcp.tool for automatic registration in FastMCP. It retrieves todos due today using things.today(), formats them, and returns a formatted string.@mcp.tool async def get_today() -> str: """Get todos due today""" todos = things.today(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)
- things_server.py:25-25 (registration)The @mcp.tool decorator registers the get_today function as an MCP tool.@mcp.tool
- things_server.py:27-27 (schema)Docstring providing description and implicit schema (no input parameters, returns str)."""Get todos due today"""