update_organization
Modify organization details in Simplicate by providing the organization ID and updated data fields to maintain current business information.
Instructions
Update an organization
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"organization_id": "<organization_id>",
"data": "<data>"
},
"name": "update_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| organization_id | Yes |
Implementation Reference
- src/mcp/server-full.ts:158-169 (registration)Tool registration including name, description, and input schema definition for update_organization
{ name: 'update_organization', description: 'Update an organization', inputSchema: { type: 'object', properties: { organization_id: { type: 'string' }, data: { type: 'object' }, }, required: ['organization_id', 'data'], }, }, - src/mcp/server-full.ts:450-453 (handler)MCP CallToolRequest handler switch case that validates input and delegates to SimplicateServiceExtended.updateOrganization
case 'update_organization': { if (!toolArgs.organization_id || !toolArgs.data) throw new Error('organization_id and data required'); const data = await this.simplicateService.updateOrganization(toolArgs.organization_id, toolArgs.data); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; - TypeScript interface defining the SimplicateOrganization data structure used for update operations
export interface SimplicateOrganization { id: string; name: string; coc_code?: string; email?: string; phone?: string; website?: string; relation_type?: string; address?: any; } - Core service method implementing the organization update via PUT request to Simplicate API
async updateOrganization(organizationId: string, data: Partial<SimplicateOrganization>): Promise<SimplicateOrganization> { const response = await this.client.put(`/crm/organization/${organizationId}`, data); return response.data; }