update_data_source
Updates the metadata of an existing source (cadence, connectionInfo, extractionLogic). The connectionInfo provided is MERGED key by key into the existing one by default (keys not sent back are kept); connectionInfoMode: 'replace' gives an explicit full replacement. 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 — no silent filtering, nothing is written. A secret is pointed at by REFERENCE only (connectionInfo.env_var or vault_ref): its value is not stored in the schema.
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": "update_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| desc | No | ||
| name | No | ||
| colorKey | No | ||
| sourceType | No | ||
| connectionInfo | No | MERGED into the existing connectionInfo, key by key (update_cell pattern): only the keys provided are written, the others stay. `connectionInfoMode: 'replace'` REPLACES the old one ENTIRELY (keys not sent back are lost). | |
| refreshCadence | No | ||
| extractionLogic | No | ||
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). | |
| connectionInfoMode | No | 'merge' (DEFAULT): the `connectionInfo` provided is merged key by key into the existing one, keys not mentioned are kept. 'replace': the `connectionInfo` provided REPLACES the old one ENTIRELY (any key not sent back is lost) — requires `connectionInfo` (an empty `{}` clears everything). |