Skip to main content
Glama

Import project from a bundle

import_project

Recreate a project on a server from a bundle that export_project produced, here or on another Server4Agent deployment. Pass the bundle base64 encoded in bundle, which the request size limit holds to about 3 MB, or, for a bundle exported on this deployment, the url export_project returned in bundle_url, which carries bundles up to 25 MB. The new project is always private, gets its own slug and URL, and starts bringing itself up right away (the bundle only reaches the server as part of that run). Env vars the bundle names are bound only where this account already holds a value, and no .env file travels: the result lists what is still missing in missing_env, and the app will not run until you set those with set_secret.

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": {
      "server_id": "<server_id>"
    },
    "name": "import_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName the project here. Defaults to the name in the bundle.
bundleNoThe export file, base64 encoded. Pass this or bundle_url.
server_idYesThe server's id, as returned by create_server or list_servers.
bundle_urlNoThe download link export_project returned on this deployment, while it is still valid. Pass this or bundle.

Output Schema

NameRequiredDescriptionDefault
idYesProject id.
urlNoPublic URL. null while the project is private.
nameNoProject name.
slugNoURL slug. Stays the same when visibility changes.
accessNoWho may open the URL once it is public.
sourceNoWhat the workspace was seeded from: kind plus git_url, ref, subdir, or archive_path.
templateNoTemplate id it was created from.
warningsNoAnything about the bundle worth knowing.
bound_envNoEnv vars bound from secrets this account already holds.
lifecycleNoephemeral projects are removed with cleanup_project.
server_idYesThe server the project lives on.
created_atNoISO 8601 timestamp.
init_phaseNoWhere bring-up has got to, for a project seeded from a source.
updated_atNoISO 8601 timestamp.
url_statusNoWhether the address and certificate are ready. Not a health check.
visibilityNopublic = live at url. private = not publicly reachable.
cert_statusNoState of the shared certificate. null while private.
descriptionNoOne-line description.
exported_atNoWhen the bundle was made, ISO 8601.
init_run_idNoThe bring-up run that unpacks and starts it. Poll it with get_run.
listen_portNoThe port inside the box this project's URL is routed to.
missing_envNoEnv vars still unset. Set them with set_secret before the app will run.
imported_fromNoThe deployment the bundle was exported from.
runtime_statusNoWhether the project is running or paused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / bundle / description
      Previous value: -"The export file, base64 encoded."New value: +"The export file, base64 encoded. Pass this or bundle_url."
    • addedInput schema / properties / bundle_url
      Added value: +{
      +  "description": "The download link export_project returned on this deployment, while it is still valid. Pass this or bundle.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "server_id",
      -  "bundle"
      -]New value: +[
      +  "server_id"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the resulting project is always private, receives a new slug/URL, and begins provisioning immediately, with the bundle only transmitted during that run. It also discloses the env-var semantics (values bound only where the account already holds one, no .env file travels, `missing_env` lists gaps) and the blocking follow-up with set_secret. This is consistent with idempotentHint=false, since each import yields a distinct project.

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?

The action and its origin are front-loaded, and nearly every clause carries a constraint an agent needs (size caps, privacy, env binding, missing_env follow-up). It is, however, a single dense paragraph of chained clauses, so the size limits and env-var caveats are harder to scan than they need to be.

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?

Covers what an agent needs for a non-idempotent, open-world mutation: input size ceilings, resulting visibility and naming, immediate provisioning, env-var binding behavior, and the next tool to call when `missing_env` is populated. Return-value detail is rightly left to the existing output schema.

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

Parameters3/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 real value by quantifying the payload ceilings (about 3 MB vs 25 MB) and the freshness condition on `bundle_url`. Beyond that it mostly restates what the schema fields already say about `bundle` versus `bundle_url`.

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 ('Recreate a project on a server from a bundle') and ties the input directly to the output of the sibling export_project, which separates it cleanly from create_project, init_project, and get_project.

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 concrete selection guidance between the two input modes: base64 `bundle` for anything up to about 3 MB, or `bundle_url` (from export_project on this deployment) for bundles up to 25 MB. It never states when to prefer this tool over create_project or init_project, so the tool-level routing is only implied.

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.