Skip to main content
Glama

shader_analyze_complexity

Estimate material shader complexity from graph structure and risk flags to spot performance issues early, with optional optimization suggestions.

Instructions

Estimate Material shader complexity from graph structure and risk flags.

This is a fast technical-art audit, not a compiled instruction count. Pair it with renderer_capture_viewmode or shader_visualize_overdraw for scene-level visual validation.

Args: material_path: Material or Material Instance asset path to inspect include_recommendations: Include optimization suggestions

KB: see knowledge_base/08_MATERIALS_AND_RENDERING.md#overview Example: shader_analyze_complexity(material_path="/Game/MCP_Test/M_Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
material_pathYes
include_recommendationsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior3/5

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

With no annotations provided, the description itself must carry the behavioral transparency burden. It does disclose that the result is an estimate based on graph structure and risk flags, and that it is not a compiled instruction count, which is useful. However, it does not mention whether the operation is read-only, whether any editor state changes occur, or what side effects or permissions are involved.

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 structured and front-loaded with the core purpose, followed by scope and complementary tools, then parameters, knowledge-base pointer, and an example. Every section earns its place and there is no redundant filler.

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 two-parameter analysis tool, the description covers purpose, method, limitations, complementary tools, parameter semantics, a KB reference, and an example. An output schema is present, so detailed return-value documentation is not required here, and nothing critical for calling the tool correctly seems missing.

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 Args section in the description is important and does compensate. It defines material_path as 'Material or Material Instance asset path to inspect' and include_recommendations as 'Include optimization suggestions,' and provides a concrete example path. This adds usable meaning beyond the bare parameter names in the schema.

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 uses a specific verb and resource: 'Estimate Material shader complexity from graph structure and risk flags.' It also distinguishes itself from a compiled instruction count and identifies complementary visualization tools, making its purpose and scope clear.

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?

The description explicitly frames this as a 'fast technical-art audit' and says it is 'not a compiled instruction count.' It also names renderer_capture_viewmode and shader_visualize_overdraw as the tools to pair with for scene-level visual validation, giving the agent clear context for when to use this tool versus alternatives.

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