Skip to main content
Glama

stop-application

Stop a specific Coolify application using its UUID to halt operations and make it unavailable for use.

Instructions

Stop a specific application using its UUID. This halts the application and makes it unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesResource UUID

Implementation Reference

  • Handler for the 'stop-application' tool. Parses the UUID from input arguments, calls the Coolify API endpoint `/applications/{uuid}/stop` to stop the application, and returns the JSON result as text content.
    case "stop-application": {
      const { uuid } = UuidSchema.parse(request.params.arguments);
      const result = await coolifyApiCall(`/applications/${uuid}/stop`);
      return {
        content: [{
          type: "text",
          text: JSON.stringify(result, null, 2)
        }]
      };
    }
  • Zod schema used for input validation of the 'stop-application' tool, requiring a 'uuid' string parameter.
    const UuidSchema = z.object({
      uuid: z.string().describe("Resource UUID"),
    });
  • src/index.ts:104-107 (registration)
    Registration of the 'stop-application' tool in the ListTools response, including name, description, and input schema.
      name: "stop-application",
      description: "Stop a specific application using its UUID. This halts the application and makes it unavailable.",
      inputSchema: zodToJsonSchema(UuidSchema),
    },
  • Helper function used by the 'stop-application' handler to make authenticated API calls to the Coolify server.
    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?

With no annotations, the description carries the full burden. It mentions the action ('halts the application and makes it unavailable'), which implies a destructive mutation, but does not disclose behavioral traits such as required permissions, whether the stop is reversible, side effects on related resources, or error handling. This leaves significant gaps for a mutation tool.

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

Conciseness5/5

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

The description is concise and front-loaded, consisting of two sentences that directly state the tool's purpose and effect without unnecessary details. Every sentence contributes essential information, making it efficient and well-structured.

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?

Given the tool's complexity as a destructive mutation with no annotations and no output schema, the description is incomplete. It lacks details on behavioral aspects (e.g., permissions, reversibility), usage context, and expected outcomes, which are critical for safe and effective tool invocation.

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?

The schema description coverage is 100%, with the single parameter 'uuid' documented as 'Resource UUID.' The description adds minimal value by specifying 'using its UUID,' which aligns with the schema but does not provide additional meaning like format examples or constraints beyond what the schema already covers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Stop'), target resource ('a specific application'), and method ('using its UUID'), with the effect 'halts the application and makes it unavailable.' It distinguishes from siblings like 'start-application' and 'restart-application' by specifying the stop action.

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 like 'restart-application' or 'update-application' is provided. The description implies usage for stopping an application but lacks context on prerequisites, exclusions, or comparisons with sibling tools.

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