update_person
Modify person records in Simplicate CRM by providing person ID and updated data fields to maintain accurate contact information.
Instructions
Update a person
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| person_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"data": {
"type": "object"
},
"person_id": {
"type": "string"
}
},
"required": [
"person_id",
"data"
],
"type": "object"
}
Implementation Reference
- src/mcp/server-full.ts:471-475 (handler)MCP tool handler for 'update_person': validates person_id and data, calls SimplicateServiceExtended.updatePerson, and returns JSON response.case 'update_person': { if (!toolArgs.person_id || !toolArgs.data) throw new Error('person_id and data required'); const data = await this.simplicateService.updatePerson(toolArgs.person_id, toolArgs.data); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }
- src/mcp/server-full.ts:204-215 (registration)Tool registration in ListTools handler: defines name, description, and input schema for 'update_person'.{ name: 'update_person', description: 'Update a person', inputSchema: { type: 'object', properties: { person_id: { type: 'string' }, data: { type: 'object' }, }, required: ['person_id', 'data'], }, },
- TypeScript interface defining the structure of a SimplicatePerson used for update_person data.export interface SimplicatePerson { id: string; first_name: string; family_name: string; email?: string; phone?: string; organization?: { id: string; name: string }; }
- Core implementation: makes PUT request to Simplicate CRM API endpoint `/crm/person/{personId}` to update person data.async updatePerson(personId: string, data: Partial<SimplicatePerson>): Promise<SimplicatePerson> { const response = await this.client.put(`/crm/person/${personId}`, data); return response.data; }