hana_list_schemas
Retrieve all schema names from a HANA Cloud database to view available data structures and organize database objects.
Instructions
List all schemas in the HANA database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/schema-tools.js:13-25 (handler)The handler function that executes the hana_list_schemas tool logic, querying schemas via QueryExecutor and formatting the response.static async listSchemas(args) { logger.tool('hana_list_schemas'); try { const schemas = await QueryExecutor.getSchemas(); const formattedSchemas = Formatters.formatSchemaList(schemas); return Formatters.createResponse(formattedSchemas); } catch (error) { logger.error('Error listing schemas:', error.message); return Formatters.createErrorResponse('Error listing schemas', error.message); } }
- Tool definition including name, description, and input schema for hana_list_schemas.{ name: "hana_list_schemas", description: "List all schemas in the HANA database", inputSchema: { type: "object", properties: {}, required: [] } },
- src/tools/index.js:14-24 (registration)Registration of all tools including hana_list_schemas mapped to SchemaTools.listSchemas in the TOOL_IMPLEMENTATIONS object.const TOOL_IMPLEMENTATIONS = { hana_show_config: ConfigTools.showConfig, hana_test_connection: ConfigTools.testConnection, hana_show_env_vars: ConfigTools.showEnvVars, hana_list_schemas: SchemaTools.listSchemas, hana_list_tables: TableTools.listTables, hana_describe_table: TableTools.describeTable, hana_list_indexes: IndexTools.listIndexes, hana_describe_index: IndexTools.describeIndex, hana_execute_query: QueryTools.executeQuery };