Skip to main content
Glama

system

Manage Coolify deployments by performing operations such as checking version, monitoring health, enabling/disabling APIs, and reviewing resource status through a CLI or programmatic interface.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesOperation to perform

Implementation Reference

  • Core handler function implementing the 'system' tool logic. Dispatches the 'operation' parameter to underlying API functions (version, healthcheck, etc.) wrapped in safeApiCall.
    export async function systemHandler(args: SystemToolArgs) { const { operation } = args; switch (operation) { case 'version': return await safeApiCall(() => version()); case 'health': return await safeApiCall(() => healthcheck()); case 'enable_api': return await safeApiCall(() => enableApi()); case 'disable_api': return await safeApiCall(() => disableApi()); case 'resources': return await safeApiCall(() => listResources()); default: throw new Error(`Unknown operation: ${operation}`); } }
  • MCP server registration of the 'system' tool, including Zod input schema validation for the 'operation' parameter and a wrapper handler that invokes the core systemHandler.
    // Register system tool with proper Zod schema format server.tool( 'system', { operation: z.enum([ 'version', 'health', 'enable_api', 'disable_api', 'resources' ]).describe("Operation to perform") }, async ({ operation }) => { try { console.error('System tool received args:', JSON.stringify({ operation }, null, 2)); const result = await systemHandler({ operation }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );
  • Zod schema defining the input for the 'system' tool: requires 'operation' enum matching supported system operations.
    { operation: z.enum([ 'version', 'health', 'enable_api', 'disable_api', 'resources' ]).describe("Operation to perform") },

Other Tools

Related 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/FelixAllistar/coolify-mcp'

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