Skip to main content
Glama

get_expansion_file

Read-only

Retrieves the OBB main or patch expansion file attached to a specified APK version code, returning its size and referenced version. Use for legacy APK-only apps; app bundles use asset packs instead.

Instructions

Get the OBB expansion file attached to an APK version code, returning fileSize and referencesVersion. Legacy APK-only feature: apps shipping app bundles use asset packs instead and will get an error here.

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": {
      "apk_version_code": "<apk_version_code>",
      "expansion_file_type": "<expansion_file_type>"
    },
    "name": "get_expansion_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
package_nameNoApp package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME)
apk_version_codeYesVersion code of the APK, e.g. '415'
expansion_file_typeYesWhich expansion file to read: 'main' or 'patch'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the read-only and open-world profile, so the description adds value by disclosing the error behavior for bundle-based apps and naming the return fields (fileSize, referencesVersion). It does not cover what happens when no expansion file exists or whether permissions beyond the default package are needed, leaving some behavioral gaps.

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?

Two sentences, nothing wasted, with the core purpose and return values front-loaded ahead of the caveat. The legacy-scoping note is placed exactly where it matters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read tool with no output schema, the description names the returned fields and flags the main failure mode, which is most of what an agent needs. It remains silent on behavior when the expansion file is absent, which would round out the picture.

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%, including the enum for expansion_file_type and the package_name default, so the schema already carries full parameter meaning. The description only echoes 'APK version code' and adds no format or constraint detail beyond the schema, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb ('Get') with a precise resource ('OBB expansion file attached to an APK version code') and even names the returned fields. It implicitly differentiates itself from bundle-oriented siblings by stating the feature is APK-only, though it never names a sibling tool directly.

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 gives an explicit when-not-to-use rule: apps shipping app bundles use asset packs and will get an error here. That is real routing guidance. It stops short of pointing an agent at a specific alternative tool for the bundle case, so it is not a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.