Skip to main content
Glama

Create customer application recipe

create_application_recipe
Idempotent

Resolve image tags and validate a digest-pinned Compose definition, then freeze it as an immutable customer-owned recipe revision without installing or starting containers.

Instructions

Resolve image tags from their registries, validate the resulting digest-pinned Compose definition, and freeze that exact definition as the first immutable customer-owned recipe revision. This saves a definition only and does not install or start containers. If validation remains pending, retain its ID and resolved_compose_yaml, poll get_application_recipe_validation, then retry with validation_id and that exact pinned document. Plain environment values belong in env; secret_names contain names only. Confirm the exact service, name, Compose definition, variable names, and registry bindings first. Requires applications:manage.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "orderNo": "<orderNo>",
      "name": "<name>",
      "compose_yaml": "<compose_yaml>",
      "idempotencyKey": "<idempotencyKey>",
      "confirmed": "<confirmed>"
    },
    "name": "create_application_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoPlain, non-secret environment values. Put secret values in the install tool's secrets field.
nameYesLowercase customer recipe name, 2-41 characters
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
confirmedYesTrue only after the user confirmed this immutable recipe definition
compose_yamlYesDocker Compose YAML. Mutable image tags are resolved once and replaced with immutable sha256 digests before worker validation.
secret_namesNoSecret variable names only; definitions and exports never contain values
validation_idNoResume only the exact successful validation for this service and digest-pinned compose_yaml; retain the initial resolved document
idempotencyKeyYesClient-global unique key. Reuse it only to replay this exact recipe creation request.
registry_credential_idsNoOwned registry credential UUIDs from list_application_registry_credentials

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.3.21
    • addedInput schema / properties / env / propertyNames / type
      Added value: +"string"
    • addedInput schema / properties / registry_credential_ids / items / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / validation_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observedv2.3.16

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses mutation semantics, tag-to-digest rewriting, immutability of the resulting revision, the pending-validation branch, and the auth scope. The main gap is failure handling: what happens when validation fails or the idempotency key is replayed against different content. That gap is minor, but with destructiveHint=false and idempotentHint=true already asserted, it keeps this from a 5.

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

Conciseness4/5

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

The description is front-loaded with the core action and constraint, and every sentence carries operational content, including the non-install caveat and the polling loop. It is dense and closely packed, which slightly hurts scanability, but nothing is redundant.

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?

For a 9-parameter nested mutation with no output schema, the description covers the full lifecycle: resolution, validation, pending-retry, and immutability. It conveys what the caller receives in the pending case (ID plus resolved YAML) but says nothing about the response on success or rejection, which is the remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so 3 is the baseline. The description adds value beyond the schema: it separates plain values in env from names-only secret_names, and it explains validation_id as resuming only the exact successful validation of the same digest-pinned document, which the schema only implies. It does not explain orderNo or registry_credential_ids beyond the schema, so it is not a 5.

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 gives a specific verb chain and resource: resolve image tags, validate the digest-pinned Compose definition, and freeze it as an immutable customer-owned recipe revision. It also distinguishes itself from install_application_recipe by stating it "saves a definition only and does not install or start containers", so an agent can tell it apart without opening the schema.

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

Usage Guidelines5/5

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

It explicitly states when to use it (a definition should be frozen as an immutable revision) and what to do when validation is pending: retain the ID and resolved_compose_yaml, poll get_application_recipe_validation, then retry with validation_id. Prerequisites ("Confirm the exact service, name, Compose definition, variable names, and registry bindings first") and the required applications:manage permission are both called out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools