Skip to main content
Glama

Download the apps for a site

get_download

Prepare the download for one site: a zip with the shared core plus the apps this account owns that cover site_domain (or only the apps you list), their agent skills, INSTALL.md, manifest.json, a signed license.json and download.sig (run node site-apps/verify.mjs after unzipping). Always pass apps on a first install: name only the apps the owner asked for, since the account also holds free apps they didn't ask for. Without apps, every owned app that covers the domain is included (use that only to update a site that already runs them all; the answer lists what is in the zip). Free apps named in apps that the account doesn't own yet are claimed first (same as claim_free_app; tell the owner the free license the answer names). Paid apps are never bought here: one that isn't owned is refused with the create_checkout call to make, and nothing is claimed. Site Health (app id "health") is free and comes with every download, whatever apps says: tell the owner in one sentence. If the owner doesn't want it, pass without: ["health"] (without can leave out any app). If an app's update window holds it on an older version, the download carries the newest core that runs it (core_note says so) or is refused with the fix (renew_updates). Returns a short-lived link (10 minutes), its sha256, each app's requirements (detail: true adds the full bundle manifest, which is also in the zip) and download.command (fetch, check, unpack); download.needs says what the link needs (with an API key: the same key, as $SITE_APPS_KEY in the command; after a browser sign-in: nothing, the link carries a one-time secret). Run the install from the site's project folder (the folder it deploys from): unzip the download there as site-apps/, then follow site-apps/INSTALL.md. Tell the owner each app's requirements before installing. Apps not owned or not covered for that domain are refused with the exact fix. Needs the download permission.

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

Input Schema

NameRequiredDescriptionDefault
appsNoApp ids the owner asked for (free ones not yet owned are claimed first). Always pass it on a first install. Without it, every owned app that covers the domain is included. Site Health is added either way unless `without` names it.
siteNoShort form of site_domain. One of the two is required.
detailNotrue = also the full bundle manifest and the list of files in the zip (both are in the zip: site-apps/manifest.json). Default: the essentials (link, apps and versions, requirements, license, signature, next steps), to keep the answer short.
withoutNoApp ids to leave out, e.g. ["health"] when the owner doesn't want Site Health (which otherwise comes with every download).
site_domainNoThe site's real domain, e.g. example.com (www and apex are the same site). localhost and *.pages.dev work for testing. `site` is accepted as a short form.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / apps / description
      Previous value: -"App ids the owner asked for (free ones not yet owned are claimed first). Without it, every owned app that covers the domain is included. Site Health is added either way unless `without` names it."New value: +"App ids the owner asked for (free ones not yet owned are claimed first). Always pass it on a first install. Without it, every owned app that covers the domain is included. Site Health is added either way unless `without` names it."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses non-obvious side effects and constraints: free apps in `apps` are claimed, paid apps are refused with an exact fix, Site Health is always bundled unless excluded, the link expires in 10 minutes and carries a one-time secret, and the download permission is required. This is consistent with readOnlyHint=false (claims happen) and destructiveHint=false (nothing is removed; `without` only omits).

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?

It is front-loaded with the core action before branching into rules, and nearly every sentence encodes an operational constraint. It is nonetheless a dense, long block with nested parentheticals and some repetition of schema content (manifest/detail, Site Health), which slightly hurts scannability.

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 five-parameter tool with no output schema, the description covers what is returned (short-lived link, sha256, per-app requirements, download.command, download.needs), how authentication affects the link, and the post-download install procedure. Nothing an agent needs in order to call it correctly appears to be missing.

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 schema already carries the mechanical meaning of each parameter; the description nonetheless adds consequence-level semantics, e.g. that unowned free apps named in `apps` are claimed first, and that `without` can omit any app, not just health. Some of this duplicates the schema text (e.g. `detail` adding the bundle manifest), keeping 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?

The opening sentence gives a specific verb and resource ('Prepare the download for one site: a zip with the shared core plus the apps...') and enumerates the zip's contents, so an agent knows exactly what is produced. It is clearly distinct from siblings like get_app, list_owned, or check_updates.

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?

It states explicit when/when-not rules: 'Always pass `apps` on a first install' versus 'Without `apps` ... use that only to update a site that already runs them all.' It also names alternatives and their triggering conditions (claim_free_app for free claims, create_checkout for unowned paid apps, renew_updates when an update window blocks an app).

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