Skip to main content
Glama
Model MCP

Model MCP

Process Many Models

revit_process_models
Destructive

Open, process, export, and save multiple Revit models in one batch, then close each model. Use dry runs to preview code and step changes, with confirm tokens for in-place saves.

Instructions

Open each model in the interactive session, run steps and C# code, export, save as requested, and close. In-place saves and code need a confirm_token from the preview response. dry_run replaces only code.transaction="none" with "auto" and reports the override in warnings. May commit; revit_jobs polls; retry repeats.

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

Input Schema

NameRequiredDescriptionDefault
codeNo
openNo
saveNo
pathsNo
stepsNo
folderNo
dry_runNo
exportsNo
patternNo*.rvt
recursiveNo
process_idNo
confirm_tokenNo
stop_on_errorNo
timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • changedInput schema / $defs / ProcessCode / properties / transaction / enum
      Previous value: -[
      -  "auto",
      -  "none"
      -]New value: +[
      +  "auto",
      +  "group",
      +  "none"
      +]
  2. Changed39 schema fields changedv0.10.0
    • addedInput schema / $defs / ActionStep
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "action": {
      +      "enum": [
      +        "move",
      +        "rotate",
      +        "copy",
      +        "mirror",
      +        "change_type",
      +        "update_parameters",
      +        "place_family",
      +        "load_family",
      +        "create_wall",
      +        "create_mep_run",
      +        "set_parameter",
      +        "delete",
      +        "select",
      +        "isolate",
      +        "create_view",
      +        "duplicate_view",
      +        "apply_view_template",
      +        "create_sheet",
      +        "override_graphics"
      +      ],
      +      "type": "string"
      +    },
      +    "args": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "action",
      +    "args"
      +  ],
      +  "type": "object"
      +}
    • removedInput schema / $defs / BatchStep
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "action": {
      -      "enum": [
      -        "move",
      -        "rotate",
      -        "copy",
      -        "mirror",
      -        "change_type",
      -        "update_parameters",
      -        "place_family",
      -        "load_family",
      -        "create_wall",
      -        "create_mep_run",
      -        "set_parameter",
      -        "delete",
      -        "select",
      -        "isolate",
      -        "create_view",
      -        "duplicate_view",
      -        "apply_view_template",
      -        "create_sheet",
      -        "override_graphics"
      -      ],
      -      "title": "Action",
      -      "type": "string"
      -    },
      -    "args": {
      -      "additionalProperties": true,
      -      "title": "Args",
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "action",
      -    "args"
      -  ],
      -  "title": "BatchStep",
      -  "type": "object"
      -}
    • removedInput schema / $defs / ProcessCode / properties / code / title
      Removed value: -"Code"
    • removedInput schema / $defs / ProcessCode / properties / transaction / title
      Removed value: -"Transaction"
    • removedInput schema / $defs / ProcessCode / title
      Removed value: -"ProcessCode"
    • removedInput schema / $defs / ProcessExport / properties / all_sheets / title
      Removed value: -"All Sheets"
    • removedInput schema / $defs / ProcessExport / properties / folder
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Folder"
      -}
    • removedInput schema / $defs / ProcessExport / properties / format / title
      Removed value: -"Format"
    • removedInput schema / $defs / ProcessExport / properties / options / title
      Removed value: -"Options"
    • addedInput schema / $defs / ProcessExport / properties / output_dir
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • removedInput schema / $defs / ProcessExport / properties / overwrite / title
      Removed value: -"Overwrite"
    • removedInput schema / $defs / ProcessExport / properties / sheet_set / title
      Removed value: -"Sheet Set"
    • removedInput schema / $defs / ProcessExport / properties / sheets / title
      Removed value: -"Sheets"
    • removedInput schema / $defs / ProcessExport / properties / views / title
      Removed value: -"Views"
    • removedInput schema / $defs / ProcessExport / title
      Removed value: -"ProcessExport"
    • removedInput schema / $defs / ProcessOpen / properties / audit / title
      Removed value: -"Audit"
    • removedInput schema / $defs / ProcessOpen / properties / mode / title
      Removed value: -"Mode"
    • removedInput schema / $defs / ProcessOpen / properties / worksets / title
      Removed value: -"Worksets"
    • removedInput schema / $defs / ProcessOpen / title
      Removed value: -"ProcessOpen"
    • removedInput schema / $defs / ProcessSave / properties / compact / title
      Removed value: -"Compact"
    • removedInput schema / $defs / ProcessSave / properties / mode / title
      Removed value: -"Mode"
    • removedInput schema / $defs / ProcessSave / properties / output_dir / title
      Removed value: -"Output Dir"
    • removedInput schema / $defs / ProcessSave / properties / overwrite / title
      Removed value: -"Overwrite"
    • removedInput schema / $defs / ProcessSave / title
      Removed value: -"ProcessSave"
    • removedInput schema / properties / confirm_token / title
      Removed value: -"Confirm Token"
    • removedInput schema / properties / dry_run / title
      Removed value: -"Dry Run"
    • removedInput schema / properties / exports / title
      Removed value: -"Exports"
    • removedInput schema / properties / folder / title
      Removed value: -"Folder"
    • removedInput schema / properties / paths / title
      Removed value: -"Paths"
    • removedInput schema / properties / pattern / title
      Removed value: -"Pattern"
    • removedInput schema / properties / process_id / title
      Removed value: -"Process Id"
    • removedInput schema / properties / recursive / title
      Removed value: -"Recursive"
    • removedInput schema / properties / response_timeout_s
      Removed value: -{
      -  "default": 14400,
      -  "maximum": 14400,
      -  "minimum": 30,
      -  "title": "Response Timeout S",
      -  "type": "integer"
      -}
    • changedInput schema / properties / steps / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/BatchStep"
      -    },
      -    "maxItems": 50,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "$ref": "#/$defs/ActionStep"
      +    },
      +    "maxItems": 50,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / steps / title
      Removed value: -"Steps"
    • removedInput schema / properties / stop_on_error / title
      Removed value: -"Stop On Error"
    • addedInput schema / properties / timeout_seconds
      Added value: +{
      +  "default": 14400,
      +  "maximum": 14400,
      +  "minimum": 30,
      +  "type": "integer"
      +}
    • removedInput schema / title
      Removed value: -"revit_process_modelsArguments"
    • removedOutput schema / title
      Removed value: -"revit_process_modelsDictOutput"
  3. Addedv0.9.1

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the destructiveHint=true annotation, the description discloses that in-place saves and code need a confirm_token from the preview response, that dry_run rewrites code.transaction from 'none' to 'auto' and reports the override in warnings, and that the process may commit with results polled via revit_jobs. That is meaningful safety context; it stops short of describing what exactly gets overwritten or failure/rollback 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?

The description is front-loaded with the pipeline in the first sentence, then supplements with token/dry_run/polling details. The trailing telegraphic fragments ('May commit; revit_jobs polls; retry repeats.') are terse but earn their brevity by packing three distinct behavioral facts.

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 destructive 14-parameter batch tool, the description covers the highest-risk aspects (confirm_token, dry_run override) and an output schema exists so return values need not be explained. But the many undocumented parameters and the absence of failure/partial-completion semantics leave real gaps for an agent to fill by guesswork.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 14 parameters at 0% schema description coverage, the description carries the full burden but only illuminates a few: dry_run semantics, confirm_token requirement, code.transaction handling, and save being 'as requested'. Key inputs like paths, folder, pattern, recursive, exports, steps, stop_on_error, timeout_seconds, process_id, and open/save modes go entirely unexplained.

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 specific verbs and names the full pipeline: open each model, run steps and C# code, export, save, close. It clearly conveys that this is a multi-model batch operation, though it never explicitly contrasts itself with siblings such as revit_run_actions or revit_batch_start.

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?

It implies usage context through references to revit_jobs polling and retry behavior, and notes that in-place saves and code require a confirm_token. However, there is no explicit when-to-use versus the many sibling action/run tools, and no guidance on choosing this over a single-model path.

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