Skip to main content
Glama

create_resource

Create a new Coolify resource: application, database, or service, with configurable source, engine, or service type.

Instructions

Create a new Coolify resource. kind discriminates: application (with source sub-discriminator), database (with engine), or service (with service_type XOR docker_compose_raw base64). FENCED: requires --allow-destructive and confirm:true (code/credential write).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesThe type of resource to create.
nameNoName for the new resource.
engineNoRequired when kind=database.
fieldsNoAdditional create-body fields (e.g. ports_exposes, domains, base_directory, destination_uuid), sent verbatim as the request body — any field the Coolify endpoint accepts is allowed.
sourceNoRequired when kind=application. Determines which Coolify endpoint is called.
confirmNoMust be true to confirm resource creation (destructive: code/credential write).
dry_runNoIf true, show what would be created without performing the action.
instanceNoCoolify instance name (omit for the default).
build_packNoBuild pack. REQUIRED by Coolify for the public, private-github-app, and private-deploy-key sources.
dockerfileNoDockerfile content (for dockerfile source).
git_branchNoGit branch (for git-based apps).
fields_jsonNoJSON-encoded alternative to `fields` (mutually exclusive) for clients whose strict schema handling strips free-form object contents.
server_uuidNoUUID of the target server.
docker_imageNoDocker image reference (for dockerimage source).
project_uuidNoUUID of the target project.
service_typeNoRequired when kind=service and not using docker_compose_raw. Mutually exclusive with docker_compose_raw.
git_repositoryNoGit repository URL (for git-based apps).
instant_deployNoTrigger deploy immediately after creation.
github_app_uuidNoGitHub App UUID (for private-github-app source).
environment_nameNoName of the Coolify environment.
private_key_uuidNoPrivate key UUID (for private-deploy-key source).
docker_compose_rawNoBase64-encoded docker-compose content. Required when kind=service and not using service_type. Mutually exclusive with service_type.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool is FENCED, requires --allow-destructive and confirm:true, and characterizes the write as code/credential write. This is significant safety-relevant behavior. It does not detail all side effects, but the critical guardrails are covered.

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?

Two sentences pack a large amount of high-value information: the core purpose, the discriminating logic, and the critical fencing requirement. The description is front-loaded and wastes no words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 22 parameters and no output schema, the description does not explain each parameter but relies on the rich schema. It does provide the essential high-level decision tree and safety context. It omits some conditional nuances (e.g., build_pack requirements), but the schema covers individual fields, making this sufficient for a create tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds relational semantics beyond individual field docs: it explains that `kind` discriminates among three types, `source` is a sub-discriminator for applications, `engine` is for databases, and `service_type` XOR `docker_compose_raw` (base64) applies to services. This helps the agent correctly combine parameters.

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 states a specific verb and resource: 'Create a new Coolify resource.' It clearly distinguishes from sibling tools like update_resource and delete_resource by using 'create' and explaining the resource-kind discriminator. This makes the tool's purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies the tool is for creation and provides a decision tree via `kind` (application/database/service) with sub-discriminators. It does not explicitly state when not to use it or compare with alternatives, but the context is clear and no exclusions are needed beyond obvious creation tasks.

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

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