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.
| Capability | database.describe_table |
|---|---|
| Area | Databases |
| Access | reads only |
| Reaches | database, network |
| Rights | ssh, database-permission, trusted-project |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
connectionrequired | string | Connection name from list_connections. |
tablerequired | string | Table or view name. |
schema | string | Schema 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.
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 } }}