Skip to main content
Glama

Import a library asset

asset_library_import
DestructiveIdempotent

Import a library asset into a project as a new revision. Returns a job handle. Use only after the user has chosen the asset/action or delegated source selection; search and asset_preview can present options without importing or creating a project. source=polyhaven (CC0): HDRIs become the world environment, models join the scene, texture sets become a wired PBR material (applyToObjects assigns it). source=sketchfab: slug is the model uid (requires the org's Sketchfab token). source=hyper3d / hunyuan3d / tripo3d: slug is a finished generation taskUuid from asset_generate_3d. Scale generated/Sketchfab models on import with targetSize (largest dimension in meters — chair≈1.0, table≈0.75, car≈4.5, person≈1.7).

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>",
      "slug": "<slug>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "asset_library_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
typeNomodel
sourceNopolyhaven
projectIdYesStable project ID returned by project_create or projects_list.
resolutionNo2k
targetSizeNo
materialNameNo
applyToObjectsNo
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.

Output Schema

NameRequiredDescriptionDefault
jobYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructive=true, idempotent=true, and openWorld=true, so the safety profile is covered. The description adds context the annotations cannot: the job-handle return, source-specific scene mutations (HDRI becomes world environment, models join the scene, textures become a wired PBR material), and the Sketchfab token requirement. It stops short of explaining what the destructive flag means in practice (e.g. project head advancement).

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 purpose and return value, then organized by source, which mirrors how an agent must reason about the call. The semicolon-chained clauses are dense and a couple of them (the object-size examples) are borderline verbose, but essentially every sentence carries 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 a 10-parameter, multi-source import tool, the description covers the decision points an agent needs: when to call it, which sibling to use instead, per-source preconditions, and how to size imported models. With an output schema present, the brief mention of the job handle is sufficient, and the schema itself documents baseRevisionId and idempotencyKey.

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 description coverage is only 30% across 10 parameters, so the description must carry weight, and it does: it defines what slug means per source, enumerates source-specific outcomes, explains applyToObjects as the assignment target, and gives concrete targetSize scaling anchors (chair~1.0, car~4.5). type, resolution, and materialName are left to the schema's enum values and name alone.

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 library asset into a project as a new revision") and immediately declares the side effect and return value ("Returns a job handle"). It then breaks the behavior down per source value (polyhaven, sketchfab, hyper3d/hunyuan3d/tripo3d), so an agent can tell exactly what this does that asset_preview / search-style tools do not.

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 gates usage: "Use only after the user has chosen the asset/action or delegated source selection," and names the alternative path ("search and asset_preview can present options without importing or creating a project"). It also gives per-source preconditions, e.g. a finished taskUuid from asset_generate_3d and the org's Sketchfab token.

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