Skip to main content
Glama
Model MCP

Model MCP

Run My Tool

revit_run_tool
Destructive

Run saved C# code against a live Revit model, with optional dry runs that roll back changes and consent checks before commits.

Instructions

Run saved C#; review via revit_get_tool. First run and commits need consent; read/dry_run rolls back. Managed forms use input_files (even {}), output_dir and preview_id. Store needs ExecuteCode=confirm. Timeouts may follow commit; use revit_jobs for jobId. Uses a two-step AI app token handshake.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "args": "<args>"
    },
    "name": "revit_run_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYes
nameYes
dry_runNo
documentNo
output_dirNo
preview_idNo
process_idNo
input_filesNo
transactionNoauto
confirm_tokenNo
timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.0.0
    • addedInput schema / $defs
      Added value: +{
      +  "InputFile": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "file": {
      +        "type": "string"
      +      },
      +      "sha256": {
      +        "pattern": "^[a-f0-9]{64}$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "file",
      +      "sha256"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / input_files
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "$ref": "#/$defs/InputFile"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / output_dir
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / preview_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Changed1 schema field changedv2.1.0
    • addedInput schema / properties / process_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  3. Addedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint and non-idempotent, and the description adds real operational context beyond them: consent required on first run and on commits, dry_run/read rolls back, timeouts can occur after a commit has already landed, and a two-step AI app token handshake is involved. The phrasing is compressed to the point of ambiguity in places ("Store needs ExecuteCode=confirm"), but the behavioral surface is substantially disclosed.

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 length is appropriate for a complex tool, but the text is a chain of fragments separated by semicolons with no grouping by concern (consent, parameters, jobs, auth). It front-loads the core purpose well, yet several clauses are too compressed to parse on first read.

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?

Given destructive annotations, an output schema, and 11 parameters, the description covers the high-risk essentials: consent gating, rollback behavior, background job escape hatch, and auth handshake. It remains incomplete on the meaning of most input parameters and what args/name actually select, which is a meaningful gap for a first-call decision.

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

Parameters3/5

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

Schema description coverage is 0% across 11 parameters, so the description carries the burden, and it only partially does so: it explains input_files (even {}) for managed forms, output_dir and preview_id, and implies dry_run rollback semantics. The required name/args, document, process_id, transaction, confirm_token and timeout_seconds get no explanation, leaving most parameters undocumented.

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?

"Run saved C#" states a specific verb and resource (a previously saved tool), and the pointer to revit_get_tool establishes how it differs from the inspection sibling. The phrasing is terse and assumes the agent knows that 'saved C#' means a stored tool definition, which keeps it just short of fully self-explanatory.

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

Usage Guidelines4/5

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

It explicitly instructs reviewing via revit_get_tool before running, and routes long-running work to revit_jobs for jobId. First-run/commit consent and dry_run rollback are given as conditions, though there is no explicit statement of when NOT to use this tool versus revit_run_actions.

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