Skip to main content
Glama
Almond MCP

Almond MCP

assign_material

Applies curated PBR materials to Rhino objects and writes material and structural metadata for downstream Unreal/Datasmith pipelines, with optional render material and metadata toggles.

Instructions

Assigns a curated PBR material to Rhino objects and stamps them with machine-readable material metadata for downstream pipelines (Unreal).

For structural members, also declare what the object IS in construction terms: structural_role (e.g. "joist", "girder", "stud", "truss_chord") and construction_system (a system_id from get_construction_guidance). These are written as almond:structural_role / almond:construction_system user text on the objects, so the stated construction intent lives on the Rhino geometry itself and survives export. If the chosen material_id is not a typical finish for the declared system, the response carries a warning (it still applies).

Two effects, independently switchable:

  • apply_render_material: creates/reuses a physically-based Rhino material (ALMOND::<material_id>) and assigns it per object, so GLB export (publish_to_chestnut) and Datasmith carry real PBR channels.

  • attach_metadata: writes almond:* user-text keys (material_id, name, category, ue_material_slot, base_color, metallic, roughness, opacity) on each object - Datasmith imports these as asset metadata in Unreal, so materials can be remapped by ue_material_slot deterministically.

Works on breps, meshes, and block instances (an instance's material applies to definition geometry set to 'by parent'; the metadata is always attached to the instance itself). Call list_materials first to discover material_ids.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "guids": "<guids>",
      "material_id": "<material_id>"
    },
    "name": "assign_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
guidsYes
material_idYes
attach_metadataNo
structural_roleNo
construction_systemNo
apply_render_materialNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so thoroughly: it names the two independently switchable effects, the exact user-text keys written (almond:material_id, name, category, ue_material_slot, base_color, metallic, roughness, opacity), the naming convention for created materials (ALMOND::<material_id>), and that a mismatch between material and declared system returns a warning but still applies.

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 purpose sentence followed by a scannable two-bullet effect list, so structure is strong. The construction-intent paragraph is dense but each clause adds distinct information; minor tightening of the block-instance parenthetical would help.

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?

An output schema exists, so return values need not be described, and the definition still flags the warning case. For a six-parameter mutation tool with zero annotation and schema-description coverage, the definition supplies everything an agent needs to call it correctly, including block-instance semantics.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and largely does: material_id is tied to list_materials, structural_role and construction_system are given example values and their persisted key names, and apply_render_material/attach_metadata are explained as independent switches with defaults. Only guids is left implicit via "per object".

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 and resource ("Assigns a curated PBR material to Rhino objects") and immediately narrows the scope with the metadata stamping side effect. Points at siblings list_materials, publish_to_chestnut and get_construction_guidance, so an agent can place it in the workflow without opening another 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 actionable preconditions ("Call list_materials first to discover material_ids") and a conditional branch for structural members that requires a system_id from get_construction_guidance. It does not explicitly exclude the assign_construction sibling, but the workflow context is clear enough to select correctly.

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