Skip to main content
Glama
mcp-servers-for-revit

MCP server for Revit - Python

get_current_view_elements

Retrieves elements visible in the active Revit view. Returns element IDs, names, categories, and counts, with optional level and location data.

Instructions

Get elements visible in the currently active view in Revit.

Returns per element: element_id, name, category, category_id. Also returns category_counts (always for ALL elements, even if truncated).

If the response contains truncated=true, not all elements were returned. Check total_elements vs returned_elements and increase limit if needed.

Args: limit: Maximum number of elements to return (default 5000). include_levels: Include level name and level_id per element. Default false. include_location: Include location geometry (point or curve). Default false.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
include_levelsNo
include_locationNo
Behavior3/5

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

No annotations exist, so description carries full burden. It explains truncated behavior and return fields, but does not explicitly state that the tool is read-only or describe side effects. For a read operation, this is adequate but not comprehensive.

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?

Description is concise (~8 lines), front-loaded with purpose, then return fields, special notes, and args. No fluff, well-organized.

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?

No output schema provided, but description details return fields and truncation handling. Covers enough for a list tool. Might need mention of document requirement, but overall complete given context.

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 0%, yet description explains all three parameters (limit, include_levels, include_location) with defaults and purpose. This compensates well for schema gaps. Could mention limits on range, but still strong.

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?

Purpose is clear: 'Get elements visible in the currently active view in Revit.' The verb 'get' and resource 'elements' are specific, with context 'visible in active view.' However, it does not explicitly differentiate from siblings like get_current_view_info or list_revit_views.

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?

No guidance on when to use this tool versus alternatives (e.g., execute_revit_code, list_revit_views). It mentions handling truncation but provides no exclusions or context about prerequisites like an open document.

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/mcp-servers-for-revit/mcp-server-for-revit-python'

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