Skip to main content
Glama

scalix_fn_deploy

Deploy a Scalix Function — serverless, per-request billed, running in isolated microVMs — from a container image. Invoke it with scalix_fn_invoke once deployed. A WEB APP needs the raw HTTPS handler: pass invocation_mode="http" so the function URL https://{name}.fn.{domain} proxies each request — method, path, query, headers, body — straight to the app's own server on $PORT (the image's ENTRYPOINT is the app). The default "handler" mode runs the platform runner per request and returns the invoke envelope, which no browser can consume.

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_fn_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFunction name
imageYesContainer image reference
regionNoCanonical region id to deploy into (from GET /v1/regions). Omit to use the organization's recorded region preference.
runtimeNoRuntime — `node` or `python` (exactly what the functions orchestrator accepts)
http_triggerNotrue (default) = the function answers on a public HTTPS URL at https://{name}.fn.{domain}; false = internal only, invoked with scalix_fn_invoke (no public URL).
region_pinnedNotrue = hard-pin placement to `region`: the deploy fails closed when that region has no capacity instead of placing elsewhere. Requires `region`.
invocation_modeNoExecution model. `handler` (default) = the platform runner calls your export per request (Lambda model). `http` = the raw HTTPS handler (Cloud Run model): the function's public URL https://{name}.fn.{domain} proxies the request to the image's own server on $PORT — what a web app needs, because the path and method are part of the request and a handler-mode function cannot serve browsers. Requires a container image: the image's ENTRYPOINT is the app. Image boots are gated on the node (SCALIX_RUN_OCI_ENABLED); a node without it answers that image-based functions are disabled.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / http_trigger
      Added value: +{
      +  "default": true,
      +  "description": "true (default) = the function answers on a public HTTPS URL at https://{name}.fn.{domain}; false = internal only, invoked with scalix_fn_invoke (no public URL).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / invocation_mode
      Added value: +{
      +  "description": "Execution model. `handler` (default) = the platform runner calls your export per request (Lambda model). `http` = the raw HTTPS handler (Cloud Run model): the function's public URL https://{name}.fn.{domain} proxies the request to the image's own server on $PORT — what a web app needs, because the path and method are part of the request and a handler-mode function cannot serve browsers. Requires a container image: the image's ENTRYPOINT is the app. Image boots are gated on the node (SCALIX_RUN_OCI_ENABLED); a node without it answers that image-based functions are disabled.",
      +  "enum": [
      +    "handler",
      +    "http"
      +  ],
      +  "type": "string"
      +}
  2. 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 to `region`: the deploy fails closed when that region has no capacity instead of placing elsewhere. Requires `region`.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / runtime / description
      Previous value: -"Runtime (e.g., nodejs20, python3.12)"New value: +"Runtime — `node` or `python` (exactly what the functions orchestrator accepts)"
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, openWorld=true, idempotent=false, destructive=false), the description discloses the billing model (per-request billed), the isolation model (microVMs), the failure behavior of region_pinned (fails closed rather than placing elsewhere), and the node gating on SCALIX_RUN_OCI_ENABLED. These are operationally significant facts the annotations cannot convey.

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 purpose and the invoke follow-up are front-loaded, and the web-app caveat lands before the mode explanation. Some clauses are dense (nested parentheses, repeated URL template and mode restatement) but nothing is truly wasted.

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 mutation with no output schema, the description covers the important behavioral surface: modes, public URL shape, billing, and node gating. It leaves the return value of a successful deploy unmentioned, and region/region_pinned are left entirely to the schema, but the agent has enough to call it 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 every parameter is already documented, including the invocation_mode enum with its full explanation. The description largely restates that same handler/http distinction in prose, adding only the browser-consumption rationale, which does not rise much above the baseline for well-covered schemas.

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 opens with a specific verb and resource — 'Deploy a Scalix Function ... from a container image' — and immediately states the distinguishing execution models (handler vs. http). An agent can tell this apart from scalix_fn_invoke, which it explicitly names as the follow-up step.

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?

It gives a concrete conditional rule: a WEB APP needs invocation_mode="http", while the default handler mode returns an envelope browsers cannot consume. It also tells the agent what to do after deployment (scalix_fn_invoke). It does not, however, exclude or contrast with scalix_run_deploy, which an agent might plausibly confuse with this tool.

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.