add_data_source
Creates a data-source block (kind='data-source') with its metadata (sourceType, refreshCadence, descriptive connectionInfo, no credentials). If connectionInfo contains a key that looks like a credential (password/token/secret/api_key/…), even nested at any depth, or a value that embeds one (user:password@host in an address, a password/token parameter, a private key — extractionLogic included), the WHOLE call is refused with an explicit error naming the offending key — nothing is written. A secret is pointed at by REFERENCE only (connectionInfo.env_var = a variable name, or vault_ref = a vault path): its value is not stored in the schema. Fits when the user mentions an external source (Salesforce, internal database, file, event stream…).
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": {
"id": "<id>",
"name": "<name>"
},
"name": "add_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in pixels. x/y omitted (recommended): automatic placement (column dedicated to sources, same slot as `auto_layout_mcd`), then `auto_layout_mcd` for the final tidy-up. | |
| y | No | Y position in pixels. See x — absent = automatic placement. | |
| id | Yes | Unique kebab-case ID | |
| desc | No | ||
| name | Yes | Display name | |
| width | No | ||
| height | No | ||
| colorKey | No | ||
| sourceType | No | ||
| connectionInfo | No | ||
| refreshCadence | No | ||
| extractionLogic | No | ||
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |