Skip to main content
Glama

scalix_run_deploy

Deploy a long-running container service on Scalix Run from a container image. Creates a new service, or a new revision of an existing service with the same name, with health checks, a public HTTPS URL, and autoscaling between min_instances and max_instances (min 0 = scale-to-zero when idle). Billed per vCPU-hour while instances run. Roll back a bad revision with scalix_run_rollback.

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": {
      "name": "<name>",
      "image": "<image>"
    },
    "name": "scalix_run_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment variables as key-value pairs
nameYesService name
portNoPort the container listens on
imageYesContainer image from the Scalix registry ({registry}/{project_id}/{repo}:{tag}). External registries (Docker Hub, etc.) are NOT supported — build & push first with scalix_build_create.
regionNoCanonical region id to deploy into (from GET /v1/regions). Omit to use the organization's recorded region preference.
max_instancesNoMaximum instances
min_instancesNoMinimum instances (0 = scale to zero)
region_pinnedNotrue = hard-pin placement (initial AND scale-out replicas) to `region`: the deploy fails closed when that region has no capacity instead of placing elsewhere. Requires `region`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Canonical region id to deploy into (from GET /v1/regions). Omit to use the organization's recorded region preference.",
      +  "type": "string"
      +}
    • addedInput schema / properties / region_pinned
      Added value: +{
      +  "description": "true = hard-pin placement (initial AND scale-out replicas) to `region`: the deploy fails closed when that region has no capacity instead of placing elsewhere. Requires `region`.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / image / description
      Previous value: -"Container image (e.g. nginx:alpine)"New value: +"Container image from the Scalix registry ({registry}/{project_id}/{repo}:{tag}). External registries (Docker Hub, etc.) are NOT supported — build & push first with scalix_build_create."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare it as a non-readonly, non-destructive, non-idempotent open-world write; the description adds real value on top: health checks are provisioned, a public HTTPS URL is exposed, autoscaling spans min_instances to max_instances, and billing accrues per vCPU-hour while instances run. It omits whether the call is synchronous or returns before the service is healthy, which matters for an 8-parameter deploy.

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?

Three front-loaded sentences: purpose and create-vs-revision behavior first, then runtime characteristics, then cost and the rollback escape hatch. No filler and no repetition of schema detail.

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 deploy tool with 8 parameters, a nested env object, and no output schema, the description covers what is provisioned (health checks, URL, autoscaling) and how it is billed. The remaining gap is the return value and readiness semantics, which are documented nowhere else since no output schema exists.

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 every field including the nested env object, region, and region_pinned is already documented. The description restates scale-to-zero at min_instances = 0 but adds no syntax, constraints, or defaults beyond what the schema already carries, so the 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 a specific verb and resource ("Deploy a long-running container service on Scalix Run from a container image") and immediately clarifies the create-or-new-revision semantics when the name already exists. An agent can distinguish this from scalix_run_rollback and the build tools without opening any schema.

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?

Gives a clear precondition for use — the image must come from the Scalix registry, built and pushed first with scalix_build_create — and routes to scalix_run_rollback for undoing a bad revision. It does not explicitly contrast with scalix_fn_deploy or scalix_run_scale, but the 'long-running container service' framing and the rollback pointer cover the main selection decision.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.