Skip to main content
Glama

Import a Unity Asset Store package

asset_import_unity

Convert a Unity package's models, textures, and materials into self-contained GLBs plus import-report.json; accepts .unitypackage, UPM tarball, or project folder.

Instructions

Convert models (FBX, OBJ, .blend), textures and materials of a Unity package the user owns into self-contained GLBs plus import-report.json. Accepts a .unitypackage, a UPM tarball or a project folder, applies each model's import scale, binds FBX material slots to .mat files (externalObjects, then by name) and maps Standard, URP Lit/SimpleLit/ComplexLit and HDRP Lit to glTF PBR; other shaders fall back to their saved colour and texture and are reported. Needs Blender: THREENATIVE_BLENDER, PATH, or a pinned download (disable with THREENATIVE_TOOLCHAIN_AUTOINSTALL=0). Requires acceptUnityAssetStoreEula: true. It never contacts or signs in to Unity.

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": {
      "source": "<source>",
      "outputDir": "<outputDir>",
      "acceptUnityAssetStoreEula": "<acceptUnityAssetStoreEula>"
    },
    "name": "asset_import_unity"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetsNoImport only these models and prefabs: a project path (Assets/Models/crate.fbx), a file name or a name without extension. Omit to convert every FBX, OBJ and .blend model and import every prefab. Models a selected prefab uses are converted too.
sourceYesA .unitypackage, a UPM package tarball (.tgz) or a Unity project folder on this machine. unity_list_packages lists the Unity Editor's cached downloads.
licenseNo
outputDirYesDirectory the GLBs, textures and import-report.json are written to. It must be new or empty: this tool never overwrites an import.
projectRootNo
maxTextureSizeNoOptional longest edge for written textures. Leave unset to keep the source resolution.
allowNonCommercialNo
acceptUnityAssetStoreEulaYesRequired acknowledgement that the user owns the package, accepts the Unity Asset Store EULA for it, and has checked any Restricted Asset terms. The tool cannot check them: Asset Store terms forbid automated access.

Output Schema

NameRequiredDescriptionDefault
countsYes
failedYes
modelsYes
blenderYes
prefabsYes
skippedYes
texturesYes
warningsYes
materialsYes
outputDirYes
durationMsYes
reportPathYes
licenseFilesYes
materialAssetsYes
importerVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly=false, idempotent=false, destructive=false; the description goes well beyond by stating outputDir must be new or empty and is never overwritten, disclosing the Blender toolchain resolution order and the THREENATIVE_TOOLCHAIN_AUTOINSTALL=0 opt-out, and noting that unsupported shaders fall back to saved colour/texture and are reported. It also clarifies the tool never contacts or signs in to Unity, which explains the manual EULA acknowledgement.

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 transformation, then requirements, then constraints; nearly every clause carries operational information. It is a single dense paragraph with long sentences, which slightly hurts scannability but avoids filler.

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 non-idempotent, write-producing import tool with 8 parameters, nested objects and an output schema, the description covers inputs, environment prerequisites, overwrite policy and partial-failure reporting. Return-value detail is unnecessary since an output schema exists.

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?

At 63% schema coverage the description still adds meaning: it explains what assets filtering does (project path, file name, name without extension; prefab dependency expansion), that outputDir must be empty, and why acceptUnityAssetStoreEula cannot be validated automatically. It leaves license, projectRoot and allowNonCommercial unaddressed, so not fully compensating.

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 concrete verb and resource set — converts models, textures and materials of a Unity package into self-contained GLBs plus import-report.json — and enumerates accepted input forms (.unitypackage, UPM tarball, project folder). This is clearly distinguishable from siblings like asset_import_unreal 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 Guidelines4/5

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

Gives clear preconditions for calling it (user must own the package, acceptUnityAssetStoreEula: true, Blender available) and points to unity_list_packages for locating cached downloads. It does not explicitly route to or away from alternative importers for other engines, so it stops short of full when/when-not guidance.

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