Skip to content

describe_table

MCP tools › Databases

Describe a table or view: columns (type, nullable, default), primary key, foreign keys and indexes, in the current schema or one from list_schemas. Dialect extras where available: partial-index condition, collations, orders, prefixes, identity and generated columns, comment; an unreadable SQLite view has unreadable. Unknown schemas are refused. Needs the read-schema permission.

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

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

Arguments

ArgumentTypeDescription
connectionrequiredstringConnection name from list_connections.
tablerequiredstringTable or view name.
schemastringSchema from list_schemas, such as an attached SQLite database (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 describe_table '{"connection":"<string>","table":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"connection",
"table"
],
"properties": {
"connection": {
"description": "Connection name from `list_connections`.",
"type": "string"
},
"table": {
"description": "Table or view name.",
"type": "string"
},
"schema": {
"description": "Schema from `list_schemas`, such as an attached SQLite database (default: the current\nschema).",
"type": [
"string",
"null"
],
"default": null
}
}
}