Skip to main content
Glama
ToungaGH

SketchUp MCP for SketchUp Make 2017

by ToungaGH

execute_ruby

Run arbitrary Ruby code in SketchUp Make 2017 to inspect or modify the active model through the Ruby API, returning results and printed output.

Instructions

Execute arbitrary Ruby code inside SketchUp. The code runs at the top level (not inside the plugin's SU_MCP module; call its helpers as SU_MCP.name) and has full access to the SketchUp Ruby API (Sketchup, Geom, UI, etc.). Returns the result of the last expression and any puts/print output. SketchUp Make 2017 (Ruby 2.2): do NOT use Ruby 2.3+ syntax such as &. or <<~. The raw API works in inches: write lengths with SketchUp's unit helpers, e.g. 3.5.m or 20.cm. Solid-tool methods (union, subtract, intersect, trim, split, outer_shell) are SketchUp Pro only and fail in Make. Wrap edits in model.start_operation('Name', true) / model.commit_operation for a single undo step. Use with care — this can modify or delete model data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesRuby source code to execute

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0+make2017

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses execution scope, return behavior (last expression plus puts/print output), version-specific syntax limitations, Pro-only methods, undo requirements, and a clear warning that model data can be modified or deleted.

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?

Front-loaded with the core purpose, then layered with operational details that each earn their place given the tool's power and danger. Despite its length, every sentence contributes actionable information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-risk, annotation-free code execution tool with no output schema, the description covers execution context, return values, API access, version pitfalls, unit handling, Pro-only limitations, and undo discipline. It is complete enough for an agent to call it correctly and safely.

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 100% for the single code parameter, so the schema already documents it. The description provides useful context about how that code runs but adds no syntax, format, or constraint details beyond what the schema states.

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 the specific verb and resource: execute arbitrary Ruby code inside SketchUp. The description makes clear this is a generic scripting tool, distinct from all the specific modeling siblings like create_face or move_entity. An agent can immediately understand its unique role.

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?

The description provides extensive operational context (top-level execution, API access, version constraints, undo wrapping) but never says when to choose this over a dedicated sibling tool or when to avoid it. Usage is implied for custom operations not covered elsewhere, but no explicit alternatives or exclusions are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.