Skip to main content
Glama
Model MCP

Model MCP

Revit UI State

revit_ui_state
Read-onlyIdempotent

Reads the active document, open views, selection, and open documents to report the current Revit UI state, including skipped counts for incomplete data.

Instructions

Read the active document, open views, selection and open documents. skipped means incomplete; skippedCount is the total skipped.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "revit_ui_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
process_idNoProcess ID; must also match document.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.0
    • changedInput schema / properties / process_id / description
      Previous value: -"Revit process ID; takes precedence over document."New value: +"Process ID; must also match document."
  2. Changed4 schema fields changedv0.10.0
    • changedInput schema / properties / process_id / description
      Previous value: -"Exact positive Revit process ID. Takes precedence over document; if both are supplied they must agree."New value: +"Revit process ID; takes precedence over document."
    • removedInput schema / properties / process_id / title
      Removed value: -"Process Id"
    • removedInput schema / title
      Removed value: -"revit_ui_stateArguments"
    • removedOutput schema / title
      Removed value: -"revit_ui_stateDictOutput"
  3. Addedv0.9.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds a small amount of behavioral context by explaining that a skipped entry signals incomplete results and that skippedCount is the total. It says nothing about cost, whether the UI must be idle, or whether the read can partially fail for other reasons, which would be valuable for a live-UI read.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is short and front-loaded with the resource list, so it is easy to scan. However, the second sentence is telegraphic and its meaning is ambiguous — "skipped means incomplete" does not say what is skipped or why, so the brevity comes at the cost of clarity.

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?

With an output schema present, the description need not explain return values, and annotations cover the safety profile. What remains missing is routing guidance against the many sibling read tools and any hint about the conditions under which results may be incomplete. Adequate but with clear gaps for a tool in a crowded read-oriented sibling set.

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 100% and the single optional process_id parameter is already documented in the schema, including the constraint that it must match the document. The description adds no meaning beyond that, which is the expected baseline when the schema carries the full burden.

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 uses a concrete verb ("Read") and enumerates exactly what state is returned: active document, open views, selection, and open documents. An agent can tell this is a UI/state snapshot tool rather than a mutator. It stops short of distinguishing itself from siblings like revit_document_info or revit_documents, which read related-but-narrower data.

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 statement of when to call this versus alternatives such as revit_document_info, revit_documents, or revit_activate_view. The only guidance offered concerns interpreting the response ("skipped means incomplete"), not tool selection or preconditions.

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