Skip to main content
Glama

Asset Import

asset_import
Idempotent

Downloads a Poly Haven CC0 model and its textures, then imports it into a live Maya session with auto-wired maps, a polycount guard, and grouped output for repeatable scene assembly.

Instructions

Import a Poly Haven CC0 model into Maya (find ids via asset_search).

Boundary: Disambiguated from asset_search (host-side id and metadata lookup that touches no Maya session) — asset_import is the mutating half and needs a live session to import into.

Pipeline: host downloads FBX + textures from the Poly Haven whitelist (https-only, size caps, per-file md5 verify) into the platformdirs cache -> Maya imports the local FBX (explicit meters unit handling) -> texture maps auto-wire by PH naming convention (diff/albedo -> color sRGB; rough/metal -> Raw single-channel; nor_gl -> bump2d normal) -> polycount gate -> group as GRP_asset_ -> bbox/metadata report.

Idempotent by default: a second call with the same asset_id reports the existing group instead of duplicating (force=True re-imports).

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": {
      "asset_id": "<asset_id>"
    },
    "name": "asset_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoRe-import even when GRP_asset_<id> already exists.
asset_idYesPoly Haven asset id (case-sensitive, e.g. 'Camera_01').
resolutionNoTexture tier '1k' (default), '2k', '4k', '8k'.1k
session_keyNoMaya session key.
max_polycountNoFace-count guard (default 100000); imports over the limit are deleted and rejected.
allow_high_polycountNoOverride the polycount guard (the override is written to the call record).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.0
    • changedInput schema / properties / allow_high_polycount / description
      Previous value: -"Override the polycount guard (the\noverride is disclosed in the audit log)."New value: +"Override the polycount guard (the\noverride is written to the call record)."
  2. First observedv0.4.1

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false and openWorld=true, so the safety profile is covered. The description adds real context beyond that: https-only whitelist downloads with size caps and md5 verification into a platformdirs cache, explicit meter unit handling, auto-wiring of texture maps by naming convention, a polycount gate, and grouping as GRP_asset_<id>. It does not cover failure modes such as what happens when the download fails partway or how a partially wired import is cleaned up, so it sits at a solid but not exceptional level.

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-loads the core action and uses labeled sections (Boundary, Pipeline, Idempotent by default) so an agent can scan for the part it needs. The pipeline sentence is dense and chains many steps with arrows, which is efficient but slightly harder to parse than separate clauses.

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 six-parameter, network-touching mutation tool, the description covers preconditions (live session), the download/verify/import/wire/group sequence, and idempotency semantics. With an output schema present and annotations covering the safety profile, nothing essential for a correct call is missing.

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%, so the schema already documents every parameter including force, resolution tiers, and the polycount guard. The description reinforces the force/GRP_asset_<id> interaction and the polycount rejection behavior, but adds little syntax or meaning the schema does not already carry, which matches the baseline for a fully documented schema.

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 ('Import a Poly Haven CC0 model into Maya') and immediately distinguishes it from the sibling asset_search by describing that tool as host-side id/metadata lookup touching no Maya session. An agent can select between the two 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 routing guidance ('find ids via asset_search'), states the precondition that a live Maya session is required, and explains the default idempotent behavior plus the force=True escape hatch. The when-to-use and when-not conditions are both covered.

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