Skip to main content
Glama
Axus Revit

Axus Revit

ai_element_filter

Filter Revit elements by category, type, visibility, or spatial bounds to find specific model components and combine filters for precise results.

Instructions

Filter and find Revit elements by category, type, visibility, and spatial bounds.

A powerful query tool for finding specific elements in the model. Combine filters for precise results — e.g., find all exterior walls on Level 1 visible in the current view.

Args: category: BuiltInCategory name, e.g. "OST_Walls", "OST_Doors" (optional) type_name: Filter by family type name or partial match (optional) visible_in_view: Only include elements visible in the active view (optional) bounding_box_min: Spatial filter min corner {"x", "y", "z"} in mm (optional) bounding_box_max: Spatial filter max corner {"x", "y", "z"} in mm (optional) max_elements: Maximum results to return (defaults to 50) ctx: MCP context for logging

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

Input Schema

NameRequiredDescriptionDefault
categoryNo
type_nameNo
max_elementsNo
visible_in_viewNo
bounding_box_maxNo
bounding_box_minNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does establish this as a read-only query ('a powerful query tool') and discloses the default result cap of 50 via max_elements. It says nothing about permissions, whether results are IDs or full objects, ordering, or behavior when filters match nothing. Adequate signal on safety and scale, thin on output behavior.

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?

Purpose sentence is front-loaded, followed by a short usage illustration, then an Args block. The Args block is mildly redundant with schema property titles but earns its place because the schema has zero descriptions. No filler sentences.

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?

For a six-parameter query tool with no output schema and no annotations, the description covers inputs well but leaves the return contract entirely unspecified — element IDs vs. full properties, ordering, and truncation signaling are unknown. An agent can call it correctly but cannot confidently plan on what comes back.

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 description coverage is 0%, so the description must compensate, and it largely does: it gives BuiltInCategory naming convention with examples ('OST_Walls'), notes type_name accepts partial matches, specifies bounding box corners as {x,y,z} in mm, and states the max_elements default. It does not clarify what units visible_in_view interacts with or how the bounding box coordinates relate to project origin, leaving a small gap.

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?

States a specific verb ('filter and find') plus the resource (Revit elements) and enumerates the filter axes: category, type, visibility, spatial bounds. An agent knows exactly what the tool returns conceptually. It stops short of distinguishing itself from near-neighbors like get_current_view_elements or get_element_properties, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The concrete example ('find all exterior walls on Level 1 visible in the current view') shows how filters combine, which implies the intended use case. However, there is no explicit when-not guidance and no named alternative for simpler lookups, so the agent must infer that this is the tool for compound queries rather than a single-view listing.

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