create_organization
Create a new organization in Simplicate by providing the organization name and optional contact details like email, phone, and website.
Instructions
Create a new organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| name | Yes | Organization name | |
| phone | No | ||
| website | No |
Implementation Reference
- src/mcp/server-full.ts:144-157 (registration)Registration of the 'create_organization' tool including its input schema definition.{ name: 'create_organization', description: 'Create a new organization', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Organization name' }, email: { type: 'string' }, phone: { type: 'string' }, website: { type: 'string' }, }, required: ['name'], }, },
- src/mcp/server-full.ts:446-449 (handler)MCP server handler for 'create_organization' tool that delegates to SimplicateServiceExtended.createOrganization.case 'create_organization': { const data = await this.simplicateService.createOrganization(toolArgs); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }
- Core implementation of organization creation via Simplicate API POST to /crm/organization endpoint.async createOrganization(data: Partial<SimplicateOrganization>): Promise<SimplicateOrganization> { const response = await this.client.post('/crm/organization', data); return response.data; }
- TypeScript interface defining the SimplicateOrganization structure used in createOrganization.export interface SimplicateOrganization { id: string; name: string; coc_code?: string; email?: string; phone?: string; website?: string; relation_type?: string; address?: any; }