Skip to main content
Glama

validate_import_result

Verifies an imported asset exists, matches expected class, and checks dependency metadata and saved state. Use after importing textures, meshes, or skeletal assets to confirm successful load.

Instructions

Validate that an imported asset exists and matches expectations.

Use immediately after import_texture, import_static_mesh, import_skeletal_mesh, or generative imports to prove the asset loaded, has the expected class, has dependency/reference metadata, and is not still dirty when saved output is required.

Args: expected_asset_path: Imported asset path, e.g. "/Game/Meshes/SM_Table". expected_class: Optional expected class substring, e.g. "StaticMesh". source_file: Optional original OS file path to verify still exists. require_saved: Warn when the package is still dirty.

Returns: StructuredResult JSON with outputs: exists, class_name, class_matches, dirty, source_file_exists, dependency_count, referencer_count, valid.

KB: see knowledge_base/12_MCP_TOOL_USAGE_GUIDE.md#b2-graph-aware-diagnostics-diagnosticstoolspy Example: validate_import_result(expected_asset_path="/Game/MCP_Test/SM_Example", expected_class="StaticMesh")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_fileNo
require_savedNo
expected_classNo
expected_asset_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are present, so the description carries the full burden. It discloses what the tool verifies (existence, class match, dependency/reference metadata, dirty state), the require_saved warning behavior, and the full set of returned fields. It doesn't explicitly state whether the operation is read-only or detail error/failure modes, but the validation semantics are clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized with labeled sections: purpose, usage trigger, Args, Returns, KB reference, and Example. Every sentence earns its place, and the most important info is front-loaded in the first two lines. No redundant filler.

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?

Covers purpose, when to use, all parameters, return fields, a KB pointer, and an example call. Since an output schema exists, detailed return-value documentation is not needed here. The only minor gap is no discussion of failure handling or when not to use, but the description is sufficient for an agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, meaning the structured schema provides no explanations. The description fully compensates with an Args block that explains each parameter, including a concrete path example ('/Game/Meshes/SM_Table') and a class example ('StaticMesh'). This goes well beyond the bare property names and types.

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?

The description opens with the specific verb 'Validate' and the resource 'imported asset', then concretely defines expectations as existence, expected class, dependency/reference metadata, and non-dirty state. It explicitly names the import tools it pairs with (import_texture, import_static_mesh, import_skeletal_mesh, generative imports), distinguishing it from the many generic validate/check sibling tools.

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?

The description gives an explicit trigger: 'Use immediately after import_texture, import_static_mesh, import_skeletal_mesh, or generative imports.' This is clear and actionable context. It does not mention exclusions or alternatives, so it falls just short of a 5.

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