Skip to content

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.

Capabilitydatabase.sql_file_data_source
AreaDatabases
Accesschanges files
Reaches—
Rightswrite, trusted-project
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstring.sql file, relative to the workspace.
connectionstringConnection 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.

Terminal window
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
}
}
}