Skip to main content
The MCP Connector in Engini allows AI tools to trigger workflows in Engini. It enables communication using the Model Context Protocol (MCP), allowing Engini to receive incoming requests, process data, and return structured responses all within automated workflows. To learn how to connect Engini to MCP connector, click here

MCP Tool Trigger

The MCP Tool Trigger is used to start a workflow when an AI tool, defined in the MCP server, sends a request to Engini using MCP. First Choose the Trigger: Follow the steps:
  1. Name – A unique identifier for your trigger. Use only ASCII characters, without spaces, and up to 64 characters in total.
  2. Description – A short explanation of what this workflow does. This helps understand the purpose of the trigger.
  3. Generate Output Schema – Click to upload a sample JSON or XML response from the MCP tool. Exapmle, This sample JSON includes simple fields (id, status) and one array field (items). The items array contains objects with name and quantity, demonstrating a nested structure for schema generation.
The next step allows you to define the expected output schema of the tool by providing a sample JSON or XML payload. The system will analyze the sample and automatically generate the response schema.
  1. JSON/XML Payload - Paste a representative JSON or XML response here. The system uses this payload to detect field names, data types, and nested structures in order to build the response body schema.
    1. Format Field Description - If enabled, the system will automatically generate descriptions for each detected field. If disabled, only the structure (field names and data types) will be generated.
    2. Map Dictionary - Enable this option to map the detected fields to an existing dictionary or predefined internal schema. If not required, this option can remain unchecked.
    3. Save - Click Save to generate and apply the response body structure based on the provided sample payload.
  2. Output Schema – Displays the generated response body structure based on the JSON/XML sample provided in section 3. The detected fields and data types will appear here only after a valid payload is added in section 3. This structure defines the data returned by the trigger and is available for mapping within the workflow.
Add Field- Customize your Output Schema and add your own fields and be more precise with your goal and result. Follow the steps to build the field:
  1. Name- Choose a unique name.
    1. Display name- The name that will be shown to users inside the workflow and dynamic mapping fields.
    2. Description- Additional context for the AI tool about the purpose of the field and the expected value. Helps the AI understand how and when to use this field dynamically during workflow execution.
    3. Type- Defines the data type of the field.
    4. Required - Determines whether the field is mandatory. If enabled, users must provide a value for this field before the workflow can run. For example, we created the field “TEST”
    5. Repeat 1-5 to populate more fields.
    6. Apply- Saves and applies the current field.

Actions

MCP Tool Response

The MCP Tool Response action is used to send a structured reply back to the AI tool that triggered the workflow. Response – Enter the content you want to send back to the MCP tool. This field supports all data types, such as plain text, JSON, XML, or other structured formats. The response can include dynamic values taken from previous steps in your workflow.

MCP Workflow

This step allows you to configure the MCP Workflow action. Here you define which workflow should be executed and what input data will be sent to it.
  1. Workflow - Select the specific MCP workflow you want to trigger. The selected workflow determines which logic will run and which input fields will be available for configuration.
  2. Add Field - By clicking the “Add field” button, you can add and define the specific fields for the user. You can add one field or multiple fields, up to the number of available fields in the user object. In this case, there is a single input field that accepts a JSON payload. The JSON should contain all required parameters for the workflow execution. Note: The available fields are taken from the MCP Trigger of the workflow you are triggering.
For example, lets see the MCP workflow we created in the MCP Tool Trigger: Note: Only workflows that have MCP trigger will be available for selection.