Skip to main content
Glama

Create customer recipe revision

create_application_recipe_revision
Idempotent

Freeze a validated, digest-pinned Compose definition as an immutable recipe revision. Resolve image tags and validate first, then confirm to create the revision without updating the running installation.

Instructions

Resolve image tags from their registries, validate the resulting digest-pinned Compose definition, and freeze that exact definition as a later immutable customer-owned recipe revision. This does not update the running installation. 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. In-place updates retain the existing secret names and registry bindings for rollback safety; create a separate project when those bindings must change. 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>",
      "project_id": "<project_id>",
      "compose_yaml": "<compose_yaml>",
      "idempotencyKey": "<idempotencyKey>",
      "confirmed": "<confirmed>"
    },
    "name": "create_application_recipe_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoPlain, non-secret environment values. Put secret values in the install tool's secrets field.
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 revision
project_idYesCustomer-owned recipe project UUID returned by list_application_recipes
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 immutable revision request.
registry_credential_idsNoOwned registry credential UUIDs from list_application_registry_credentials

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.3.21
    • addedInput schema / properties / env / propertyNames / type
      Added value: +"string"
    • addedInput schema / properties / project_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})$"
    • 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.7/5.0
Behavior5/5

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

Annotations declare non-readonly, idempotent, non-destructive, open-world, but the description adds the behavior that matters: the revision is immutable, it does not touch the running installation, tag resolution to sha256 digests happens before validation, existing secret names and registry bindings are retained for rollback safety, and reusing idempotencyKey only replays the identical request. Permission requirements are stated explicitly.

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?

Front-loaded with the core action and effect, then the pending-validation recovery path, then the in-place-update caveat. Sentences are dense but each carries decision-relevant information; the retry/polling sentence is long enough to require careful reading.

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 mutating tool with a nested env object, a confirmation flag, and no output schema, the description covers the risky workflow (digest pinning, validation resume, immutability, permissions) well. It does not say what the successful call returns, such as the new revision identifier, which leaves an agent guessing about post-call state.

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 baseline is 3; the description still adds real meaning by tying validation_id to 'resume only the exact successful validation' for that digest-pinned document and by explaining the resolved_compose_yaml retention needed to retry. It says little about env, secret_names, orderNo, or registry_credential_ids beyond the schema's own text.

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?

States a specific verb chain (resolve tags, validate, freeze) on a specific resource (customer-owned recipe revision) and explicitly bounds the effect: 'This does not update the running installation.' That boundary alone separates it from install_application_recipe, and the mention of get_application_recipe_validation anchors it among siblings.

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?

Gives concrete when-to-use routing: poll get_application_recipe_validation when validation is pending, then retry with validation_id and the exact pinned document. It also gives a when-not/alternative clause for in-place updates versus creating a separate project when registry bindings or secret names must change, plus the required applications:manage scope.

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