Skip to main content
Glama

create_egg_variable

Add environment variables to game server eggs in Pterodactyl panels. Define custom settings like ports, configurations, and server parameters with validation rules for admin control.

Instructions

Add a new environment variable to an egg (admin action). The 'rules' field uses Laravel validation syntax (e.g., 'required|string|max:20'). Use list_nests and list_eggs to find the nest_id and egg_id. Requires Application API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nest_idYesNest ID that contains the egg (from list_nests)
egg_idYesEgg ID to add the variable to (from list_eggs)
nameYesDisplay name for the variable (e.g. 'Server Port')
descriptionYesDescription of what this variable controls
env_variableYesEnvironment variable key (e.g. 'SERVER_PORT')
default_valueYesDefault value for the variable (e.g. '25565')
user_viewableYesWhether users can see this variable in the panel
user_editableYesWhether users can modify this variable in the panel
rulesYesLaravel validation rules (e.g. 'required|string|max:20', 'required|integer|between:1,65535')

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/zefarie/pterodactyl-mcp'

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