Skip to main content
Glama

rename_collection_param

Destructive

Rename a scalar or vector parameter in a Material Parameter Collection asset, preserving its ID and saving the change; rejects duplicate names.

Instructions

Rename one parameter of a Material Parameter Collection asset, keeping its Id, and save it. Refuses when new_name is already used in the same array, and errors when param_name is not in the array param_type selects (default scalar).

Returns: { collection_path: string, param_name: string, new_name: string, param_type: string, renamed: bool, saved: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_nameYesNew parameter name, must not collide with another
param_nameYesCurrent parameter name
param_typeNoWhich array to search: "scalar" or "vector", any case; omitted or anything else means scalar
collection_pathYesFull /Game path to the MPC asset

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / param_type / description
      Previous value: -"scalar or vector, default scalar"New value: +"Which array to search: \"scalar\" or \"vector\", any case; omitted or anything else means scalar"
  2. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already disclose destructiveHint=true and readOnlyHint=false, so the write profile is covered. The description adds real value beyond that: it preserves the parameter Id (critical since material graphs reference it), persists the change ('and save it'), and documents two failure modes (name collision refusal, missing-parameter error). Missing only things like undo/transaction behavior.

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?

Two tight sentences plus a return shape, front-loaded with the core action and Id preservation before the failure conditions. Every sentence earns its place, and the return line is not redundant because there is no output schema.

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 4-parameter mutation tool with annotations but no output schema, the description covers the action, the Id-preservation semantics, persistence, both failure modes, and the return shape. Nothing an agent needs to call it correctly is 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 coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it ties param_name to an existence requirement in the selected array and restates the param_type defaulting to scalar. That constraint-based framing is genuinely additive over the schema field docs.

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 (rename), a specific resource (one parameter of a Material Parameter Collection asset), and a distinguishing scope constraint (keeping its Id, then saving). An agent can distinguish this from add_collection_scalar_param/remove_collection_param and from the many unrelated rename_* siblings without opening any schema.

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?

Gives clear preconditions that frame when the tool applies: new_name must not collide in the same array, and param_name must exist in the array selected by param_type. It does not name an alternative (e.g., remove+add, or regenerate_collection_param_id), so 4 rather than 5.

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