Skip to main content
Glama

liara_list_disks

Retrieve a list of disks associated with a specific application to manage storage resources and monitor usage.

Instructions

List disks for an app

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNameYesThe name of the app
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

  • Handler function that lists disks for a given Liara app/project by fetching project details via API and applying optional pagination client-side. This implements the core logic for the 'liara_list_disks' MCP tool.
    export async function listDisks(
        client: LiaraClient,
        appName: string,
        pagination?: PaginationOptions
    ): Promise<Disk[]> {
        validateAppName(appName);
        // Disks are included in project details, but we can still apply pagination client-side if needed
        const project = await client.get<any>(`/v1/projects/${appName}`);
        const disks = project.disks || [];
        
        // Apply client-side pagination if needed (since disks come from project details)
        if (pagination) {
            const page = pagination.page || 1;
            const perPage = pagination.perPage || pagination.limit || 100;
            const start = (page - 1) * perPage;
            const end = start + perPage;
            return disks.slice(start, end);
        }
        
        return disks;
    }
  • Type definitions for Disk (output) and CreateDiskRequest (related input schema). PaginationOptions imported and used for input schema.
    export interface Disk {
        _id: string;
        name: string;
        projectID: string;
        size: number; // in GB
        mountPath: string;
        createdAt: string;
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. 'List disks' implies a read-only operation, but the description doesn't mention pagination behavior (despite the schema having pagination parameters), authentication requirements, rate limits, or what format the list returns. This leaves significant gaps for a tool with 5 parameters.

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 extremely concise at just 4 words, front-loading the essential information with zero wasted words. Every word earns its place in conveying the core functionality.

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?

For a tool with 5 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain the pagination system (page/perPage vs limit/offset alternatives), doesn't describe the return format, and provides no behavioral context. The 100% schema coverage helps but doesn't compensate for the missing behavioral information.

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?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds no additional parameter information beyond what's in the schema, meeting the baseline expectation but not providing extra value.

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 action ('List') and resource ('disks for an app'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'liara_get_disk' or 'liara_list_apps' which might have overlapping functionality, keeping it from 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. There's no mention of prerequisites, when this tool is appropriate compared to 'liara_get_disk' (which might retrieve a specific disk), or any contextual usage information.

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