Skip to main content
Glama

liara_get_logs

Retrieve application logs from Liara cloud platform by specifying app name, time range, and entry limit for monitoring and debugging purposes.

Instructions

Get app logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNameYesThe name of the app
limitNoMaximum number of log entries (optional, default: 100)
sinceNoISO timestamp to fetch logs since (optional)
untilNoISO timestamp to fetch logs until (optional)

Implementation Reference

  • The core handler function that retrieves application logs from the Liara API using the provided appName and optional time range or limit parameters. This is the exact implementation of the liara_get_logs tool logic.
    export async function getAppLogs( client: LiaraClient, appName: string, options?: { limit?: number; since?: string; until?: string; } ): Promise<LogEntry[]> { validateAppName(appName); const params: any = {}; if (options?.limit) { params.limit = options.limit; } if (options?.since) { params.since = options.since; } if (options?.until) { params.until = options.until; } return await client.get<LogEntry[]>( `/v1/projects/${appName}/logs`, params ); }
  • Type definition for the input parameters of the logs tool, matching the options accepted by getAppLogs.
    export interface LogsRequest { since?: string; until?: string; limit?: number; follow?: boolean; }
  • Supporting function for streaming logs, which currently delegates to getAppLogs for recent logs.
    export async function streamAppLogs( client: LiaraClient, appName: string ): Promise<LogEntry[]> { validateAppName(appName); // For now, return recent logs // WebSocket streaming would require separate implementation return await getAppLogs(client, appName, { limit: 100 }); }
  • Type definition for individual log entry returned by the logs tool.
    export interface LogEntry { timestamp: string; message: string; level?: 'info' | 'warn' | 'error' | 'debug'; source?: string; }

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