Skip to main content
Glama

modo_get_shader_tree

Read-only

Retrieve the scene's shader tree with materials, masks, and texture layers in layer order; resolve texture locators and image stills, and inspect one material by passing its mask ID as root.

Instructions

The scene's shader tree: materials, masks, texture layers and their settings, in layer order (which is semantically significant in Modo). Also resolves texture locators and image stills that hang off layers via the shadeLoc item graph and would be invisible to a plain hierarchy walk. Use detail='structure' for a big tree, or pass a mask id as root to inspect one material.

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

Input Schema

NameRequiredDescriptionDefault
rootNo
limitNo
detailNofiltered
instanceNoThis chat's Modo instance token (modo-xxxxxx) from modo_use_instance or modo_launch_instance. Pass it on every call once you have one; leave empty only while a single chat works with Modo.
response_formatNomarkdown
resolve_locatorsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), so the description's added value is the disclosure that layer order is semantically significant and that the tool traverses the shadeLoc item graph to surface texture locators and image stills. That is real behavioral context, but it says nothing about cost, tree size, truncation, or what the default 300 limit does to results.

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?

Three sentences, front-loaded with what the tree contains, then why it beats a naive walk, then how to call it. Dense but each sentence contributes; the parenthetical about layer order is informative rather than filler, though the second sentence is long and packs two ideas.

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 an output schema present the description needn't document return values, and annotations cover safety, so the remaining obligations are purpose, traversal behavior, and invocation hints, all of which are addressed. The one gap is scale handling: nothing explains what happens when the tree exceeds the default limit.

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 coverage is only 17%, so the description must carry the parameter burden, and it does add meaning for three of six: root as a mask id, detail='structure' for large trees, and the resolve_locators behavior. limit and response_format go unmentioned, which leaves the truncation semantics of a 300-item default unexplained.

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 description names a specific resource and enumerates its contents (materials, masks, texture layers and settings), and the phrase about what 'would be invisible to a plain hierarchy walk' implicitly separates it from modo_get_scene_graph. It is a noun-phrase description of the result rather than an explicit verb, so the action is inferred from the tool name rather than stated.

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?

It gives a clear situational cue: use this when you need shader/texture-layer data that a plain hierarchy walk would miss. It also supplies concrete invocation guidance ('detail=structure for a big tree', 'pass a mask id as root to inspect one material'), though it never explicitly names an alternative tool to use for other cases.

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