Skip to content

list_tables

MCP tools › Databases

List the tables and views of a connection's current schema, or of another schema from list_schemas. A SQLite view that cannot be read (it names a dropped table or column) has unreadable with the database's message (needs the read-schema permission).

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

Capabilitydatabase.list_tables
AreaDatabases
Accessreads only
Reachesdatabase, network
Rightsssh, database-permission, trusted-project
Dry runnone

Arguments

ArgumentTypeDescription
connectionrequiredstringConnection name from list_connections.
schemastringSchema from list_schemas (default: the current schema).

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 list_tables '{"connection":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"connection"
],
"properties": {
"connection": {
"description": "Connection name from `list_connections`.",
"type": "string"
},
"schema": {
"description": "Schema from `list_schemas` (default: the current schema).",
"type": [
"string",
"null"
],
"default": null
}
}
}