Skip to main content
Glama
hald

Things MCP Server

by hald

add_project

Create and organize a new project in the Things app by specifying its title, notes, schedule, deadline, tags, area, and initial todos.

Instructions

Create a new project in Things

Args: title: Title of the project notes: Notes for the project when: When to schedule the project deadline: Deadline for the project tags: Tags to apply to the project area_id: ID of area to add to area_title: Title of area to add to todos: Initial todos to create in the project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
area_idNo
area_titleNo
deadlineNo
notesNo
tagsNo
titleYes
todosNo
whenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool handler implementation for 'add_project'. Registers the tool with @mcp.tool decorator, defines input schema via parameters and docstring, constructs Things URL using helper, executes it, and returns confirmation.
    @mcp.tool
    async def add_project(
        title: str,
        notes: str = None,
        when: str = None,
        deadline: str = None,
        tags: List[str] = None,
        area_id: str = None,
        area_title: str = None,
        todos: List[str] = None
    ) -> str:
        """Create a new project in Things
        
        Args:
            title: Title of the project
            notes: Notes for the project
            when: When to schedule the project
            deadline: Deadline for the project
            tags: Tags to apply to the project
            area_id: ID of area to add to
            area_title: Title of area to add to
            todos: Initial todos to create in the project
        """
        url = url_scheme.add_project(
            title=title,
            notes=notes,
            when=when,
            deadline=deadline,
            tags=tags,
            area_id=area_id,
            area_title=area_title,
            todos=todos
        )
        url_scheme.execute_url(url)
        return f"Created new project: {title}"
  • Helper function that constructs the Things URL scheme for adding a project by preparing parameters and calling construct_url.
    def add_project(title: str, notes: Optional[str] = None, when: Optional[str] = None,
                    deadline: Optional[str] = None, tags: Optional[list[str]] = None,
                    area_id: Optional[str] = None, area_title: Optional[str] = None,
                    todos: Optional[list[str]] = None) -> str:
        """Construct URL to add a new project."""
        params = {
            'title': title,
            'notes': notes,
            'when': when,
            'deadline': deadline,
            'area-id': area_id,
            'area': area_title,
            # Change todos to be newline separated
            'to-dos': '\n'.join(todos) if todos else None
        }
        
        # Handle tags separately since they need to be comma-separated
        if tags:
            params['tags'] = ','.join(tags)
            
        return construct_url('add-project', {k: v for k, v in params.items() if v is not None})
  • Helper function to execute the constructed Things URL using osascript (AppleScript) with fallback to webbrowser.
    def execute_url(url: str) -> None:
        """Execute a Things URL without bringing Things to the foreground."""
        try:
            subprocess.run([
                'osascript', '-e', 
                f'tell application "Things3" to open location "{url}"'
            ], check=True, capture_output=True, text=True)
        except subprocess.CalledProcessError:
            # Fallback to webbrowser if osascript fails
            import webbrowser
            webbrowser.open(url)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but only states the basic creation action. It doesn't disclose behavioral traits like whether creation requires specific permissions, what happens on duplicate titles, if the project appears in specific views (e.g., Today/Upcoming), or error conditions. The description is minimal beyond the core function.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded with the core purpose in the first sentence. The parameter list is organized but could be more concise (e.g., merging 'area_id' and 'area_title' explanations). Every sentence adds value, though the 'Args:' section is somewhat verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 8 parameters with 0% schema coverage and no annotations, the description provides basic parameter semantics but lacks behavioral context for a creation tool. The presence of an output schema reduces the need to explain return values, but gaps remain in usage guidelines and transparency (e.g., no mention of default behaviors or error handling).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It provides a clear list of all 8 parameters with brief explanations of each (e.g., 'Title of the project', 'ID of area to add to'), adding meaningful semantics beyond the schema's basic titles. However, it lacks format details (e.g., date formats for 'when'/'deadline', whether 'area_id' and 'area_title' are mutually exclusive).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Create a new project') and resource ('in Things'), distinguishing it from sibling tools like 'update_project' which modifies existing projects or 'get_projects' which retrieves them. The verb+resource combination is precise and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether an area must exist first), when to use 'add_todo' instead for single tasks, or how it differs from 'update_project' for modifying existing projects. Usage context is implied but not explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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