Skip to main content
Glama
hald

Things MCP Server

by hald

get_recent

Retrieve recently created items from the Things app by specifying a time period (e.g., '3d', '1w', '2m'). Use this to track and manage tasks or projects efficiently.

Instructions

Get recently created items

Args: period: Time period (e.g., '3d', '1w', '2m', '1y')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodYes

Implementation Reference

  • The main handler function for the 'get_recent' MCP tool. It is registered via the @mcp.tool decorator. Fetches recently created items using the 'things.last' function based on the provided period and formats them using 'format_todo'.
    @mcp.tool async def get_recent(period: str) -> str: """Get recently created items Args: period: Time period (e.g., '3d', '1w', '2m', '1y') """ todos = things.last(period, include_items=True) if not todos: return f"No items found in the last {period}" formatted_todos = [format_todo(todo) for todo in todos] return "\n\n---\n\n".join(formatted_todos)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hald/things-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server