create_source
Create an enabled SDK/event-stream or webhook source (for example JavaScript, HTTP, Node, Android (Kotlin), iOS (Swift), or a webhook such as Shopify) in the workspace. Returns the source id, name, type (display name), definition (definition name) and write key, which the user's SDK or webhook needs to send events. The source is created with an empty configuration, so some sources still need setup in the RudderStack app afterwards. Cloud, Singer and warehouse (Reverse ETL) sources require the app's setup flow: send the user to the Add Source page for those. Each call creates a source: confirm the type and name with the user first. Never retry after a name conflict: an earlier call may have created it, so look for it with list_sources, and otherwise ask the user for another 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": {
"name": "<name>",
"source_definition": "<source_definition>",
"workspace_id": "<workspace_id>"
},
"name": "create_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Source name, unique in the workspace: 2 to 100 letters, digits, spaces, '_', '.' or '-' | |
| workspace_id | Yes | ||
| source_definition | Yes | Source type: a definition id, name or display name from get_source_definitions, such as "Javascript", "HTTP" or "Android (Kotlin)". Case-insensitive. "Android" and "iOS" mean the current Android (Kotlin) and iOS (Swift) SDKs; "Android (Java)" and "iOS (Obj-C)" select the legacy ones |