create_batch
Create an LMS batch (cohort) with title, dates, times, instructor, courses, pricing, and enrollment settings.
Instructions
Create an LMS Batch (cohort).
Args: title: Batch title. start_date: Start date (YYYY-MM-DD). end_date: End date (YYYY-MM-DD). start_time: Start time (HH:MM:SS). end_time: End time (HH:MM:SS). timezone: Timezone, e.g. "Asia/Jakarta". description: Short description. batch_details: Full HTML details. instructor: Instructor User email/ID. courses: JSON list of course names to include, e.g. '["course-1","course-2"]'. published: Whether the batch is published. allow_self_enrollment: Allow students to self-enroll. seat_count: Number of seats (0 = unlimited). medium: "Online" or "Offline". paid_batch: Whether this is a paid batch. amount: Price amount (required if paid_batch). currency: Currency code (required if paid_batch). category: Category name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"start_date": "<start_date>",
"end_date": "<end_date>",
"start_time": "<start_time>",
"end_time": "<end_time>",
"timezone": "<timezone>",
"description": "<description>",
"batch_details": "<batch_details>",
"instructor": "<instructor>"
},
"name": "create_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| amount | No | ||
| medium | No | Online | |
| courses | No | ||
| category | No | ||
| currency | No | ||
| end_date | Yes | ||
| end_time | Yes | ||
| timezone | Yes | ||
| published | No | ||
| instructor | Yes | ||
| paid_batch | No | ||
| seat_count | No | ||
| start_date | Yes | ||
| start_time | Yes | ||
| description | Yes | ||
| batch_details | Yes | ||
| allow_self_enrollment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |