Skip to main content
Glama
Model MCP

Model MCP

Save My Tool

revit_save_tool
Destructive

Compile C#/schema code and confirm saving to create reusable Revit buttons; returns full source, hash, and token without executing code.

Instructions

Compile C#/schema without execution; confirm to save. Returns full source, hash and token. Makes reusable buttons; standalone .csproj add-ins and GUI automation are outside this workflow. code: statements only, no using directives or wrappers, System and Autodesk.Revit namespaces pre-imported. Icon is auto-picked from the name; enable in Model MCP > My tools. 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>",
      "description": "<description>",
      "parameters": "<parameters>",
      "code": "<code>"
    },
    "name": "revit_save_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
modeNoaction
nameYes
parametersYes
process_idNo
descriptionYes
confirm_tokenNo
tested_revit_yearsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.0
    • addedInput schema / properties / process_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Addedv2.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=false, so the safety profile is known. The description adds real value beyond that: it discloses the compile-without-execution stage, the confirm-token handshake, the returned source/hash/token, the code-content constraints (statements only, no using directives, pre-imported namespaces), and that icons are auto-derived from the name. It does not explain what the destructive aspect actually overwrites (e.g., an existing tool of the same name), which keeps it from a 5.

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 core purpose and the compile-before-save constraint are front-loaded, and every clause carries information with no filler. The semicolon-chained, telegraphic style mixes critical constraints with housekeeping details (icon picking, where to enable), making it denser than it needs to be.

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?

An output schema exists, so return values (source, hash, token) need not be spelled out, and the description does mention them briefly. However, for an 8-parameter, destructive tool with a read/action `mode` enum, the omission of what `mode` controls and how `parameters`/`process_id`/`tested_revit_years` affect behavior leaves meaningful gaps for correct invocation.

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?

Schema description coverage is 0% across 8 parameters, so the description carries the full burden and only partially delivers. It adds meaning for `code` (statement-only, no usings, namespaces pre-imported), `name` (drives icon auto-selection), and implies `confirm_token` via the two-step handshake, but says nothing about `mode` (read/action enum), `parameters`, `process_id`, `description`, or `tested_revit_years`.

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 names a specific verb and resource: it compiles supplied C#/schema code without executing it and, after confirmation, saves it as a reusable tool/button. It also delineates scope by excluding standalone .csproj add-ins and GUI automation. It does not explicitly differentiate itself from siblings like revit_run_tool, revit_get_tool, or revit_delete_tool, so it stops 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?

Usage is implied rather than stated: 'Compile C#/schema without execution; confirm to save' and the 'two-step AI app token handshake' tell the agent this is a create/validate-then-commit flow requiring a confirm_token. There is no explicit when-to-use versus revit_run_tool or revit_delete_tool, and no stated prerequisite ordering beyond the handshake hint.

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