Skip to main content
Glama
sharafutdinovdi

Revit Model MCP

Set Parameter

revit_set_parameter
DestructiveIdempotent

Set exactly one instance or type parameter on a Revit element by ID, UI name, GUID, or BuiltInParameter, with optional dry-run and verification.

Instructions

Set exactly one instance or type parameter. Supply parameter_id to select by BuiltInParameter name, shared GUID or positive ParameterElement ID. Without parameter_id, parameter accepts a localized Revit UI name, BuiltInParameter name or supported English alias; ambiguous matches are refused with candidate details. Use a JSON string for String, integer for Integer and number for Double. Lengths use mm, areas m2 and other doubles internal units. dry_run executes and rolls back, returning the same verification block without changing the model. Pass document to address a specific open model when several are open; an unknown or ambiguous reference is rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
dry_runNo
documentNoCase-insensitive substring of the target open document's title or file name. Required to disambiguate when the Revit process has more than one document open; omit only when a single document is open (the active document is used). An unknown or ambiguous reference is rejected before any change.
parameterYes
element_idYes
parameter_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true; the description adds real behavior beyond them, explaining that dry_run executes and rolls back, that ambiguous matches are refused with candidate details, and that ambiguous document references are rejected before any change. Missing only auth/permission notes, so a 4.

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 parameter-selection, value typing, dry_run and document semantics in efficient order. Dense but each line earns its place; slightly long but not padded.

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?

An output schema exists so return values needn't be detailed, and the description still references the verification block returned by dry_run. It covers selection, typing, units, and document targeting well for a destructive mutation tool; only failure/permission behavior is thin.

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 only 17%, so the description carries the burden and largely does: it explains parameter_id vs parameter resolution, the value typing rules (JSON string/integer/number), the unit conventions (mm, m2, internal units), and the dry_run/document flags. Only element_id is left implicit.

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?

The description opens with a specific verb+resource and scope: 'Set exactly one instance or type parameter.' That clearly separates it from mutation siblings like revit_move or revit_delete. It doesn't name or route away from any sibling, but the purpose 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 Guidelines4/5

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

It gives concrete conditional guidance: use parameter_id to select by identifier vs a localized name when omitted, use dry_run to preview, and pass document only when multiple models are open. It stops short of explicit when-not-to-use or naming an alternative tool, so it's clear context rather than full routing.

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