Skip to main content
Glama

Redeploy a web frontend

lavela.redeploy

Redeploy a web-hosting project from its latest repo state. Call it with just projectId: it rebuilds the same repo, folder and branch as the last successful deploy, with the env stored on the project. Poll lavela.get_status (CONFLICT = one is already running). NOT for a server on compute — lavela.compute_build_status {projectId, service} gives its last build; lavela.compute_rebuild with that id redeploys it (same branch — pushed code included — folder, size, port, env, mounts). lavela.provision_compute_from_repo is for a first deploy, or with settings the user has confirmed — whatever it is given replaces the running server. Details: https://console.lavela.dev/docs/mcp#redeploy-and-rollback

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoOnly env vars to ADD or CHANGE; omitted = the env stored on the project.
branchNoOnly to CHANGE the branch ("" = the default); omitted = the last deploy's. Required (not a /tree/ URL suffix) for a name with "/".
subdirNoOnly to CHANGE the folder ("" = repo root); omitted = the last deploy's folder.
githubUrlNohttps://github.com/<owner>/<repo>[/tree/<branch>]
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only say readOnly=false and destructive=false, so the description carries the interesting behavior: redeploy reuses the last successful deploy's repo/folder/branch and the project-stored env, a CONFLICT signals an in-flight deploy, and the compute alternative 'replaces the running server' when given settings. That is real context beyond the annotations. It stops short of saying what the call returns (a deploy id?) or how long a rebuild typically takes, which is the kind of detail needed to poll sensibly.

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 core action and the minimal invocation, then the polling/CONFLICT rule, then the compute exclusions – a sensible priority order with no filler. The middle clauses are dense and run long ('with that id redeploys it (same branch — pushed code included — folder, size, port, env, mounts)'), which costs a little readability.

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?

Given no output schema, the description still tells the agent the call is asynchronous (poll get_status) and enumerates the sibling routing decisions an agent is most likely to confuse. The remaining gap is the return value of redeploy itself and how to observe completion or failure beyond get_status, which a fully complete definition for an async mutation would include.

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 already 80% and documents the env/branch/subdir defaulting behavior, and the description reinforces it ('Call it with just projectId', the same repo/folder/branch are reused). The branch rule for names containing '/' is schema-provided rather than repeated, so the description adds alignment with the no-arg invocation model rather than new per-parameter syntax.

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 ('Redeploy a web-hosting project from its latest repo state') and immediately scopes it by noting the rebuild reuses the last successful deploy's repo, folder, branch and stored env. This lets an agent distinguish it from the compute siblings named later in the description 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?

Explicit routing guidance: 'Call it with just projectId', poll lavela.get_status (CONFLICT means one is already running), and an explicit exclusion 'NOT for a server on compute' that points to lavela.compute_build_status / lavela.compute_rebuild, plus when provision_compute_from_repo applies (first deploy or confirmed settings). Both when-to-use and when-not-to-use are covered with named alternatives.

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