get_tasks
Retrieve project tasks from Simplicate business data with configurable limits and offsets for efficient task management.
Instructions
Retrieve project tasks
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number to return | |
| offset | No | Number to skip |
Implementation Reference
- src/mcp/server-full.ts:425-430 (handler)MCP server handler for the 'get_tasks' tool. Extracts parameters and delegates execution to SimplicateService.getTasks, then formats response.
case 'get_tasks': { const data = await this.simplicateService.getTasks({ limit: (toolArgs.limit as number) || 10, offset: (toolArgs.offset as number) || 0, }); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; - src/mcp/server-full.ts:110-119 (registration)Tool registration entry in listTools handler, defining name, description, and input schema for 'get_tasks'.
name: 'get_tasks', description: 'Retrieve project tasks', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Maximum number to return' }, offset: { type: 'number', description: 'Number to skip' }, }, }, }, - src/mcp/server-full.ts:112-119 (schema)Input schema definition for the 'get_tasks' tool.
inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Maximum number to return' }, offset: { type: 'number', description: 'Number to skip' }, }, }, }, - Actual API service method implementing getTasks logic, fetching from Simplicate API endpoint '/projects/task' with project_id requirement.
async getTasks(params?: { limit?: number; offset?: number; project_id?: string }): Promise<SimplicateTask[]> { // Note: Tasks endpoint requires project_id filter in Simplicate // Without project_id, this will return empty array if (!params?.project_id) { console.warn('getTasks: project_id is required but not provided, returning empty array'); return []; } try { const response = await this.client.get('/projects/task', params); return response.data || []; } catch (error) { console.error('getTasks: endpoint may not be available or requires different parameters'); return []; } }