Connect a source
add_sourceConnect a SQLite, CSV, Excel, PostgreSQL, or MySQL source with a name for read-only querying; user-entered passwords go to the keychain, never the chat.
Instructions
Connect a source; adding a name again replaces it. The file kinds take path, the file's location, and are added only once the user says yes themselves (Portward asks them): 'sqlite' a SQLite file, 'csv' a CSV file (one table named after the file), 'excel' an .xlsx workbook (one table per sheet). 'postgres' and 'mysql' take host, port, database and user, never a password: the user types the password themselves where you can't see it, and it goes straight to the computer's keychain. Never ask for a password or connection string in the chat.
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>",
"kind": "<kind>"
},
"name": "add_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| kind | Yes | ||
| name | Yes | ||
| path | No | ||
| port | No | ||
| user | No | ||
| database | No |