Skip to main content
Glama

liara_list_databases

Retrieve a list of all databases in your Liara cloud account to manage and monitor your data storage resources.

Instructions

List all databases in your Liara account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
perPageNoNumber of items per page
limitNoAlternative to perPage: maximum number of items to return
offsetNoAlternative to page: number of items to skip

Implementation Reference

  • The `listDatabases` function serves as the core handler for the liara_list_databases tool. It makes an API call to Liara's /v1/databases endpoint and unwraps the response to return an array of Database objects.
    /** * List all databases */ export async function listDatabases(client: LiaraClient): Promise<Database[]> { const response = await client.get<any>('/v1/databases'); return unwrapApiResponse<Database[]>(response, ['databases', 'data', 'items']); }
  • Type definition for Database objects returned by the liara_list_databases tool.
    export interface Database { _id: string; name: string; type: DatabaseType; planID: string; status: DatabaseStatus; version?: string; createdAt: string; updatedAt: string; }
  • DatabaseType enum used in Database objects from liara_list_databases.
    export type DatabaseType = | 'mariadb' | 'mysql' | 'postgres' | 'mssql' | 'mongodb' | 'redis' | 'elasticsearch' | 'rabbitmq';
  • DatabaseStatus enum used in Database objects from liara_list_databases.
    export type DatabaseStatus = 'RUNNING' | 'STOPPED' | 'CREATING' | 'FAILED';
  • Imports helper functions used by the handler, including unwrapApiResponse which processes the API response.
    import { validateRequired, unwrapApiResponse } from '../utils/errors.js';
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/razavioo/liara-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server