Skip to main content
Glama

get_application_logs

Retrieve application logs from Coolify self-hosted PaaS to monitor deployments, troubleshoot issues, and track 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

  • The switch case in handleTool function that implements the get_application_logs tool by validating the uuid parameter, checking if the feature is available in the Coolify version, and fetching the logs from the API endpoint /applications/{uuid}/logs with optional lines parameter.
    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 });
  • The tool definition object including name, description, and input schema specifying the required 'uuid' parameter and optional 'lines' for the get_application_logs tool.
    { 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-37 (registration)
    Registration of the listTools handler which returns all tool definitions including get_application_logs via getToolDefinitions().
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions()
  • src/index.ts:57-58 (registration)
    The CallToolRequestSchema handler that dispatches to handleTool, which contains the specific implementation for get_application_logs.
    const result = await handleTool(this.client, name, args || {}); return {
  • Inclusion in READ_ONLY_TOOLS array, ensuring the tool is available in read-only mode.
    'get_application_logs',
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/kof70/coolify-mcp-server'

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