Skip to main content
Glama

get_prefab_catalog

Discover available Unity prefabs by category or name before instantiating them. Returns a cached, filterable catalog of all prefabs in the Assets folder.

Instructions

Get the prefab catalog for the current Unity project. Returns a categorized list of all prefabs available in the Assets folder. The catalog is generated by Unity on startup and cached.

Use this to discover available prefabs before using instantiate_prefab. Categories include: Buildings, Nature, Props, Characters, Vehicles, etc.

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": "get_prefab_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 100)
searchNoSearch term to filter prefab names (case-insensitive)
categoryNoFilter by category (e.g., 'Fantasy', 'Nature', 'Buildings'). Leave empty for all.
maxResponseBytesNoMaximum UTF-8 bytes of the complete result text. Omitted entries are reported; narrow filters or explicitly raise the budget for more detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that the catalog is generated by Unity on startup and cached, implying possible staleness, but never states whether it is a read-only operation, whether the cache refreshes after asset imports, or how truncation is signaled to the caller.

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 short sentences, front-loaded with the core action and ending with concrete category examples. Slight redundancy between 'categorized list' and the categories sentence, but nothing that meaningfully wastes the agent's attention.

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?

With no annotations and no output schema, the description covers the essentials: what is returned, where it comes from, caching behavior, and the intended next step. The remaining gap is how entries omitted by maxResponseBytes are surfaced, which matters for a tool whose result can be truncated.

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 all four parameters (limit, search, category, maxResponseBytes) are already documented in the schema, and the baseline is 3. The description adds only marginal value by giving example category names, which partly overlaps the schema's own 'Fantasy', 'Nature', 'Buildings' examples, and says nothing about combining search with category or the byte budget.

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 ('Get the prefab catalog') and names its scope ('for the current Unity project'), plus what the result contains (a categorized list of all prefabs in the Assets folder). An agent can distinguish this discovery tool from instantiate_prefab and other getters 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?

Explicitly says 'Use this to discover available prefabs before using instantiate_prefab', which gives an ordered workflow and names the downstream tool. It does not state when-not to use it (e.g. when a category filter or scene-bound listing would be preferable), so it stops short of full routing guidance.

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