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';
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'List' implies a read-only operation, the description doesn't clarify whether this requires specific permissions, if it's rate-limited, what the return format looks like (e.g., JSON array of database objects), or if there are any side effects. For a tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without any fluff. It's front-loaded with the core action ('List all databases'), making it immediately scannable. Every word earns its place, and there's no redundancy or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (a list operation with pagination parameters), lack of annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the output contains (e.g., database metadata fields), how pagination works in practice, or any error conditions. For a tool that returns a list of resources, more contextual information is needed to guide effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with all four parameters ('page', 'perPage', 'limit', 'offset') well-documented in the schema itself. The description adds no parameter-specific information beyond what the schema provides. According to the rules, when schema_description_coverage is high (>80%), the baseline score is 3 even with no param info in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('List') and resource ('all databases in your Liara account'), making the purpose immediately understandable. It distinguishes itself from sibling tools like 'liara_get_database' (singular retrieval) and 'liara_create_database' (creation). However, it doesn't specify the scope beyond 'all databases' (e.g., whether it includes deleted or archived ones), preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when pagination parameters should be used, how this differs from 'liara_get_database' for single database retrieval, or any prerequisites (e.g., authentication requirements). The agent must infer usage from the tool name and context alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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