{
  "service": "kommo",
  "displayName": "Kommo",
  "categories": [
    "Marketing",
    "Productivity"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "Long-lived Token",
      "placeholder": "KOMMO_LONG_LIVED_TOKEN",
      "description": "Kommo long-lived token used as a Bearer token for a private integration. Create a private integration and generate the token from its Keys and scopes tab: https://developers.kommo.com/docs/long-lived-token.",
      "extraFields": [
        {
          "key": "subdomain",
          "label": "Subdomain",
          "inputType": "text",
          "required": true,
          "secret": false,
          "placeholder": "acme",
          "description": "Your Kommo account subdomain used to build https://<subdomain>.kommo.com requests. You can enter the subdomain or full account URL; private integration setup is documented at https://developers.kommo.com/docs/private-integration."
        }
      ]
    }
  ],
  "homepageUrl": "https://www.kommo.com/",
  "actions": [
    {
      "id": "kommo.get_account",
      "service": "kommo",
      "name": "get_account",
      "description": "Get Kommo account information for the connected account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for reading Kommo data with optional includes."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "account": {
            "type": "object",
            "properties": {
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Kommo."
              },
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo account identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Kommo account name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "subdomain": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Kommo account subdomain."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_user_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The current Kommo user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "language": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account language."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account country."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account currency code."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "currency_symbol": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account currency symbol."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "required": [
              "raw"
            ],
            "description": "A Kommo account."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo account response."
      }
    },
    {
      "id": "kommo.get_company",
      "service": "kommo",
      "name": "get_company",
      "description": "Get one Kommo company by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          },
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for reading one Kommo record."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "company": {
            "type": "object",
            "properties": {
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Kommo."
              },
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo company identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The company name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responsible_user_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The responsible Kommo user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "group_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The responsible user group identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that created the company."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that last updated the company."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The company creation Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The company update Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "closest_task_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The closest task Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "required": [
              "raw"
            ],
            "description": "A Kommo company."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo company response."
      }
    },
    {
      "id": "kommo.get_contact",
      "service": "kommo",
      "name": "get_contact",
      "description": "Get one Kommo contact by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          },
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for reading one Kommo record."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "contact": {
            "type": "object",
            "properties": {
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Kommo."
              },
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo contact identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The contact display name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "first_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The contact first name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The contact last name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responsible_user_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The responsible Kommo user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "group_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The responsible user group identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that created the contact."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that last updated the contact."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The contact creation Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The contact update Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "closest_task_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The closest task Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "required": [
              "raw"
            ],
            "description": "A Kommo contact."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo contact response."
      }
    },
    {
      "id": "kommo.get_lead",
      "service": "kommo",
      "name": "get_lead",
      "description": "Get one Kommo lead by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          },
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for reading one Kommo record."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "lead": {
            "type": "object",
            "properties": {
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Kommo."
              },
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo lead identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The lead name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "price": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The lead sale value."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responsible_user_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The responsible Kommo user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "group_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The responsible user group identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The lead stage identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pipeline_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The lead pipeline identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "loss_reason_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The lead loss reason identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that created the lead."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that last updated the lead."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The lead creation Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The lead update Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "closed_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The lead close Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "closest_task_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The closest task Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "required": [
              "raw"
            ],
            "description": "A Kommo lead."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo lead response."
      }
    },
    {
      "id": "kommo.get_pipeline",
      "service": "kommo",
      "name": "get_pipeline",
      "description": "Get one Kommo lead pipeline by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for reading one Kommo record by ID."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "pipeline": {
            "type": "object",
            "properties": {
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Kommo."
              },
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo pipeline identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The pipeline name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sort": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The pipeline sort order."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_main": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether this is the main pipeline."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_unsorted_on": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether unsorted leads are enabled."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_archive": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the pipeline is archived."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "statuses": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "One Kommo pipeline status."
                    },
                    "description": "Pipeline statuses returned by Kommo."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "required": [
              "raw"
            ],
            "description": "A Kommo leads pipeline."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo pipeline response."
      }
    },
    {
      "id": "kommo.get_task",
      "service": "kommo",
      "name": "get_task",
      "description": "Get one Kommo task by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for reading one Kommo record by ID."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "task": {
            "type": "object",
            "properties": {
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Kommo."
              },
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo task identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The task text."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_completed": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the task is completed."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "task_type_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo task type identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "entity_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The linked entity identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "entity_type": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The linked entity type."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responsible_user_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The responsible Kommo user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that created the task."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_by": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The user identifier that last updated the task."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The task creation Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The task update Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "complete_till": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The task due Unix timestamp."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "The task result object."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "required": [
              "raw"
            ],
            "description": "A Kommo task."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo task response."
      }
    },
    {
      "id": "kommo.get_user",
      "service": "kommo",
      "name": "get_user",
      "description": "Get one Kommo user by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          },
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for reading one Kommo record."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Kommo."
              },
              "id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The Kommo user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The user display name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The user email address."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lang": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The user language."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_active": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the user is active."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_admin": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the user is an administrator."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "required": [
              "raw"
            ],
            "description": "A Kommo user."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo user response."
      }
    },
    {
      "id": "kommo.list_companies",
      "service": "kommo",
      "name": "list_companies",
      "description": "List companies from the connected Kommo account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The 1-based Kommo result page to fetch."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 250,
            "description": "The number of Kommo records to fetch per request."
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search text forwarded to Kommo."
          },
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          },
          "orderUpdatedAt": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "orderId": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "names": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "One Kommo name."
            },
            "description": "One or more Kommo names to filter by.",
            "minItems": 1
          },
          "createdByIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "updatedByIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "responsibleUserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "updatedAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "updatedAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closestTaskAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closestTaskAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "createdAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "createdAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kommo companies."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "companies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kommo."
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The Kommo company identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The company name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "responsible_user_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The responsible Kommo user identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "group_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The responsible user group identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that created the company."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that last updated the company."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The company creation Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The company update Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "closest_task_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The closest task Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "required": [
                "raw"
              ],
              "description": "A Kommo company."
            },
            "description": "Kommo companies returned by the request."
          },
          "page": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The current Kommo response page."
              },
              {
                "type": "null"
              }
            ]
          },
          "pageCount": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo response pages."
              },
              {
                "type": "null"
              }
            ]
          },
          "totalItems": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo items in the response."
              },
              {
                "type": "null"
              }
            ]
          },
          "links": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "HAL links returned by Kommo."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo companies list response."
      }
    },
    {
      "id": "kommo.list_contacts",
      "service": "kommo",
      "name": "list_contacts",
      "description": "List contacts from the connected Kommo account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The 1-based Kommo result page to fetch."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 250,
            "description": "The number of Kommo records to fetch per request."
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search text forwarded to Kommo."
          },
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          },
          "orderUpdatedAt": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "orderId": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "names": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "One Kommo name."
            },
            "description": "One or more Kommo names to filter by.",
            "minItems": 1
          },
          "createdByIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "updatedByIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "responsibleUserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "updatedAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "updatedAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closestTaskAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closestTaskAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kommo contacts."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kommo."
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The Kommo contact identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The contact display name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "first_name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The contact first name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "last_name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The contact last name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "responsible_user_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The responsible Kommo user identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "group_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The responsible user group identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that created the contact."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that last updated the contact."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The contact creation Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The contact update Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "closest_task_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The closest task Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "required": [
                "raw"
              ],
              "description": "A Kommo contact."
            },
            "description": "Kommo contacts returned by the request."
          },
          "page": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The current Kommo response page."
              },
              {
                "type": "null"
              }
            ]
          },
          "pageCount": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo response pages."
              },
              {
                "type": "null"
              }
            ]
          },
          "totalItems": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo items in the response."
              },
              {
                "type": "null"
              }
            ]
          },
          "links": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "HAL links returned by Kommo."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo contacts list response."
      }
    },
    {
      "id": "kommo.list_leads",
      "service": "kommo",
      "name": "list_leads",
      "description": "List leads from the connected Kommo account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The 1-based Kommo result page to fetch."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 250,
            "description": "The number of Kommo records to fetch per request."
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search text forwarded to Kommo."
          },
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          },
          "orderUpdatedAt": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "orderId": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "names": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "One Kommo name."
            },
            "description": "One or more Kommo names to filter by.",
            "minItems": 1
          },
          "createdByIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "updatedByIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "responsibleUserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "updatedAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "updatedAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closestTaskAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closestTaskAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "orderCreatedAt": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "price": {
            "type": "integer",
            "description": "The exact lead sale value to filter by."
          },
          "createdAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "createdAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closedAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "closedAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "pipelineIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "statusPipelineId": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          },
          "statusId": {
            "type": "integer",
            "minimum": 1,
            "description": "The Kommo numeric identifier."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kommo leads."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "leads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kommo."
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The Kommo lead identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The lead name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "price": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The lead sale value."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "responsible_user_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The responsible Kommo user identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "group_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The responsible user group identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The lead stage identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "pipeline_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The lead pipeline identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "loss_reason_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The lead loss reason identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that created the lead."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that last updated the lead."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The lead creation Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The lead update Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "closed_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The lead close Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "closest_task_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The closest task Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "required": [
                "raw"
              ],
              "description": "A Kommo lead."
            },
            "description": "Kommo leads returned by the request."
          },
          "page": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The current Kommo response page."
              },
              {
                "type": "null"
              }
            ]
          },
          "pageCount": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo response pages."
              },
              {
                "type": "null"
              }
            ]
          },
          "totalItems": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo items in the response."
              },
              {
                "type": "null"
              }
            ]
          },
          "links": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "HAL links returned by Kommo."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo leads list response."
      }
    },
    {
      "id": "kommo.list_pipelines",
      "service": "kommo",
      "name": "list_pipelines",
      "description": "List lead pipelines from the connected Kommo account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "The input payload for listing Kommo pipelines."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "pipelines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kommo."
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The Kommo pipeline identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The pipeline name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sort": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The pipeline sort order."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_main": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether this is the main pipeline."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_unsorted_on": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether unsorted leads are enabled."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_archive": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the pipeline is archived."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "statuses": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "One Kommo pipeline status."
                      },
                      "description": "Pipeline statuses returned by Kommo."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "required": [
                "raw"
              ],
              "description": "A Kommo leads pipeline."
            },
            "description": "Kommo pipelines returned by the request."
          },
          "page": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The current Kommo response page."
              },
              {
                "type": "null"
              }
            ]
          },
          "pageCount": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo response pages."
              },
              {
                "type": "null"
              }
            ]
          },
          "totalItems": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo items in the response."
              },
              {
                "type": "null"
              }
            ]
          },
          "links": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "HAL links returned by Kommo."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo pipelines list response."
      }
    },
    {
      "id": "kommo.list_tasks",
      "service": "kommo",
      "name": "list_tasks",
      "description": "List tasks from the connected Kommo account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The 1-based Kommo result page to fetch."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 250,
            "description": "The number of Kommo records to fetch per request."
          },
          "responsibleUserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "isCompleted": {
            "type": "boolean",
            "description": "Whether to filter completed tasks."
          },
          "taskTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "entityType": {
            "type": "string",
            "enum": [
              "leads",
              "contacts",
              "companies"
            ],
            "description": "The linked entity type to filter by."
          },
          "entityIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "The Kommo numeric identifier."
            },
            "description": "One or more Kommo numeric identifiers.",
            "minItems": 1
          },
          "updatedAt": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "updatedAtFrom": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "updatedAtTo": {
            "type": "integer",
            "minimum": 0,
            "description": "A Unix timestamp in seconds."
          },
          "orderCompleteTill": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "orderCreatedAt": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          },
          "orderId": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The Kommo sort direction."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kommo tasks."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "tasks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kommo."
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The Kommo task identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "text": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The task text."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_completed": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the task is completed."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "task_type_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The Kommo task type identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "entity_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The linked entity identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "entity_type": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The linked entity type."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "responsible_user_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The responsible Kommo user identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that created the task."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_by": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The user identifier that last updated the task."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The task creation Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_at": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The task update Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "complete_till": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The task due Unix timestamp."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "result": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "The task result object."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "required": [
                "raw"
              ],
              "description": "A Kommo task."
            },
            "description": "Kommo tasks returned by the request."
          },
          "page": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The current Kommo response page."
              },
              {
                "type": "null"
              }
            ]
          },
          "pageCount": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo response pages."
              },
              {
                "type": "null"
              }
            ]
          },
          "totalItems": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo items in the response."
              },
              {
                "type": "null"
              }
            ]
          },
          "links": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "HAL links returned by Kommo."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo tasks list response."
      }
    },
    {
      "id": "kommo.list_users",
      "service": "kommo",
      "name": "list_users",
      "description": "List users from the connected Kommo account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "with": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated Kommo with parameters to include."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The 1-based Kommo result page to fetch."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 250,
            "description": "The number of Kommo records to fetch per request."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kommo users."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kommo."
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The Kommo user identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The user display name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The user email address."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lang": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The user language."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_active": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the user is active."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_admin": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the user is an administrator."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "required": [
                "raw"
              ],
              "description": "A Kommo user."
            },
            "description": "Kommo users returned by the request."
          },
          "page": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The current Kommo response page."
              },
              {
                "type": "null"
              }
            ]
          },
          "pageCount": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo response pages."
              },
              {
                "type": "null"
              }
            ]
          },
          "totalItems": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of Kommo items in the response."
              },
              {
                "type": "null"
              }
            ]
          },
          "links": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "HAL links returned by Kommo."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Kommo."
          }
        },
        "additionalProperties": false,
        "description": "The Kommo users list response."
      }
    }
  ]
}
