Skip to main content
Glama

Validate customer application recipe

validate_application_recipe
Idempotent

Validates Docker Compose recipes by resolving image tags to immutable digests and checking them against target Firecracker worker policy, returning the pinned definition to store.

Instructions

Resolve image tags from their registries to immutable digests, then validate the resulting customer-owned Docker Compose document with the authoritative policy on the target Firecracker worker. The successful result includes the exact digest-pinned definition to store. This does not create, install, or modify a project or container. The queued validation is polled for about 30 seconds and may still return pending. Retain its ID and resolved_compose_yaml, poll get_application_recipe_validation, and resume recipe creation with the same pinned document and validation_id after valid=true. 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>",
      "compose_yaml": "<compose_yaml>"
    },
    "name": "validate_application_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
compose_yamlYesDocker Compose YAML. Mutable image tags are resolved once and replaced with immutable sha256 digests before worker validation.
registry_credential_idsNoOwned registry credential UUIDs from list_application_registry_credentials

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • 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})$"
  2. First observedv2.3.16

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the async queueing behavior, the ~30 second poll window, the possibility of a pending result, and what must be retained (validation ID, resolved_compose_yaml). The annotations cover safety (destructiveHint=false, idempotentHint=true), so the remaining gap is minor: it doesn't detail what a failed validation returns.

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, followed by exclusions, async behavior, and the resume workflow in a logical order. It is dense but nearly every sentence carries operational information, with only slight over-packing in the final sentence.

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

Completeness5/5

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

With no output schema, the description still explains the shape of a successful result (digest-pinned definition), the pending case, and the fields to carry forward. An agent has everything needed to call it and handle the response correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents orderNo, compose_yaml, and registry_credential_ids thoroughly. The description reinforces the tag-to-digest rewrite of compose_yaml but adds no meaning beyond the schema for the other two parameters, so baseline 3 applies.

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 specific verbs and resources: resolve image tags to digests, then validate a Docker Compose document against policy on the target Firecracker worker. It explicitly distinguishes itself from create/install/modify siblings, so an agent can tell it apart from create_application_recipe without opening either 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?

Gives explicit when-to-use context (pre-flight validation before recipe creation), names the follow-up tool get_application_recipe_validation, and states the resume condition (valid=true, reuse validation_id and pinned document). It also names the required permission applications:manage.

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