Skip to main content
Glama
Model MCP

Model MCP

Tag Elements

revit_tag_elements
Destructive

Create tags for Revit elements in a view by category or element ID, skipping already tagged items by default; use dry_run to preview tags before applying.

Instructions

Tag elements in a view, chosen by category names or by element IDs (exactly one of the two). Returns created tag IDs in createdElementIds; already tagged elements are skipped unless skip_tagged is false, and untaggable inputs are listed in skipped. tag_type matches a tag type name, a family name or "Family: Type"; the default tag type is used otherwise. Room tags need a plan view. dry_run rolls back and returns the tags that would be created.

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_tag_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewYes
leaderNo
dry_runNo
documentNoOpen document title/file substring; required when ambiguous.
tag_typeNo
categoriesNo
element_idsNo
orientationNohorizontal
skip_taggedNo
max_elementsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields 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."
    • changedInput schema / properties / max_elements / default
      Previous value: -5000New value: +500
  2. Addedv0.10.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations flag this as destructive and non-idempotent, and the description earns that by explaining skip_tagged's default, that untaggable inputs are reported in skipped, that dry_run rolls back and previews results, and how tag_type falls back to a default. These details materially change how an agent should call a write tool and are not present in the annotations.

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?

Every sentence carries information and the critical constraint — the mutually exclusive selectors — is front-loaded. It is a dense single block rather than structured clauses, which slightly hurts scanability but there is essentially no filler.

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?

For a 10-parameter destructive write tool, the description covers selection, tagging type resolution, skip behavior, skipped reporting, and dry_run rollback, and the output schema handles return values. The remaining gap is the geometric/limit parameters (leader, orientation, max_elements), which an agent must infer from the schema alone.

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?

With schema description coverage at 10%, the description carries most of the load and does so for the important parameters: categories/element_ids exclusivity, tag_type resolution order (type name, family name, 'Family: Type'), skip_tagged, dry_run, and view's room-tag constraint. However, leader, orientation, max_elements, and document (cap of 500/20000, leader and orientation behaviour) are left entirely to the schema and are undocumented.

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 opens with a specific verb and resource ('Tag elements in a view') and immediately names the two mutually exclusive selection modes (category names or element IDs). This is clearly distinguishable from read-oriented siblings such as revit_query_elements or revit_capture_elements, which do not create tags.

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 selection rules ('exactly one of the two'), a precondition ('Room tags need a plan view'), an opt-in rollback mode (dry_run), and a default-behavior caveat (already tagged elements skipped unless skip_tagged is false). What it lacks is an explicit statement of when to prefer this tool over alternatives or what happens if a non-plan view is supplied.

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