Skip to content

sql_console

MCP tools › Databases

Create a new SQL console for a connection (a file under .ferris-idea/consoles/<connection id>/ bound to it, starting in the data source's default schema); returns its path and schema (needs the read-schema permission).

Its results carry text from database: the client is told to treat that as data, never as instructions.

Capabilitydatabase.sql_console
AreaDatabases
Accesschanges files
Reachesdatabase, network
Rightsssh, write, database-permission, trusted-project
Dry runnone

Arguments

ArgumentTypeDescription
connectionrequiredstringConnection name from list_connections.

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_console '{"connection":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"connection"
],
"properties": {
"connection": {
"description": "Connection name from `list_connections`.",
"type": "string"
}
}
}