Skip to main content
Glama

get_selection

Retrieves the elements currently selected in a live Revit model, letting you inspect or process the active selection.

Instructions

Elements currently selected in Revit.

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": "get_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does not state that this is a read-only operation, what happens when the selection is empty, whether it reflects the active document or active view, or whether it covers only the active view's selection.

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 single fragment is front-loaded with no filler, which is good. But the brevity crosses into under-specification: a sentence-level fragment with no verb and no scope qualifiers does not give the agent enough to act on confidently.

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?

Complexity is low (no parameters, output schema present, so return values need not be described). Still, with zero annotations the definition is silent on the read-only nature and on selection scope (document vs view), which are the two facts an agent would most want before calling it.

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?

The tool takes zero parameters, and the schema is empty as expected, so there is no parameter meaning to add. The baseline for a parameterless tool applies; the description introduces no misleading parameter implications.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Elements currently selected in Revit" names the resource and the application domain, so an agent can tell it returns the current selection. However, it is essentially a restatement of the name get_selection with no verb and no differentiation from the sibling select_elements, which sets a selection rather than reading one.

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 when-to-use guidance at all. The definition never says whether this is meant to be called before mutating operations, nor how it relates to select_elements or list_elements, leaving the agent to infer the read-vs-write split from names alone.

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