Skip to main content
Glama

Publish app

publish_app

Publish the app to a public URL. Only when the human asks: it spends credits and changes a public site. Run publish_readiness first. Returns immediately while it builds; poll get_deployment until LIVE or FAILED, and only say it is live once it is LIVE. Omit slug for an app that is already published (a new slug moves it to a second address). A frontend + API app publishes as a site plus one backend per server service; the site routes /api to the backend. If it answers db_changes_need_confirm, show the human what live data would be deleted and pass dbConfirmToken as confirm_db_changes only after they agree.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "publish_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoSubdomain (lowercase, digits, dashes). Omit to keep the current one, or derive it from the project name.
project_idNoProject id (or use session from use_project)
confirm_db_changesNoOnly after the human approves: the dbConfirmToken from a db_changes_need_confirm error, which lists the live data this publish would delete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / confirm_db_changes
      Added value: +{
      +  "description": "Only after the human approves: the dbConfirmToken from a db_changes_need_confirm error, which lists the live data this publish would delete.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Adds substantial behavior the annotations do not carry: cost implications, immediate-return/async build semantics, the LIVE/FAILED terminal states and the instruction not to claim success early. It also documents the db_changes_need_confirm error path and the explicit human-approval gate before passing confirm_db_changes. There is mild tension with destructiveHint=false, but the deletion path is gated behind a confirmation token, so this is a documented precondition 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the highest-stakes constraint (human request, credits, public visibility) before prerequisites and error handling. Every sentence carries an operational fact: gating, ordering, polling, slug semantics, topology, and confirmation handling, with no filler.

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 an async, credit-spending, publicly visible mutation with no output schema, the description covers initiation, waiting, success criteria, failure handling, and the destructive-data confirmation loop. Nothing an agent needs in order to call it safely and report status accurately is missing.

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 is 3, and the description does add meaning: it explains that omitting slug preserves the current address while supplying a new one moves the app to a second address, which is a consequence the schema does not state. The confirm_db_changes guidance largely restates the schema field description, so it is additive rather than fully compensatory.

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 ("Publish the app to a public URL") and immediately scopes it against siblings by naming publish_readiness as a prerequisite and get_deployment as the follow-up poll. An agent can distinguish this from unpublish_app or get_preview 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit gating condition ("Only when the human asks") with the reason (credits, public site change), names the mandatory predecessor ("Run publish_readiness first"), and names the polling alternative. It also resolves the slug choice case (omit for already-published, new slug creates a second address).

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