Skip to main content
Glama

Import asset

asset_import
Idempotent

Import a validated uploaded asset into the current project head as a new revision. Use upload_create then upload_complete before this tool; for library slugs or generated provider models use asset_library_import. Stale base revisions reject with REVISION_CONFLICT. Returns an asynchronous job handle; job_wait/job_get reveal success, errors and the committed revision.

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": {
      "projectId": "<projectId>",
      "assetId": "<assetId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "asset_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoUploaded file format. auto (default) sniffs file bytes; specify gltf or stl explicitly for those formats. font covers supported uploaded font files.auto
assetIdYesValidated ast_… asset ID returned by upload_complete; quarantined or rejected uploads cannot be imported.
placementNoRequested placement policy; currently both values preserve importer-native transforms. Neither recenters the asset or moves it to the scene cursor.origin
projectIdYesStable project ID returned by project_create or projects_list.
unitPolicyNoRequested unit convention; currently reserved, with importer-native units preserved for either value. Inspect dimensions and scale explicitly after import.meters
baseRevisionIdNo"HEAD" (default) targets the project's current head. Mutations MUST build on the head: passing an older revision is rejected with REVISION_CONFLICT, since history is linear. To continue from an older scene, revision_restore it forward first.HEAD
idempotencyKeyYesStable caller-chosen key for safe retries of this same request.
targetCollectionNoExisting destination collection name or ID, up to 64 characters. If absent or not found, importer collection links are preserved.

Output Schema

NameRequiredDescriptionDefault
jobYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / assetId / description
      Added value: +"Validated ast_… asset ID returned by upload_complete; quarantined or rejected uploads cannot be imported."
    • addedInput schema / properties / format / description
      Added value: +"Uploaded file format. auto (default) sniffs file bytes; specify gltf or stl explicitly for those formats. font covers supported uploaded font files."
    • addedInput schema / properties / placement / description
      Added value: +"Requested placement policy; currently both values preserve importer-native transforms. Neither recenters the asset or moves it to the scene cursor."
    • addedInput schema / properties / targetCollection / description
      Added value: +"Existing destination collection name or ID, up to 64 characters. If absent or not found, importer collection links are preserved."
    • addedInput schema / properties / unitPolicy / description
      Added value: +"Requested unit convention; currently reserved, with importer-native units preserved for either value. Inspect dimensions and scale explicitly after import."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (which only declare it non-read-only, idempotent, non-destructive), the description discloses the head-only mutation rule, the REVISION_CONFLICT failure mode, and that the call returns an asynchronous job handle resolved via job_wait/job_get rather than a finished asset.

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, no filler, ordered by importance: what it does, prerequisites and alternative, failure mode, return shape. Each sentence carries distinct decision-relevant information.

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 an 8-parameter mutating import tool with full schema coverage and an output schema, the description supplies everything an agent still needs: gating prerequisites, conflict semantics, sibling routing, and how to observe the async result.

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% and already documents every parameter, so the baseline is 3; the description adds meaning by tying baseRevisionId's HEAD default to the concrete REVISION_CONFLICT runtime behavior, and it reinforces that assetId must be a validated (non-quarantined) ID.

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 first sentence names a specific verb and resource ('Import a validated uploaded asset') plus the exact effect ('into the current project head as a new revision'), which distinguishes it from asset_library_import named immediately after.

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 gives an explicit prerequisite chain (upload_create then upload_complete), an explicit alternative with its selection condition ('for library slugs or generated provider models use asset_library_import'), and a recovery path (revision_restore forward) when REVISION_CONFLICT fires.

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