Skip to main content
Glama
Model MCP

Model MCP

Set View Visibility

revit_set_view_visibility
Destructive

Change category, workset, and filter visibility in a single Revit view, with dry-run previews and category matching by UI name, BuiltInCategory, English name, or ID.

Instructions

Change category, workset and filter visibility in one view; dry_run previews. Categories accept the Revit UI name, the BuiltInCategory name (OST_StructuralColumns), the English name or an 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": {
      "view": "<view>"
    },
    "name": "revit_set_view_visibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewYes
dry_runNo
filtersNo
documentNoOpen document title/file substring; required when ambiguous.
worksetsNo
template_modeNo
hide_categoriesNo
show_categoriesNo
category_classesNo
hide_categories_by_typeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / document / description
      Previous value: -"Title or file name substring of the target open document; needed when several are open."New value: +"Open document title/file substring; required when ambiguous."
  2. Changed13 schema fields changedv0.10.0
    • removedInput schema / properties / category_classes / title
      Removed value: -"Category Classes"
    • changedInput schema / properties / document / description
      Previous value: -"Case-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."New value: +"Title or file name substring of the target open document; needed when several are open."
    • removedInput schema / properties / document / title
      Removed value: -"Document"
    • removedInput schema / properties / dry_run / title
      Removed value: -"Dry Run"
    • removedInput schema / properties / filters / title
      Removed value: -"Filters"
    • removedInput schema / properties / hide_categories / title
      Removed value: -"Hide Categories"
    • removedInput schema / properties / hide_categories_by_type / title
      Removed value: -"Hide Categories By Type"
    • removedInput schema / properties / show_categories / title
      Removed value: -"Show Categories"
    • removedInput schema / properties / template_mode / title
      Removed value: -"Template Mode"
    • removedInput schema / properties / view / title
      Removed value: -"View"
    • removedInput schema / properties / worksets / title
      Removed value: -"Worksets"
    • removedInput schema / title
      Removed value: -"revit_set_view_visibilityArguments"
    • removedOutput schema / title
      Removed value: -"revit_set_view_visibilityDictOutput"
  3. Addedv0.7.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the description's main added value is explaining that dry_run previews changes before applying them. It does not disclose what is destroyed or overwritten (existing overrides, template state), nor what template_mode values like 'detach' or 'edit_template' do to the view, leaving the destructive behavior under-explained.

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?

Two compact clauses with the core action front-loaded and the category-naming note placed after. Nothing is redundant, though the single dense second clause packs several distinct identifier rules without structure.

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

Completeness2/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, but for a destructive 10-parameter mutation the description leaves too much unresolved: no explanation of how show/hide lists interact, what template_mode does, or whether changes are additive or replacing. An agent could easily invoke this in a damaging way from the current text.

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

Parameters2/5

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

Schema description coverage is only 10% across 10 parameters, so the description carries most of the burden — yet it only explains the category identifier formats (UI name, OST_ name, English name, ID) and dry_run. The worksets, filters, category_classes, hide_categories_by_type, and especially the template_mode enum are entirely undefined in both description and schema.

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 states a specific verb and resource: change category, workset and filter visibility in one view. That is concrete enough for an agent to know what the tool does without opening the schema, though it never names a sibling (e.g. revit_apply_view_template or revit_set_read_only) to distinguish itself from.

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?

The only usage signal is 'dry_run previews', which implies a safe-preview-then-apply workflow but never states it. There is no guidance on when to choose this over revit_apply_view_template, revit_set_read_only, or template_mode paths, and no stated prerequisites such as an active or open view.

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