Skip to main content
Glama
drive-it
by jedbjorn

get_revit_session

Read-only

Finds the running Revit session and returns its version, workspace root, and installed project, family, and library template paths so you can reference real paths instead of guessing.

Instructions

Call this first. Finds the running Revit (processId is optional when only one Revit has Drive It loaded) and returns its version, the workspace root where Drive It saves and reads files without asking the user (null until the user picks one in the Drive-It window; ask them to), and Revit's installed project templates, family template folders, and library folders. Use these real paths instead of guessing file names.

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

Input Schema

NameRequiredDescriptionDefault
processIdNoWindows process ID of Revit.exe; omit it to use the only running Revit

Output Schema

NameRequiredDescriptionDefault
buildYes
contentYes
versionYes
processIdYes
workspaceRootYes
connectionIdentityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

readOnlyHint=true already declares this is a safe read, but the description adds substantive context: the null-until-configured workspace root and the instruction to prompt the user, plus the fact that the path list comes from Revit's actual installed configuration. It does not restate return structure in depth, which is fine given an output schema exists.

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?

The critical instruction is front-loaded in two words, and every clause carries information (version, workspace root semantics, template and library folders, and the anti-guessing rule). The nested parentheticals make the single long sentence dense, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-optional-parameter bootstrap tool with annotations and an output schema, the description covers everything an agent needs: when to call it, what disambiguates the session, what comes back, and how to react to a null workspace root. No gaps remain that would cause a misinvocation.

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 100%, so processId is already documented, but the description adds the disambiguating condition — it is optional precisely because Drive It is loaded in only one Revit — which tells the agent when omission is safe. That is meaningful semantics beyond the schema's terser phrasing.

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?

States a concrete verb and resource — find the running Revit session and return its version, workspace root, templates, and library folders. It is also clearly distinguishable from the sibling script tools, none of which discover the Revit environment.

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

Usage Guidelines5/5

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

"Call this first" gives an explicit ordering instruction, and the description tells the agent what to do when the workspace root comes back null (ask the user to pick one). It also directs the agent to use the returned real paths instead of guessing file names, which is exactly the follow-on behavior an agent needs.

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