Skip to main content
Glama

get_environment

Retrieve environment details for a specific project in Coolify, including configuration and deployment information.

Instructions

Get environment details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_uuidYesProject UUID
environment_name_or_uuidYesEnvironment name or UUID

Implementation Reference

  • The switch case handler for the 'get_environment' tool within the handleTool function. It validates required parameters and makes a GET request to the Coolify API to retrieve environment details using the provided project_uuid and environment_name_or_uuid.
    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: project_uuid and environment_name_or_uuid.
    { 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 tool list registration in the MCP server, which includes the get_environment tool via getToolDefinitions() that sources from definitions.ts.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions()
  • The get_environment tool is listed in the READ_ONLY_TOOLS array, indicating it is a read-only operation available even in read-only mode.
    'get_environment',
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