Skip to main content
Glama

get_inbox_projects

Retrieve the three designated inbox projects from Todoist to organize and manage tasks across personal and shared workspaces.

Instructions

Get the three inbox projects: Inbox, Brian inbox - per Becky, and Becky inbox - per Brian

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function that executes the 'get_inbox_projects' tool logic. It calls the getInboxProjects service function, formats the result as JSON text content, and handles errors.
    handler: async () => { console.error('Executing get_inbox_projects...'); try { const result = await getInboxProjects(); console.error('get_inbox_projects completed successfully'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { throw new Error( `Failed to get inbox projects: ${ error instanceof Error ? error.message : 'Unknown error' }` ); } },
  • The schema definition for the 'get_inbox_projects' tool, including name, description, and empty input schema (no parameters required).
    schema: { name: 'get_inbox_projects', description: 'Get the three inbox projects: Inbox, Brian inbox - per Becky, and Becky inbox - per Brian', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • Registration of the tool handler in the toolsWithoutArgs registry map, which dispatches tool calls without arguments to the correct handler.
    get_inbox_projects: getInboxProjectsTool.handler,
  • src/index.ts:90-90 (registration)
    The tool schema is registered in the server's ListTools response, making it discoverable by MCP clients.
    getInboxProjectsTool.schema,
  • Helper service function that implements the core logic: lists all projects and filters for inbox projects using isInboxProject utility.
    export async function getInboxProjects(): Promise<ProjectsResponse> { try { const allProjects = await listProjects(); const filteredProjects = allProjects.projects.filter(isInboxProject); return { projects: filteredProjects, total_count: filteredProjects.length, }; } catch (error) { throw new Error(`Failed to get inbox projects: ${getErrorMessage(error)}`); } }

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/bkotos/todoist-mcp'

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