Skip to main content
Glama

APKCube

Request a variant build

request_variant

Ask for an on-demand build of an app's newest release that the ordinary download does not carry: every language (+all-langs), the 32-bit ARM build (armeabi-v7a), both ARM ABIs in one bundle (universal), the newest build for an older Android version (@sdkNN), or exactly what one real device gets (device:<slug>). We must already hold the ordinary build — call list_versions first, and request_fetch if it is empty. Costs 10 credits, even when the variant is already built (READY); free only when a build of that variant is already running (FETCHING). A build usually takes a few minutes: poll get_variant_status, not this tool, then pass its variantId to get_download_url. Builds are temporary — see expiresAt.

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": {
      "packageName": "<packageName>",
      "variant": "<variant>"
    },
    "name": "request_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
variantYesWhich build: `<arch>[+all-langs][@sdkNN|@vcN]` with arch one of arm64-v8a, armeabi-v7a, universal, or `device:<slug>[+all-langs]`. Plain `arm64-v8a` is the ordinary build and not a variant. `+all-langs` carries every language Google Play has rather than the standard 24; armeabi-v7a is the 32-bit ARM build; universal is both ARM ABIs in one bundle; `@sdkNN` (NN one of 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24) asks for the newest build that runs on that Android version; `@vcN` asks for one exact build by its versionCode (not combined with `@sdkNN`; refused with UNLIKELY_VERSION when N is not written like this app's build numbers); `device:<slug>` is exactly what Play serves that device and takes neither pin. Device slugs: pixel-9a, galaxy-s25-ultra, nothing-phone-1, samsung-f34-5g, samsung-s20-plus, samsung-a13-5g, redmi-note-12-4g, xiaomi-11-lite-5g-ne, poco-f1, oneplus-8-pro, huawei-mate-20, xperia-5, oppo-r17, xiaomi-mi-a1, redmi-7, realme-5i, nokia-1-3, realme-5-pro, samsung-j5-prime, pixel-9-pro-fold, pixel-tablet, shield-tv, bravia-vu2, bravia-vh22, pixel-watch-3, hp-googlebook-14, play-games-pc. Examples: `armeabi-v7a`, `universal+all-langs`, `arm64-v8a@sdk28`, `arm64-v8a@vc1234`, `device:pixel-9a`.
packageNameYesAndroid package id.

Output Schema

NameRequiredDescriptionDefault
buildNo
errorNoFAILED only: why, in words safe to show a person.
statusYesREADY: `build` is live — mint it. FETCHING: being built; poll again in 10–30 seconds. FAILED: the last build failed, see `error`; requesting again retries. NEEDS_FETCH (status only): nobody has asked for this variant of the current release, or its build expired — request it.
variantYesThe variant asked about.
packageNameYesThe package.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=false, destructive=false; the description adds the substantive traits an agent needs — a 10-credit cost even on a READY cache hit, free only while FETCHING, minutes-long build latency, and temporary results via expiresAt. It also flags the precondition that the ordinary build must already be held, which no annotation conveys.

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 variant list is parenthetical, with cost, latency, and polling guidance following in a logical order. The parenthetical enumeration of variant forms is somewhat redundant with the schema and makes the paragraph dense, but no sentence is truly wasted.

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 paid, asynchronous, non-idempotent build request the description covers the prerequisite, cost model, expected duration, the correct polling sibling, and result expiry. Since an output schema exists, return-value shape need not be explained, leaving no meaningful gap.

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 description coverage is 100% and the variant parameter already documents the full grammar, arch list, @sdkNN/@vcN rules and device slugs, so the baseline is 3. The description's enumeration of the variant forms largely restates that schema content rather than adding new semantics, though it does reinforce that plain arm64-v8a is not a variant.

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 — request an on-demand build of an app's newest release — and immediately scopes it against what the 'ordinary download' provides. Each supported variant form (+all-langs, armeabi-v7a, universal, @sdkNN, device:<slug>) is named, so an agent can tell this apart from request_fetch and get_download_url without opening either 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?

Gives explicit sequencing and alternatives: call list_versions first, request_fetch if the ordinary build is missing, poll get_variant_status rather than this tool, then pass variantId to get_download_url. Both the when-to-use and the when-not-to-use-this-tool paths are spelled out with named siblings.

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