Skip to main content
Glama
mk92at

pyrevit-mcp

by mk92at

set_parameter

Set a parameter value on a Revit element with transaction support. If the instance lacks the parameter, it writes to the element type, affecting all instances.

Instructions

Set a parameter value on a Revit element. Opens a Transaction, sets the value, commits.

If the instance has no parameter of that name, the element TYPE is tried. A type write changes every placed instance of that type; the response then contains scope='type', instances_affected and a warning. Warn the user before writing type parameters.

Args: element_id: The integer ID of the Revit element. parameter_name: The exact parameter name as shown in get_element_properties. value: The new value. Numeric values are in Revit internal units (feet); prefer writing text parameters or copy the format from old_value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
element_idYes
parameter_nameYes
Behavior5/5

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

With no annotations, the description carries full burden. It discloses the write operation, transaction handling, type parameter fallback, side effects on all instances, response contents (scope, instances_affected, warning), and unit conventions for numeric values. This is excellent disclosure beyond simple operation description.

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?

The description is well-structured, front-loaded with a clear summary, followed by important behavioral context and an Args block. Each sentence provides necessary information without redundancy.

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?

Given no annotations or output schema, the description covers most essential behavior: transaction, fallback, side effects, units, and partial response format. It does not explicitly state the normal success response or error cases, which are minor gaps.

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?

The schema provides no descriptions for parameters (0% coverage), but the description's Args section clarifies element_id as an integer ID, parameter_name as exact name from get_element_properties, and value with unit caveats and advice for writing text parameters. This fully compensates for the schema gaps.

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?

The description clearly states the tool's function: 'Set a parameter value on a Revit element' and describes the transaction lifecycle. It distinguishes from sibling tools by focusing on a single parameter write, though it doesn't explicitly contrast with set_parameters.

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 description explains the behavior of falling back to type parameters and warns about the consequences, but it does not explicitly state when to use this tool versus alternatives like set_parameters. The guidance about warning the user is useful, but it lacks explicit alternatives or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mk92at/pyrevit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server