Skip to main content
Glama

Move a project to another workspace

MoveProject
Destructive

Moves a project to another workspace of the same person, as one operation (OperationKind MOVE): it is stopped here, backed up into the destination's backups, restored and started there under the same project_id, then deleted here. Each database it is linked to (Project.dependencies) stays here, with its other apps, if any, running on: there the project uses one of the same engine instead, one the destination has or a new one, with the data of the database it signs in to copied, or none (DatabaseSwitch). A database project moves only when no app is linked to it. workspace is the source. Waits as DeployProject does (wait_seconds), then GetOperation, in either workspace, which once it ended answers the same move_message and the project. Answers, once it ended, with the project as it is in the destination, and move_message: what changed (hosts move to the destination's apps_domain, a domain of the person's own must point at its hostname, a new SSH command, which database it uses there instead of each, and with what data) and what stayed behind (operation history, logs, incidents, uptime, earlier snapshots, and what each database it left still holds). Until the restore succeeded, a failure undoes it: the source's services run again as they did, unless its failure says they did not start again; the move's snapshot stays in the destination's backups, as a deleted project's. After that it only goes forward: one that FAILED then moved the project, and its failure names what the source still holds. While it runs, a change to the project is UNAVAILABLE + ProjectBusy (kind MOVE) in either workspace, and so is a read where it is not then (before its restore, after its deletion from the source); afterwards, a call for it to the source is FAILED_PRECONDITION + ProjectMoved, until the source has a project of that id again. While it runs, a change to a database it leaves here, or to the one it uses instead there, is ProjectBusy too, as is a read of a new one before the move made it; GetOperation answers the move with any of their project_ids. INVALID_ARGUMENT = switch_databases names a database the project is not linked to, or twice, an env_prefix where the machine wrote the lines, none where it did not, one of no form a link takes or one two switches share, or an into the destination lacks or of another engine, or one two switches share, copies of more than 32 databases, or to_workspace is the source or none of the caller's; PERMISSION_DENIED + WorkspaceNotGranted = one this token may not reach. ALREADY_EXISTS = the destination has a project of the project's id, or of the id a new database takes, or operation_id is an operation of the project's or another move's already. FAILED_PRECONDITION = a database project with apps linked to it (the message names them: move each, or unlink it), a machine needs an update first (the message names it), the project has no deploy yet, or the destination's backups are off (its Machine.backups_enabled), which a move goes through.

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": "MoveProject"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceNoThe workspace: its id or name (ListWorkspaces). Omit when the account has one.
project_idNo
operation_idNoAs DeployProject's operation_id: the move's.
to_workspaceNoThe destination, as `workspace` takes one: its id or name.
wait_secondsNoAs DeployProject's wait_seconds.
switch_databasesNoWhat it uses in to_workspace instead of each database it is linked to (Project.dependencies), which stays here. One left out: the destination's database of its id and engine, if it has one, else a new one, with the data of its copy_database.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Far exceeds what the annotations convey (destructive/not-idempotent/open-world). It discloses atomicity and rollback semantics ('Until the restore succeeded, a failure undoes it...After that it only goes forward'), what is destroyed (the project's own user and database here are dropped, so `empty` deletes that data), what persists in the destination's backups, and the ProjectBusy/ProjectMoved concurrency states in both workspaces.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The first sentence is well front-loaded, but the remainder is a single sprawling run-on covering rollback, busy states, every error code and per-parameter edge cases with no paragraph breaks or headings. Much of the error taxonomy duplicates what a caller learns at invocation time, and the density makes it hard to scan for the operative rules.

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 high-complexity cross-workspace mutation with no output schema, it supplies everything needed: the return value is described ('the project as it is in the destination, and `move_message`' with what changed vs. stayed behind), the operation is traceable via GetOperation in either workspace, and the failure/rollback contract is spelled out.

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 83%, so the schema carries most parameter documentation, but the description adds real meaning beyond it: '`workspace` is the source', `to_workspace` may not equal the source or be unknown, and the INVALID_ARGUMENT/ALREADY_EXISTS clauses tie concrete failure meanings to switch_databases, env_prefix, `into` and operation_id.

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?

Opens with a precise verb+resource: 'Moves a project to another workspace of the same person, as one operation (OperationKind MOVE)', and immediately enumerates the stop/backup/restore/start/delete sequence. An agent can distinguish this from DeployProject, CreateTransfer and CreateProject 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 Guidelines4/5

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

Gives substantive when-to-use and when-not-to-use conditions: a database project moves only when no app is linked (with the remedy 'move each, or unlink it'), a machine may need an update first, the project needs a deploy, and the destination's backups must be enabled. What it lacks is an explicit routing statement to alternative tools for those blocked cases beyond the terse remedy clauses.

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