Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

set_material_properties

Idempotent

Set multiple material attributes—diffuse, emissive, metalness, gloss, opacity, maps—in one request. Update only the specified fields to customize a material asset.

Instructions

Set any combination of properties on a material asset in one call (diffuse, emissive, metalness, gloss/shininess, opacity, maps, etc.). Only the provided fields are changed; all fields are optional. Colors are [r,g,b] 0-1; map fields take asset ids. Returns the updated asset summary. When NOT to use: to change only the diffuse color (set_material_diffuse is a shorthand) or to create a new material (use create_assets type="material").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetIdYesAsset ID
propertiesYesMaterial properties to set (only included fields are changed)
Behavior4/5

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

Annotations already carry readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds genuinely useful behavioral context beyond those flags: partial-update semantics ('Only the provided fields are changed; all fields are optional') and the return behavior ('Returns the updated asset summary'). This is consistent with idempotentHint and clarifies the non-destructive update model. No contradictions found.

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?

Five short sentences, each earning its place: purpose, patch semantics, value formats, return value, and exclusion routing. Front-loaded with the operation, zero fluff, and no repetition of what the schema already states.

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 tool with a ~200-property nested schema and no output schema, the description covers everything an agent needs to invoke it correctly: what it does, partial-update semantics, value/format conventions, the return value, and when to use alternatives. The massive schema carries per-property detail while the description carries the behavioral context.

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 100%, so the schema already documents both top-level parameters and most nested properties with descriptions like 'RGB color [r,g,b] 0-1' and 'Nullable asset reference'. The description adds cross-cutting conventions that apply across the whole properties object: color format, map fields taking asset ids, and patch behavior. This exceeds the baseline 3 by clarifying semantics no single schema entry can express.

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 a specific verb+resource+scope: 'Set any combination of properties on a material asset in one call.' It enumerates representative property families (diffuse, emissive, metalness, gloss/shininess, opacity, maps) and explicitly distinguishes itself from set_material_diffuse and create_assets. An agent can tell exactly what this tool does versus its siblings without opening the schema.

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?

Provides an explicit 'When NOT to use' section naming two alternatives with concrete conditions: set_material_diffuse for single diffuse color changes and create_assets type='material' for material creation. This is exactly the routing guidance that prevents wrong tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/playcanvas/editor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server