Skip to main content
Glama

Download objects of Alloy's object library (cards, meshes, textures, thumbnails) from the Hugging Face Hub into the local cache

fetch

Downloads Alloy asset libraries or selected objects into the shared cache for simulations, reusing files whose sha256 already matches.

Instructions

Files go to $ALLOY_CACHE/imports// (default ~/.cache/alloy/imports//), where scenes, compose and the API find them; files already there with the right sha256 are not downloaded again. An object whose model uses another object's files (a composed cabinet's door panel and handle) brings that object too (required). Several fetches can fill one cache at the same time. The library is a public Hugging Face dataset: no login is needed (hf auth login or HF_TOKEN raises the Hub's rate limit). Example arguments: {"library": "ycb_gso", "category": "ycb"}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
listNolist libraries, categories and names instead of downloading
repoNodataset repo id (default $ALLOY_ASSETS_REPO, else Alloy's library)
namesNoobject names (alloy fetch --list shows them)
libraryNoa whole library: ycb_gso, robocasa, gymanything, objaverse, alloy
workersNoparallel downloads
categoryNoonly this category (e.g. blenders, mug)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

The description adds substantial behavior beyond the annotations: it discloses the on-disk write location, sha256-based skip-if-present dedupe, transitive dependency pulling via `required`, safety for concurrent fetches into one cache, and that no login is required (with HF_TOKEN only raising Hub rate limits). These are exactly the operational details annotations cannot convey. Minor tension: 'files already there with the right sha256 are not downloaded again' reads as partial idempotency while idempotentHint=false, but this is dedupe, not a contradiction.

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?

Five dense sentences, each carrying distinct information (path, dedupe, dependencies, concurrency, auth), plus a compact example argument block. It is slightly back-loaded: the first sentence is a filesystem path detail rather than the core action, so the purpose arrives via the title rather than the opening line.

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 six-parameter download tool with no output schema, the description covers destination, dedupe, dependencies, concurrency, and auth/rate-limit expectations. It leaves return values and partial-failure behavior unstated, but since files are the output and their location is given, the gap is modest.

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 explains all six parameters, including the 'list' mode and default repo. The description contributes an example argument object and clarifies that `library` selects a whole library and `category` narrows it, but adds no format or precedence detail the schema lacks. Baseline 3 is 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 title and description give a specific verb and resource: downloading object-library assets (cards, meshes, textures, thumbnails) from the Hugging Face Hub into a local cache at $ALLOY_CACHE/imports/<library>/. An agent knows exactly what the tool does. It does not, however, distinguish itself from the sibling 'import' tool, which is the most likely confusion point.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage context is implied rather than stated: the description explains the cache destination and that already-correct files are skipped, which hints at when to call it, but it never says when to prefer 'fetch' over 'import' or 'list'. The discovery path ('alloy fetch --list') appears only in the schema's 'names' field, not in the description itself.

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