Skip to main content
Glama
Model MCP

Model MCP

Look up Revit API types and members

revit_api_lookup
Read-onlyIdempotent

Look up public Revit API types and members for the active Revit version before writing C#, helping verify unfamiliar APIs and avoid version mismatches.

Instructions

Look up public Revit API types and members. The agent calls this before writing C# for an unfamiliar type. Results describe the running Revit's API version only. XML summaries are optional. skippedCount counts omissions.

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": {
      "query": "<query>"
    },
    "name": "revit_api_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNosearch
limitNo
queryYes
documentNodoc: ID/path/title across several Revit instances.
process_idNoRevit PID; must match document.
timeout_secondsNoResult wait in seconds.
include_obsoleteNo
include_inheritedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.0.0
    • changedInput schema / properties / document / description
      Previous value: -"Session documentId, full path, title/file substring; selects among several Revit instances."New value: +"doc: ID/path/title across several Revit instances."
    • changedInput schema / properties / process_id / description
      Previous value: -"Process ID; must also match document."New value: +"Revit PID; must match document."
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"Seconds to wait for a result (default 120)."New value: +"Result wait in seconds."
  2. Changed2 schema fields changedv2.1.0
    • changedInput schema / properties / document / description
      Previous value: -"Title or file name substring of the target document; needed when several Revit instances run."New value: +"Session documentId, full path, title/file substring; selects among several Revit instances."
    • changedInput schema / properties / process_id / description
      Previous value: -"Revit process ID; takes precedence over document."New value: +"Process ID; must also match document."
  3. Addedv2.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safe-read profile (readOnlyHint, idempotentHint, destructiveHint=false), and the description adds real context beyond them: results are tied to the running Revit's API version, XML summaries may be absent, and skippedCount reflects omissions. It still says nothing about how multi-instance targeting via document/process_id affects results or how timeouts surface.

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?

Four short, front-loaded sentences with no filler; the usage trigger comes early and the caveats follow. The closing "skippedCount counts omissions" is slightly cryptic without a surrounding explanation of the result payload.

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 structure needn't be restated, but for an 8-parameter tool with one third schema coverage the definition leaves the search-vs-type behavior and the two include_* flags unexplained. It is adequate to start a call but not to call it precisely.

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 coverage is only 38%, so the description needs to carry parameter meaning and does not: it never explains the kind enum (type/member/search), limit, include_obsolete, include_inherited, or the query matching rules. The only term it clarifies, skippedCount, is an output field, not an input parameter.

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 ("Look up public Revit API types and members") and scopes it to the running Revit's API version, which makes it unmistakably the reference-lookup tool rather than one of the many mutation or execution siblings such as revit_execute_code.

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?

"The agent calls this before writing C# for an unfamiliar type" gives a clear trigger condition for use, which is more than most definitions offer. It does not state when not to use it (e.g. for known types or when the version mismatch doesn't matter), so it falls short of full routing guidance.

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