Skip to main content
Glama

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
organization_idYes

Implementation Reference

  • 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'], }, },
  • 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; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/daanno/simplicate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server