list_databases
Retrieve all database names from your Fibery workspace schema to explore available data structures.
Instructions
Get list of all databases (their names) in user's Fibery workspace (schema)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that executes the list_databases tool logic, retrieving and formatting the list of databases from the Fibery workspace schema.async def handle_schema(fibery_client: FiberyClient) -> List[mcp.types.TextContent]: schema: Schema = await fibery_client.get_schema() db_list: List[Database] = schema.include_databases_from_schema() if not db_list: content = "No databases found in this Fibery workspace." else: content = "Databases in Fibery workspace:\n\n" for i, db in enumerate(db_list, 1): content += f"{i}. {db.name}\n" return [mcp.types.TextContent(type="text", text=content)]
- Defines the tool name 'list_databases' and the schema function that returns the MCP Tool object with description and empty input schema.schema_tool_name = "list_databases" def schema_tool() -> mcp.types.Tool: return mcp.types.Tool( name=schema_tool_name, description="Get list of all databases (their names) in user's Fibery workspace (schema)", inputSchema={"type": "object"}, )
- src/fibery_mcp_server/tools/__init__.py:20-21 (registration)Registers the handler by dispatching tool calls to handle_schema when the tool name is 'list_databases'.if name == schema_tool_name: return await handle_schema(fibery_client)
- src/fibery_mcp_server/tools/__init__.py:15-16 (registration)Registers the tool schema by including schema_tool() in the list of available tools returned for MCP list_tools.def handle_list_tools(): return [current_date_tool(), schema_tool(), database_tool(), query_tool(), create_entity_tool(), create_entities_batch_tool(), update_entity_tool()]