Skip to main content
Glama

material_get

Read-onlyIdempotent

Retrieve a material's complete definition, including slot shader and field values, texture paths with sRGB flags, and objects it is assigned to.

Instructions

One material in full: each slot (albedo, surface, microsurface, reflectivity, transparency, ...) with shader and field values, textures as path and sRGB flag, and the objects it is assigned to.

Input Schema

NameRequiredDescriptionDefault
nameYes
fieldsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds scope information (which slots, how textures are represented, that assignment objects are included), but says nothing about behavior when the name is unknown or how expensive a full dump is.

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?

A single front-loaded sentence that leads with 'One material in full' and then enumerates slot, texture, and assignment data. Dense but every clause carries information; no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape need not be described, and the annotations cover safety. The remaining gap is the undocumented 'fields' toggle and the absence of any failure mode, which for a two-parameter lookup leaves the agent guessing about a supported option.

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

Parameters2/5

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

Schema description coverage is 0%: 'name' has no documented format (material name vs. path vs. case sensitivity) and 'fields' (boolean, default true) is never explained. The phrase 'with shader and field values' faintly hints that 'fields' controls that output, but the description never states the flag's effect or that it is optional.

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?

States precisely what is returned: a single material with per-slot shader/field values, textures as path plus sRGB flag, and assignments. The phrase 'One material in full' implicitly contrasts with the sibling material_list, though it never names that alternative or uses an explicit verb.

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?

Usage is only implied: an agent can infer this is the tool for inspecting one material's full contents, but there is no statement of when to prefer it over material_list or material_export, and no preconditions (e.g., material must already exist).

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