Skip to main content
Glama

vibedgames

Deploy a game

deploy

Deploys a game. The usual way: pass bundle: true, PUT a gzipped tar of the built game (tar -czf game.tgz -C dist ., index.html at its root) to the bundleUpload URL it returns, then call again with the deploymentId and publish: true; publish unpacks it. Files can also be given one by one: files carries utf-8 text, or with encoding: url the URL of an asset generate made, which the server fetches itself (up to 32 MB a call); presign takes a file's path, size and SHA-256 and returns a signed PUT URL for it in uploads. Upload URLs are on this server and last 15 minutes. A call without deploymentId stages a new deployment beside the live one; later calls pass it back to add or replace files. publish: true requires index.html and every presigned file at its declared size, makes the deployment live at {slug}.vibedgames.com and only then removes the previous one, so the game never goes dark mid-upload. With source: true publish also keeps the deployment's files as the game's forkable source (up to 64 MB); a caller with its own source archive passes sourceArchive instead and PUTs it to sourceUpload. 403 when the slug belongs to someone else.

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

Input Schema

NameRequiredDescriptionDefault
nameNoThe game's display name, up to 120 characters, e.g. `Space Pong`; omit to keep the name it has
slugYesThe game's slug, which makes its address `{slug}.vibedgames.com`: 3 to 40 lowercase letters, digits and hyphens, no hyphen at either end, e.g. `space-pong`. A new slug becomes your game, one another account owns is refused; pass the same one on every call of a deployment
filesNoFiles sent in the call itself: text, or a generated asset's URL with `encoding: url`. A path already staged is replaced. Default none
bundleNotrue returns a `bundleUpload` URL to PUT the whole built game to as one gzipped tar, `index.html` at its root (`tar -czf game.tgz -C dist .`); a later call with `publish: true` unpacks it. The usual way in. Default false
sourceNoWith `publish: true`, also keep the deployment's files (up to 64 MB) as the game's forkable source, which fork downloads. Default false; not with `sourceArchive`
presignNoFiles you PUT yourself: each returns a signed URL in `uploads`, valid 15 minutes, to PUT its bytes to with the `headers` given; list a file again to renew its URL. Default none
publishNotrue makes the staged deployment live at `{slug}.vibedgames.com` once this call's files are in (it needs `index.html` and every presigned file at its declared size), then removes the previous one. Default false: the files stay staged
deploymentIdNoThe `deploymentId` an earlier deploy call for this slug returned, to add files to that staged deployment or publish it; omit to stage a new one
sourceArchiveNoYour own forkable source archive (a .tar.gz of the project, what `vg deploy --source` packs), which you PUT to the `sourceUpload` URL this call returns; omit for none. Not with `source: true`

Output Schema

NameRequiredDescriptionDefault
urlYes
gameIdYes
uploadsYes
fileCountYes
publishedYes
totalBytesYes
bundleUploadYes
deploymentIdYes
sourceUploadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false), the description discloses signed-URL lifetimes (15 minutes), per-call and per-file size ceilings (32 MB call, 10 MB file, 64 MB source), the atomic swap that keeps the game live mid-upload, the publish preconditions (`index.html` plus every presigned file at declared size), and the 403 ownership failure mode. This is unusually rich behavioral context for a mutation tool.

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

Conciseness3/5

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

It is front-loaded well, opening with the one-liner and the "usual way" path, but the single dense semicolon-chained paragraph runs ~250 words and repeats details already verbatim in the schema (32 MB per call, the `tar -czf` command, encoding semantics). Readable but heavier than it needs 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?

For a 9-parameter, nested-object, multi-call tool with an output schema, the description covers the whole protocol end to end: staging, adding files, upload transports, publish preconditions, source retention, URL expiry, and the ownership error. Return-value detail is correctly delegated to the output schema.

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; the description earns more by explaining the cross-parameter sequencing the schema cannot — `bundle` returns a `bundleUpload` URL that is PUT to and then confirmed by a second call with `deploymentId` + `publish`, and `presign` returns signed PUT URLs in `uploads`. It does duplicate some schema text (size limits, tar invocation), which keeps it from a 5.

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?

"Deploys a game" names a specific verb and resource, and the body immediately elaborates a multi-call upload/publish lifecycle that no sibling (deployments, deployments_delete, fork, generate) performs. An agent can tell this is the write path that stages files and makes a deployment live.

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?

It explicitly routes between modes: "The usual way: pass `bundle: true`" versus giving files one by one via `files`, `presign`, or `sourceArchive`, plus the staging-vs-publish condition (`deploymentId` present or absent). What it lacks is explicit routing to sibling tools (e.g., when to inspect with `deployments` instead), but the in-tool alternatives are spelled out.

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.