Skip to main content
Glama

set_props

Idempotent

Set static properties on one element or multiple layers in one change, merging each over existing element and asset values; supports token references like "{md.sys.color.primary}".

Instructions

Set static props on an element, or on several at once with layers (each merged over what the element has and its asset, so a prop it takes from its asset is set too). Values may be token refs like "{md.sys.color.primary}".

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": {
      "composition": "<composition>"
    },
    "name": "set_props"
  }
}

Input Schema

NameRequiredDescriptionDefault
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
layerNoThe element id
propsNo
layersNoSeveral elements in one change, instead of layer and props
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.
compositionYesComposition name (file in compositions/ without .json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
    • addedInput schema / properties / layer / description
      Added value: +"The element id"
    • addedInput schema / properties / layers
      Added value: +{
      +  "description": "Several elements in one change, instead of layer and props",
      +  "items": {
      +    "properties": {
      +      "layer": {
      +        "type": "string"
      +      },
      +      "props": {
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "layer",
      +      "props"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / scene
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "composition",
      -  "scene",
      -  "layer",
      -  "props"
      -]New value: +[
      +  "composition"
      +]
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare idempotent=true and destructive=false, so the description's job is to add behavior beyond that. It does: props are merged over what the element has and over its asset, so an inherited prop becomes an explicit set — a non-obvious side effect an agent would otherwise misjudge as a pure overwrite.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loads the verb, but the core sentence is a deeply nested parenthetical whose merge clause takes a second read to parse. Slightly flatter phrasing would carry the same information with less parsing cost.

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?

With eight parameters and 88% schema coverage, the schema carries most of the burden, and the description covers the one genuinely ambiguous part — merge semantics and token-ref values. It says nothing about the return value, but with no output schema that is a modest gap rather than a blocker for correct invocation.

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

Parameters3/5

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

Schema coverage is 88%, so the schema already documents basis, message, feedback, and confidence in detail. The description adds meaning where the schema is silent: that props/layers merge over existing and asset values, and that values may be token refs such as "{md.sys.color.primary}" — the props object itself has no schema description, so this is the only explanation of its contents.

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 a specific verb and resource ("Set static props on an element") and immediately covers the batch variant ("or on several at once with layers"), so the two call shapes are distinguishable. It does not contrast with nearby setters like set_format or set_motion, so an agent must infer that those touch different resources.

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 parenthetical "instead of layer and props" routes the agent between the single-element and multi-element parameter forms, which is genuine usage guidance. There is no explicit when-not guidance, no prerequisites, and no statement about how this relates to sibling setters.

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