Skip to main content
Glama

Publish

deploy
Destructive

Publish the preview to production at https://.lazyfrog.app, with no downtime. Publish only when the user asked for it in this conversation, with user_asked: true; finishing the build, an agreed plan or "go ahead" isn't asking. Going live needs a paid plan: on Free, preflight, publish and rollback are refused up front with plan_limit (limit live_sites, the plans page as upgrade_url); tell the user once that going live needs a paid plan and their preview stays free to share while it's awake, then keep building in the preview. action "preflight": a dry run (a job): checks secrets (every preview secret name set for production), services.json (a start command for each web service, a worker with only dev runs on the preview only, healthcheck_path on web services, which must answer 200 without login), builds a copy, applies pending migrations to a copy of production, starts every service as production does (on $PORT, which apps must listen on) and health-checks it; reports the pending migrations, what makes any destructive, test results, the commits since the last publish, and keys, passwords or salts written in the code (secrets_in_code: ask the user once before moving them to the secrets tool; publishing refuses code that contains them). A first publish starts the live site empty unless seed_live_from_preview is true (nothing else is copied from the preview's database or /data): tell the user, and offer the copy when preflight's seed_offer says it is available; once the live site has data, preview and live keep separate data and publishing never changes live data. action "publish": the same, then commits and tags the preview's work, snapshots, migrates production and switches to the new release once it is healthy; the old one finishes its requests. When the live site runs an older platform version (project get says), a publish moves it to the current one first, with a restart of a few seconds. Follow both with the job tool; publish's result has the URL. summary: one or two sentences for the user about what changed, written from the commits. Destructive migrations (dropping tables or columns, deleting or updating every row, changing a column's type) need confirm: true. action "rollback": an earlier deployment live again in seconds (to: its number, default the one before; deploy_list shows which can be). The database stays as it is unless with_database: true, which restores it (and /data, when that deployment ran a migrate command that changes data there) to just before the first later deployment changed it (only when rolling back, and only if one did; content written on the live site since that publish, such as posts, pages and orders, is lost from the live site, though kept in a snapshot: tell the user; needs confirm and, when you ask, the owner's approval in the portal; the site is down for a few seconds). Destructive migrations, and restoring the live site's database or files from a snapshot, also need the owner's approval when you ask: the first refusal requests it. action "schedule": a change the user wants live at a later time ("new prices from the 1st", "put the sale page up on Friday at 8"): at is that time with the business's UTC offset (2026-12-01T00:00:00+02:00), 10 minutes to 62 days ahead, user_asked true and a summary; the preview's work is committed and built and rehearsed now like a preflight (a job: follow it), and that version goes live at its time, rehearsed again on the live data as it is then, even if the preview changes meanwhile. One per project; it can't include destructive migrations. A publish or a rollback going live before then cancels it (it would replace that change), except a publish with keep_schedule: true, which puts live only what the preview added after the scheduled one and keeps the schedule (it is built again on top, as a new deployment number, same time); the owners are emailed when it runs. action "cancel": cancels the scheduled publish (to: its number, optional). deploy_list shows what is scheduled.

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": {
      "project": "<project>",
      "action": "<action>"
    },
    "name": "deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoschedule: when it goes live, with the business's UTC offset: 2026-12-01T00:00:00+02:00.
toNorollback, cancel: the deployment number.
actionYes
confirmNo
projectYesProject slug or id.
summaryNo
user_askedNopublish, schedule: true only when the user asked in this conversation to publish or put it live ("publish it", "make it live", "update the live site"), or to make a change live at a later time ("new prices from the 1st"). Finishing the build, an agreed plan or "go ahead" isn't asking.
keep_scheduleNopublish, while a publish is scheduled (default false): put live only live's version plus what the preview added after the scheduled one (an urgent fix), then build the scheduled change again on top so it keeps its time. Refused, with nothing published and the schedule kept, when those commits change the same lines as the scheduled change, or within 30 minutes of its time.
with_databaseNo
idempotency_keyNoAny unique string; a repeated call with the same key has no second effect.
seed_live_from_previewNopublish, the project's first release only (default false): copy the preview's database and /data into the live site, one time, after you asked the user. preflight's seed_offer says whether it is offered. Secrets and environment values are never copied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds substantial context beyond them: Free-plan refusal with plan_limit/upgrade_url, destructive migrations needing confirm, owner approval for database restores, the site being down for a few seconds during a rollback, and how a publish or rollback cancels a schedule. These are real operational consequences an agent must surface to the user.

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?

Almost every clause carries actionable information and the core publish/when-to-call rule is front-loaded, but the description is delivered as one very dense block of semicolon- and parenthesis-heavy prose that is hard to scan for a five-action tool. It earns its length but would benefit from clearer structure.

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 complex multi-action tool with 11 parameters and no output schema, the definition covers gating conditions, plan limits, first-publish data behavior, scheduling semantics, cancellation rules, and notes that publish's result carries the URL and that the job tool follows jobs. Nothing an agent needs to call it safely is missing.

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

Parameters5/5

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

Schema coverage is 64%, and the description adds meaning well beyond it — at's UTC-offset format and 10-minute-to-62-day bounds, to as the target deployment number, keep_schedule's interaction with a pending schedule, seed_live_from_preview's one-time copy scope, summary being written from commits, and confirm's role for destructive migrations. The semantics that matter for correct invocation are supplied.

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 names a specific verb and resource ('Publish the preview to production at https://<slug>.lazyfrog.app, with no downtime') and then clearly delineates each of the five actions (preflight, publish, rollback, schedule, cancel) so an agent can tell them apart without opening the 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?

Explicit when-to-use rules are given: 'Publish only when the user asked for it in this conversation, with user_asked: true; finishing the build, an agreed plan or "go ahead" isn't asking.' Each action has a triggering condition (preflight for a dry run, schedule for delayed changes, rollback for an earlier deployment, cancel to remove a schedule), and exclusions such as 'it can't include destructive migrations' are stated.

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