Skip to main content
Glama

get_application_logs

Retrieve application logs from Coolify self-hosted PaaS to monitor deployments, troubleshoot issues, and analyze performance by specifying the application UUID and desired line count.

Instructions

Get application logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesApplication UUID
linesNoNumber of lines (default: 100)

Implementation Reference

  • Handler implementation for the get_application_logs tool. Validates input, checks feature availability, and fetches logs from the Coolify API endpoint /applications/{uuid}/logs.
    case 'get_application_logs': requireParam(args, 'uuid'); if (!client.isFeatureAvailable('application_logs')) { return { error: 'Application logs not available in this Coolify version (requires beta.380+)' }; } return client.get(`/applications/${args.uuid}/logs`, { lines: args.lines || 100 });
  • Schema definition for the get_application_logs tool, defining input parameters: required uuid (string) and optional lines (number, default 100).
    { name: 'get_application_logs', description: 'Get application logs', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, lines: { type: 'number', description: 'Number of lines (default: 100)', default: 100 } }, required: ['uuid'] }
  • src/index.ts:36-38 (registration)
    Registration of all tools including get_application_logs via getToolDefinitions() in the MCP server's ListToolsRequestHandler.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
  • src/index.ts:57-67 (registration)
    Tool execution handler in MCP server that dispatches to handleTool based on tool name, executing get_application_logs when requested.
    const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { if (error instanceof McpError) throw error; const message = error instanceof Error ? error.message : 'Unknown error'; throw new McpError(ErrorCode.InternalError, `Tool execution failed: ${message}`); } });
  • Inclusion of get_application_logs in READ_ONLY_TOOLS array, making it available in read-only mode.
    'get_application_logs',

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/kof70/coolify-mcp-server'

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