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.
| Capability | database.sql_console |
|---|---|
| Area | Databases |
| Access | changes files |
| Reaches | database, network |
| Rights | ssh, write, database-permission, trusted-project |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
connectionrequired | string | Connection 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.
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" } }}