Skip to main content
Glama
Model MCP

Model MCP

Delete Elements

revit_delete
Destructive

Delete Revit elements with their dependencies; use dry_run to preview counts, and provide a confirm_token for deletions over 500 elements.

Instructions

Delete elements and their Revit dependencies; the count includes dependents. dry_run returns the count. Above 500 elements including dependents a confirm_token from a first call is needed; revit_run_actions refuses such deletions.

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": {
      "element_ids": "<element_ids>"
    },
    "name": "revit_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
documentNoOpen document title/file substring; required when ambiguous.
element_idsYes
confirm_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / document / description
      Previous value: -"Title or file name substring of the target open document; needed when several are open."New value: +"Open document title/file substring; required when ambiguous."
  2. Changed7 schema fields changedv0.10.0
    • removedInput schema / properties / confirm_token / title
      Removed value: -"Confirm Token"
    • changedInput schema / properties / document / description
      Previous value: -"Case-insensitive substring of the target open document's title or file name. Required to disambiguate when the Revit process has more than one document open; omit only when a single document is open (the active document is used). An unknown or ambiguous reference is rejected before any change."New value: +"Title or file name substring of the target open document; needed when several are open."
    • removedInput schema / properties / document / title
      Removed value: -"Document"
    • removedInput schema / properties / dry_run / title
      Removed value: -"Dry Run"
    • removedInput schema / properties / element_ids / title
      Removed value: -"Element Ids"
    • removedInput schema / title
      Removed value: -"revit_deleteArguments"
    • removedOutput schema / title
      Removed value: -"revit_deleteDictOutput"
  3. Changed1 schema field changedv0.9.1
    • addedInput schema / properties / confirm_token
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Confirm Token"
      +}
  4. Addedv0.7.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=false, and the description adds genuinely new behavioral facts: dependents are deleted too, the reported count includes dependents, and large deletions require a two-step dry_run/confirm_token handshake. This is exactly the context an agent needs before invoking an irreversible operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short clauses, front-loaded with the deletion scope and dependency behavior, then the preview and confirmation mechanics. No filler sentences; every clause carries operational information.

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?

For a destructive 4-parameter tool with an output schema (so return values need no explanation), the description covers scope, cascade behavior, preview, and the safety gate. Minor omissions remain, such as whether deletion works across linked models or what happens on partial failure, but the essentials are present.

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 only 25% (only 'document' is documented), so the description must compensate, and it does for dry_run and confirm_token by explaining the 500-element threshold and where the token comes from. It adds no detail about element_ids beyond the name, which is the remaining gap.

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 specific verb and resource ("Delete elements") and immediately widens the scope to include Revit dependencies, which is the non-obvious part. It also names a sibling, revit_run_actions, and states that it refuses such deletions, so the agent can distinguish the two without opening schemas.

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?

Gives concrete routing/sequencing guidance: use dry_run for a count, and for deletions above 500 elements including dependents a confirm_token from a first call is required. It also flags that revit_run_actions cannot be substituted. It does not explicitly state when a caller should prefer a narrower delete path, but the threshold and preview flow cover the main decision points.

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