Skip to main content
Glama

set_collection_param_default

DestructiveIdempotent

Set the default value of a scalar or vector parameter in a Material Parameter Collection asset and save the change. Use scalar_value for scalars or [r, g, b, a] for vectors.

Instructions

Set the default of an existing scalar or vector parameter of a Material Parameter Collection asset and save it: a scalar takes scalar_value, a vector takes vector [r, g, b, a]. Errors when neither array has the name or the needed value is missing.

Returns: { collection_path: string, param_name: string, param_type: string, default_set: bool, saved: bool, default_value: number, scalar_value: number, default: object, default_rgba: [number] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vectorNoNew linear color for a vector parameter, as a JSON array [r, g, b, a]; alpha is 1 when only three values are given
param_nameYesName of the existing parameter to update
scalar_valueNoOptional new float value for a scalar parameter
collection_pathYesFull /Game path to the MPC asset

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.0
    • changedInput schema / properties / vector / description
      Previous value: -"Optional new [r, g, b, a] color for a vector parameter"New value: +"New linear color for a vector parameter, as a JSON array [r, g, b, a]; alpha is 1 when only three values are given"
    • changedInput schema / properties / vector / type
      Previous value: -"string"New value: +"array"
  2. First observedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag the non-read-only, idempotent, destructive nature, but the description adds real context: the asset is saved (persistence), the parameter must already exist, and it errors when the name is absent or the required value is missing. It does not spell out what the destructive hint actually overwrites (the prior default).

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?

Front-loaded with the action and scope, then the return shape. Two purpose sentences plus a returns block are all relevant; the returns block is verbose but justified since no output schema exists.

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?

No output schema exists, so the description compensates by enumerating return fields (default_set, saved, default_value, etc.). Combined with the error conditions and scalar/vector distinction, an agent has enough to call and interpret the tool.

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 baseline is 3, but the description adds the conditional mapping the schema does not state as a whole: a scalar parameter takes scalar_value and a vector parameter takes vector [r, g, b, a]. That ties param_type to the correct value field, which is meaningful selection guidance.

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?

States a specific verb (Set) and resource (the default of an existing scalar/vector parameter of a Material Parameter Collection asset), plus the side effect of saving. An agent can distinguish it from sibling add_collection_scalar_param / remove_collection_param / clear_collection_params without opening schemas.

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?

The word 'existing' implies this is not the tool for adding parameters, and the error clause tells the agent it needs the right value field. However, no alternatives are named explicitly and there is no explicit when/when-not against the sibling add_*, rename_*, or clear_* tools.

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