Skip to main content
Glama

Publish an app at a public address

publish_app
Idempotent

Publish a web app running in the sandbox at a permanent public HTTPS address https://. – no token, anyone can open it. Start and test the app first (listening on 0.0.0.0:, running in the background). Pass start_command (and cwd): the plain command that runs the app, e.g. python3 app.py – it is started in the background whenever a visitor comes and nothing listens on the port (after a wake-up without memory). A published sandbox is not deleted after the retention period; without visitors it sleeps and the next visitor wakes it (a few seconds). Calling it again with the same name updates the app. Optional domain adds the user's own domain (tell the user the DNS record from the answer). Only for paying accounts; do not publish login pages of other services, payment forms or anything harmful.

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>",
      "port": "<port>"
    },
    "name": "publish_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional: working directory for start_command, e.g. /home/user/app
nameYesAddress name: 3–40 lowercase letters, digits and hyphens (becomes https://<name>.<zone>). Must be free.
portYesTCP port the app listens on in the sandbox (1–65535)
domainNoOptional: the user's own domain for the app, e.g. booking.example.com. The answer tells which DNS record the user must create; the HTTPS certificate is then issued automatically.
sandbox_idNoSandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id.
start_commandNoCommand that starts the app, e.g. `python3 app.py` or `npm start` (run in the background when needed). Strongly recommended.

Output Schema

NameRequiredDescriptionDefault
urlYesPublic HTTPS address of the app – no token.
nameYesApp name (the address is https://<name>.<zone>).
portYesTCP port of the app in the sandbox.
domainNoThe own domain, when domain was given: domain, state (pending, issuing, active) and dns – the records the user must create.
sandbox_idYesSandbox ID.
domain_errorNoWhy the own domain could not be added (the app is published anyway).
start_commandNoCommand that starts the app after a wake-up without memory (empty = none).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / domain
      Added value: +{
      +  "description": "Optional: the user's own domain for the app, e.g. booking.example.com. The answer tells which DNS record the user must create; the HTTPS certificate is then issued automatically.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / domain
      Added value: +{
      +  "description": "The own domain, when domain was given: domain, state (pending, issuing, active) and dns – the records the user must create.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / domain_error
      Added value: +{
      +  "description": "Why the own domain could not be added (the app is published anyway).",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond annotations it discloses the access model (public, token-free), an exemption from the retention deletion policy, the sleep/wake lifecycle ('without visitors it sleeps and the next visitor wakes it (a few seconds)'), and that start_command is re-run in the background whenever a visitor arrives and nothing is listening. It also flags the paying-account requirement and acceptable-use limits, which annotations do not cover. The only minor tension is openWorldHint=false while the tool exposes a public internet address, but this is a scope nuance rather than a contradiction.

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 outcome and address format, then prerequisites, then lifecycle, then policy limits — a sensible order with no filler sentences. It is dense and somewhat run-on with stacked parentheticals, which slightly hurts scanning, but every clause carries information.

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?

For a publish tool with an output schema (so return values need not be described), the description covers the prerequisites, the resulting URL shape, persistence and sleep/wake behavior, update-by-reuse, the custom-domain DNS handoff, and eligibility/abuse constraints. An agent has everything needed to call it correctly and to set user expectations.

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 the baseline would be 3, but the description adds real meaning beyond the schema: it explains the runtime lifecycle of start_command (re-launched per visitor after a wake-up without memory), that reusing a name updates rather than duplicates the app, and that the domain flow returns a DNS record the agent must relay to the user. These are behavioral semantics the field descriptions alone do not convey.

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 first sentence gives a specific verb and resource ('Publish a web app running in the sandbox') plus the resulting artifact ('permanent public HTTPS address https://<name>.<zone>') and the access model ('no token, anyone can open it'). This is clearly distinguishable from siblings like get_public_url (retrieve) and unpublish_app (remove) 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?

It states concrete preconditions ('Start and test the app first, listening on 0.0.0.0:<port>, running in the background'), the re-invocation semantics ('Calling it again with the same name updates the app'), account eligibility ('Only for paying accounts') and explicit exclusions (login pages of other services, payment forms, harmful content). It does not name sibling alternatives such as unpublish_app or get_public_url, so routing guidance is clear but not complete.

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.

Resources