Skip to main content
Glama

set_parameters

Set one parameter on many Revit elements or element types at once, using display-unit text values for doubles, 1/0 for Yes/No, and IDs for ElementId.

Instructions

Set one parameter on many elements (or on their types). Value is text: numbers for Double params use display units via SetValueString (e.g. '3000' mm), Integer/Yes-No as '1'/'0', ElementId as the id.

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": {
      "element_ids": "<element_ids>",
      "parameter": "<parameter>",
      "value": "<value>"
    },
    "name": "set_parameters"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
on_typeNo
parameterYes
element_idsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does add genuinely useful behavior: values are always strings and are coerced per parameter type via SetValueString using display units, and on_type redirects the write to the type rather than the instance. It omits the mutation risk profile — no statement about whether changes are undoable, what happens if some element_ids fail, or whether the document must be open/modifiable.

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 core action, then the value-encoding rules that an agent most likely to get wrong. Dense but nearly every clause earns its place; the parenthetical API name (SetValueString) is arguably the least necessary fragment.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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. For a mutation tool with zero annotations and zero schema coverage, the definition should still cover failure behavior across a many-element batch and how to identify 'parameter' — both are missing, leaving the picture only partially complete.

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 0%, so the description must compensate. It does well on 'value' (per-type string encoding with a concrete mm example) and on 'on_type'. However 'parameter' is left undefined — whether it is a name, GUID, or built-in parameter id — and 'element_ids' is only implied by 'many elements', so half the parameters remain ambiguous.

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 one parameter on many elements (or on their types)') and makes the single-parameter-many-elements scope explicit, which distinguishes it from the read counterpart get_parameters and from a bulk-multi-parameter setter. It does not explicitly name a sibling, but the verb+scope is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no prerequisites (e.g. a document must be open, the element must be editable or not workshared), and no mention of alternatives such as get_parameters for inspection first. Usage must be inferred entirely from the action description.

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