Skip to main content
Glama

scene_list_prefabs

Read-only

List saved map prefabs with their IDs, names, source assets, object or creature type, and scale; omit mapPath to read the newest official save. Read-only.

Instructions

List the prefabs (元件) saved in a map: prefab id, name, the asset it is made of, object or creature, and its scale. A node graph creates prefabs at run time, anywhere, with f.createPrefab(prefabId, ...). Without mapPath it reads the newest official save. Read-only.

Input Schema

NameRequiredDescriptionDefault
mapPathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the 'Read-only' sentence is redundant. However, the description adds real behavioral context beyond the annotations: it explains the fallback to the newest official save when mapPath is omitted, and notes that node graphs create prefabs at run time via f.createPrefab, implying this tool surfaces saved prefabs rather than runtime-spawned ones.

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 the purpose, then returned fields, then the default-source caveat, then a short script note. Every sentence carries information, though the f.createPrefab sentence is somewhat tangential to the act of listing and could be trimmed.

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 one-optional-parameter read tool with no output schema, the description covers purpose, returned fields, and default behavior well. The remaining gaps, such as behavior on a missing or invalid map and whether the result can be empty, are minor for a simple list operation.

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 0%, so the description must carry the parameter's meaning. It does define what omitting mapPath does (reads the newest official save), which the bare string-typed schema does not. It still doesn't say what mapPath expects (file path format, absolute vs relative, what happens on an invalid path), so it falls short of a 5.

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 ('List the prefabs saved in a map') and enumerates the returned fields (id, name, asset, object/creature, scale). This clearly separates it from siblings like scene_add_prefab and scene_update_prefab, which mutate prefabs.

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?

The 'Without mapPath it reads the newest official save' sentence tells the agent the default source, which is useful context. But it never explicitly says when to call this versus scene_add_prefab/scene_update_prefab, nor does it state preconditions beyond the default path behavior.

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

Deploy Server

Other Tools