update_project
Modify existing project details by providing the project ID and updated field data to maintain current project information in Simplicate business systems.
Instructions
Update an existing project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Fields to update | |
| project_id | Yes | Project ID |
Implementation Reference
- src/mcp/server-full.ts:410-413 (handler)MCP tool call handler: validates project_id and data, calls SimplicateService.updateProject, serializes response as JSON text content.
case 'update_project': { if (!toolArgs.project_id || !toolArgs.data) throw new Error('project_id and data are required'); const data = await this.simplicateService.updateProject(toolArgs.project_id, toolArgs.data); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; - src/mcp/server-full.ts:82-89 (schema)Input schema definition for update_project tool, specifying required project_id and data object.
inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, data: { type: 'object', description: 'Fields to update' }, }, required: ['project_id', 'data'], }, - src/mcp/server-full.ts:79-90 (registration)Tool registration in listTools response: defines name, description, and input schema.
{ name: 'update_project', description: 'Update an existing project', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, data: { type: 'object', description: 'Fields to update' }, }, required: ['project_id', 'data'], }, }, - Core service method implementation: performs HTTP PUT to Simplicate API endpoint /projects/project/{projectId} to update project data.
async updateProject(projectId: string, data: Partial<SimplicateProject>): Promise<SimplicateProject> { const response = await this.client.put(`/projects/project/${projectId}`, data); return response.data; }