Skip to main content
Glama
daanno

Simplicate MCP Server

by daanno

get_organizations

Retrieve CRM organizations from Simplicate business data to access company information and manage customer relationships.

Instructions

Retrieve CRM organizations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo

Implementation Reference

  • MCP tool handler for 'get_organizations': extracts params, calls simplicateService.getOrganizations(), formats response as JSON text.
    case 'get_organizations': {
      const data = await this.simplicateService.getOrganizations({
        limit: (toolArgs.limit as number) || 10,
        offset: (toolArgs.offset as number) || 0,
      });
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
  • Tool registration including name, description, and input schema definition.
    name: 'get_organizations',
    description: 'Retrieve CRM organizations',
    inputSchema: {
      type: 'object',
      properties: {
        limit: { type: 'number' },
        offset: { type: 'number' },
      },
    },
  • TypeScript interface defining the structure of SimplicateOrganization (output type/schema).
    export interface SimplicateOrganization {
      id: string;
      name: string;
      coc_code?: string;
      email?: string;
      phone?: string;
      website?: string;
      relation_type?: string;
      address?: any;
  • Helper method implementing the core API call to fetch organizations from Simplicate CRM endpoint '/crm/organization'.
    async getOrganizations(params?: { limit?: number; offset?: number }): Promise<SimplicateOrganization[]> {
      const response = await this.client.get('/crm/organization', params);
      return response.data || [];
  • Alternative/basic MCP tool handler for 'get_organizations' in server.basic.ts.
    case 'get_organizations': {
      const organizations = await this.simplicateService.getOrganizations({
        limit: (toolArgs.limit as number) || 10,
        offset: (toolArgs.offset as number) || 0,
      });
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(organizations, null, 2),
          },
        ],
      };

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