sql_file_data_source
MCP tools › Databases
Report or set the connection a .sql file runs against: consoles belong to their connection, other files can be bound (kept in .ferris-idea/sql-files.toml). Omit connection to read, pass an empty string to remove the binding.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | database.sql_file_data_source |
|---|---|
| Area | Databases |
| Access | changes files |
| Reaches | — |
| Rights | write, trusted-project |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | .sql file, relative to the workspace. |
connection | string | Connection name to bind the file to; omitted: only report the binding; empty: remove it. |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project sql_file_data_source '{"path":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "path" ], "properties": { "path": { "description": "`.sql` file, relative to the workspace.", "type": "string" }, "connection": { "description": "Connection name to bind the file to; omitted: only report the binding; empty: remove it.", "type": [ "string", "null" ], "default": null } }}