Skip to main content
Glama
hald

Things MCP Server

by hald

search_todos

Locate specific tasks in the Things app by searching titles and notes using a query term, streamlining task retrieval and organization.

Instructions

Search todos by title or notes

Args: query: Search term to look for in todo titles and notes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Implementation Reference

  • The main handler function for the 'search_todos' MCP tool. It is decorated with @mcp.tool, which registers it with the FastMCP server. The function takes a query string, searches Things todos using things.search(), formats the results with format_todo(), and returns a formatted string. The type annotations and docstring define the input/output schema.
    @mcp.tool async def search_todos(query: str) -> str: """Search todos by title or notes Args: query: Search term to look for in todo titles and notes """ todos = things.search(query, include_items=True) if not todos: return f"No todos found matching '{query}'" formatted_todos = [format_todo(todo) for todo in todos] return "\n\n---\n\n".join(formatted_todos)
  • The @mcp.tool decorator registers the search_todos function as an MCP tool.
    @mcp.tool

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