schema_objects
MCP tools › Databases
The kinds of objects a schema of a connection can hold, each with its count, and its objects besides tables and views: sequences, functions, procedures and aggregates (PostgreSQL with their arguments, so overloads differ), triggers with their table and when they fire, and types (enum, domain, range, composite) — PostgreSQL; functions, procedures and triggers on MySQL, also sequences on MariaDB; triggers on SQLite; sequences on DuckDB, Oracle and SQL Server. Tables and views are counted here and listed by list_tables. With schema another schema from list_schemas, with kind only that kind. Reads the catalogue only, nothing is changed (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.schema_objects |
|---|---|
| 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. |
schema | string | Schema from list_schemas (default: the current schema). |
kind | string | Only objects of this kind, one of the kinds the answer names (e.g. function). |
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 schema_objects '{"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 }, "kind": { "description": "Only objects of this kind, one of the `kinds` the answer names (e.g. `function`).", "type": [ "string", "null" ], "default": null } }}