Skip to main content
Glama

get_environment

Retrieve environment configuration details from Coolify PaaS for a specific project and environment to manage deployments and operations.

Instructions

Get environment details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_uuidYesProject UUID
environment_name_or_uuidYesEnvironment name or UUID

Implementation Reference

  • The core handler logic for the 'get_environment' tool. Validates the required input parameters (project_uuid and environment_name_or_uuid) and makes a GET request to the Coolify API endpoint `/projects/{project_uuid}/{environment_name_or_uuid}` to fetch the environment details.
    case 'get_environment': requireParam(args, 'project_uuid'); requireParam(args, 'environment_name_or_uuid'); return client.get(`/projects/${args.project_uuid}/${args.environment_name_or_uuid}`);
  • The schema definition for the 'get_environment' tool, including name, description, and inputSchema specifying the required parameters and their types. This is part of the allToolDefinitions array used by MCP to list available tools.
    { name: 'get_environment', description: 'Get environment details', inputSchema: { type: 'object', properties: { project_uuid: { type: 'string', description: 'Project UUID' }, environment_name_or_uuid: { type: 'string', description: 'Environment name or UUID' } }, required: ['project_uuid', 'environment_name_or_uuid'] } },
  • src/index.ts:36-37 (registration)
    The MCP server registers all tools, including 'get_environment', by providing the list from getToolDefinitions() in response to ListToolsRequest. This makes the tool discoverable by MCP clients.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions()
  • src/index.ts:56-57 (registration)
    The MCP server handles tool calls by dispatching to handleTool, which contains the specific case for 'get_environment'. This completes the tool execution path.
    try { const result = await handleTool(this.client, name, args || {});

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