Skip to main content
Glama

APKCube

Get a download URL

get_download_url

Mint a short-lived signed URL for one build — the newest held unless you pass an apkId from list_versions. Costs 10 credits — the most expensive call here, and the only one that hands over a file. Check get_version_security before handing anything to a person. The URL expires in about 5 minutes; fetch it promptly and do not store it. The response carries the file's sha256 — verify what you downloaded against it, because the signature is on the URL and not on the bytes.

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>"
    },
    "name": "get_download_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
apkIdNoA specific build from list_versions. Omit for the newest one.
variantIdNoOptional: an on-demand variant build of that release, from get_variant_status. It is served under the ordinary build's checks; omit it for the ordinary build.
packageNameYesAndroid package id.

Output Schema

NameRequiredDescriptionDefault
urlYesSigned URL, valid about 5 minutes. Fetch it before it expires.
apkIdYesThe artifact that was minted.
formatNo'apk', 'xapk' or 'apks' — the container `url` serves.
sha256YesSHA-256 of the file this URL serves, lowercase hex. Verify the download against it.
appNameYesThe app's display name.
fileSizeNoBytes.
expiresAtYesWhen `url` stops working.
variantIdNoPresent when an on-demand variant build was minted; `fileSize` and `sha256` are then the variant's.
packageNameYesPackage this file belongs to.
versionCodeNoBuild number of the minted build.
versionNameNoVersion string of the minted build.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only flag readOnlyHint=false, openWorldHint=true and idempotentHint=false; the description adds genuinely new behaviour: a 10-credit cost and its rank ('the most expensive call here'), a ~5 minute expiry, a non-storage rule, and the crucial caveat that the signature covers the URL rather than the bytes.

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

Conciseness5/5

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

Four sentences, each carrying distinct operational information (identity, cost, prerequisites, expiry and verification), with purpose front-loaded and no filler or repetition.

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, non-idempotent, open-world call this covers cost, URL lifetime, provenance of the id, a security pre-check, and integrity verification; with an output schema present, the description does not need to enumerate response fields, and it still highlights the one that matters.

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% and the schema already explains apkId, variantId and packageName, including the 'omit for the newest' default. The description restates the apkId sourcing but adds no format or edge-case detail beyond what the schema provides, so the baseline 3 applies.

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 ('Mint a short-lived signed URL for one build') plus the default scope ('the newest held unless you pass an apkId from list_versions'), which lets an agent distinguish it from read-only siblings like list_versions or get_manifest 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 Guidelines5/5

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

Explicitly routes the agent: obtain apkId from list_versions, and run get_version_security before handing a link to a person. It also states a handling rule ('fetch it promptly and do not store it'), so both the when and the when-not are covered.

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