Skip to Content

create_client

Add a client to the workspace.

asks firstChanges something in your workspace, so clients ask you before running it.

What it does

Add a client to the workspace. Returns the new client as get_client does. The email must not belong to another live client (409: use search_clients and update that one instead). With no owner_user_id, you own it when you are a workspace member; a client made with an API key has no owner. fields sets custom values by field id (see list_client_fields). When the person comes from a CRM search hit, pass crm_record so the new client is linked to that GlobalyOS or Agentcis record. Past documents sent to the email join the client. Masked values (•••123) can't be sent back: ask the person for the full number.

Inputs

NameTypeDescription
namerequiredstringUp to 200 characters
emailstring | nullUp to 254 characters
phonestring | nullUp to 40 characters
company_idstring | nullAn existing company's id (from a client's company.id).
notesstringUp to 10000 characters
owner_user_idstring | nullA workspace member's user id; default you.
fieldsobjectCustom values by field id: { "<field id>": value } (types in list_client_fields).
crm_recordobjectThe CRM record this client is made from.
source_idrequiredstringrecordRef.sourceId from search_clients' crm.results.Up to 200 characters
entityrequiredstringrecordRef.entity.Up to 100 characters
record_idrequiredstringrecordRef.recordId.Up to 200 characters

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_client",
    "arguments": {
      "name": "<name>"
    }
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 254
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "company_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "An existing company's id (from a client's company.id)."
    },
    "notes": {
      "type": "string",
      "maxLength": 10000
    },
    "owner_user_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "A workspace member's user id; default you."
    },
    "fields": {
      "type": "object",
      "additionalProperties": true,
      "description": "Custom values by field id: { \"<field id>\": value } (types in list_client_fields)."
    },
    "crm_record": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "source_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "recordRef.sourceId from search_clients' crm.results."
        },
        "entity": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100,
          "description": "recordRef.entity."
        },
        "record_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "recordRef.recordId."
        }
      },
      "required": [
        "source_id",
        "entity",
        "record_id"
      ],
      "description": "The CRM record this client is made from."
    }
  },
  "required": [
    "name"
  ]
}

On this page