Skip to main content
Glama

add_project

Create new projects in Things 3 with title, notes, deadlines, tags, areas, and subtasks to organize your tasks and manage workflows effectively.

Instructions

创建新的项目。支持标题、备注、区域、标签、子任务等。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNo项目标题
notesNo备注内容
whenNo时间安排: today, tomorrow, evening, anytime, someday, 日期或日期时间
deadlineNo截止日期(yyyy-mm-dd)
tagsNo标签,逗号分隔
areaIdNo区域ID
areaNo区域标题
todosNo子待办事项列表
completedNo是否标记为完成
canceledNo是否标记为取消
revealNo是否导航进入项目

Implementation Reference

  • The handler function that implements the 'add_project' tool logic. It constructs a Things URL scheme using buildThingsUrl with 'add-project' command and the provided arguments, opens the URL to trigger project creation in Things app, and returns a success confirmation message.
    async handleAddProject(args) { const url = buildThingsUrl('add-project', args); await this.openThingsUrl(url); return { content: [ { type: 'text', text: `✅ 项目创建命令已发送${args.title ? `: ${args.title}` : ''}`, }, ], }; }
  • The input schema defining the parameters and their types/descriptions for the 'add_project' tool, used for validation in the MCP protocol.
    inputSchema: { type: 'object', properties: { title: { type: 'string', description: '项目标题', }, notes: { type: 'string', description: '备注内容', }, when: { type: 'string', description: '时间安排: today, tomorrow, evening, anytime, someday, 日期或日期时间', }, deadline: { type: 'string', description: '截止日期(yyyy-mm-dd)', }, tags: { type: 'string', description: '标签,逗号分隔', }, areaId: { type: 'string', description: '区域ID', }, area: { type: 'string', description: '区域标题', }, todos: { type: 'array', items: { type: 'string' }, description: '子待办事项列表', }, completed: { type: 'boolean', description: '是否标记为完成', }, canceled: { type: 'boolean', description: '是否标记为取消', }, reveal: { type: 'boolean', description: '是否导航进入项目', }, }, },
  • src/index.js:117-170 (registration)
    The tool registration entry in the ListToolsRequestSchema handler's tools array, specifying name, description, and inputSchema for 'add_project'.
    { name: 'add_project', description: '创建新的项目。支持标题、备注、区域、标签、子任务等。', inputSchema: { type: 'object', properties: { title: { type: 'string', description: '项目标题', }, notes: { type: 'string', description: '备注内容', }, when: { type: 'string', description: '时间安排: today, tomorrow, evening, anytime, someday, 日期或日期时间', }, deadline: { type: 'string', description: '截止日期(yyyy-mm-dd)', }, tags: { type: 'string', description: '标签,逗号分隔', }, areaId: { type: 'string', description: '区域ID', }, area: { type: 'string', description: '区域标题', }, todos: { type: 'array', items: { type: 'string' }, description: '子待办事项列表', }, completed: { type: 'boolean', description: '是否标记为完成', }, canceled: { type: 'boolean', description: '是否标记为取消', }, reveal: { type: 'boolean', description: '是否导航进入项目', }, }, }, },
  • src/index.js:429-430 (registration)
    Switch case in CallToolRequestSchema handler that registers and dispatches 'add_project' tool invocations to the corresponding handler method.
    case 'add_project': return await this.handleAddProject(args);
  • Helper utility function imported and used in the handler to construct the Things URL scheme for the 'add-project' command with properly encoded and mapped parameters.
    export function buildThingsUrl(command, params = {}) { const baseUrl = `things:///${command}`; const queryString = buildQueryString(params); if (!queryString) { return baseUrl; } return `${baseUrl}?${queryString}`; }

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/Mieluoxxx/things_mcp'

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