Skip to main content
Glama

update-application

Modify application settings including health checks, domains, and monitoring configurations to adjust behavior and performance.

Instructions

Update the settings of a specific application, such as health check configurations. This allows you to modify the application's behavior and monitoring settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesResource UUID
settingsYes

Implementation Reference

  • Handler for the 'update-application' tool. Parses UUID and settings from arguments, makes a PATCH request to the Coolify API endpoint `/applications/{uuid}` with the settings, and returns the JSON response.
    case "update-application": {
      const { uuid, settings } = request.params.arguments as { uuid: string; settings: any };
      const result = await coolifyApiCall(`/applications/${uuid}`, 'PATCH', settings);
      return {
        content: [{
          type: "text",
          text: JSON.stringify(result, null, 2)
        }]
      };
    }
  • Zod schema defining the updateable settings for an application, including various health check configurations and basic metadata like name, description, and domains.
    const ApplicationUpdateSchema = z.object({
      health_check_enabled: z.boolean().optional(),
      health_check_path: z.string().optional(),
      health_check_port: z.string().nullable().optional(),
      health_check_host: z.string().nullable().optional(),
      health_check_method: z.string().optional(),
      health_check_return_code: z.number().optional(),
      health_check_scheme: z.string().optional(),
      health_check_response_text: z.string().nullable().optional(),
      health_check_interval: z.number().optional(),
      health_check_timeout: z.number().optional(),
      health_check_retries: z.number().optional(),
      health_check_start_period: z.number().optional(),
      // Add other updateable fields
      name: z.string().optional(),
      description: z.string().optional(),
      domains: z.string().optional(),
    });
  • src/index.ts:133-140 (registration)
    Registration of the 'update-application' tool in the ListTools response, specifying name, description, and input schema (uuid + settings).
    {
      name: "update-application",
      description: "Update the settings of a specific application, such as health check configurations. This allows you to modify the application's behavior and monitoring settings.",
      inputSchema: zodToJsonSchema(z.object({
        uuid: z.string().describe("Resource UUID"),
        settings: ApplicationUpdateSchema
      })),
    },
  • Helper function used by the handler to make authenticated API calls to the Coolify server, handling GET/PATCH/etc. with error management.
    async function coolifyApiCall(endpoint: string, method: string = 'GET', body?: any): Promise<any> {
      const baseUrl = process.env.COOLIFY_BASE_URL?.replace(/\/$/, '') || 'https://coolify.stuartmason.co.uk';
      const url = `${baseUrl}/api/v1${endpoint}`;
    
      const response = await fetch(url, {
        method,
        headers: {
          'Authorization': `Bearer ${process.env.COOLIFY_ACCESS_TOKEN}`,
          'Content-Type': 'application/json',
        },
        body: body ? JSON.stringify(body) : undefined,
      });
    
      if (!response.ok) {
        const errorBody = await response.json().catch(() => ({}));
        throw new Error(JSON.stringify({
          error: `Coolify API error: ${response.status} ${response.statusText}`,
          status: response.status,
          details: errorBody
        }));
      }
    
      return await response.json();
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions modifying behavior and monitoring settings but lacks critical behavioral details: whether this requires admin permissions, if changes are immediate or require redeploy, what happens to unspecified settings (partial vs. full updates), or error handling for invalid inputs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with core purpose. The second sentence adds useful context about behavior and monitoring. No redundant information, though it could be slightly more structured (e.g., bullet points for key settings).

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 mutation tool with no annotations, no output schema, and complex nested parameters, the description is insufficient. It lacks details on permissions, side effects, response format, and error conditions, leaving significant gaps for an AI agent to use it correctly.

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 50% (only 'uuid' has a description). The description adds context by specifying 'health check configurations' and 'monitoring settings', which helps interpret the 'settings' object parameters. However, it doesn't explain parameter formats (e.g., what 'health_check_scheme' expects) or constraints beyond the schema.

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 ('Update') and resource ('settings of a specific application'), with specific examples ('health check configurations'). It distinguishes from siblings like get-application (read) and restart/start/stop-application (state changes), though not explicitly named.

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?

No explicit guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing the application UUID from get-application or list-applications), nor does it clarify if this is for configuration versus operational changes like restart-application.

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

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