Skip to main content
Glama
mhyrr
by mhyrr

create_dovetail

Generate dovetail joints in Sketchup by defining components, dimensions, and angles for precise 3D modeling within the SketchupMCP server.

Instructions

Create a dovetail joint between two components

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
angleNo
depthNo
heightNo
num_tailsNo
offset_xNo
offset_yNo
offset_zNo
pin_idYes
tail_idYes
widthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The MCP tool handler function 'create_dovetail' that forwards parameters to Sketchup extension via socket/JSON-RPC to create a dovetail joint.
    @mcp.tool()
    def create_dovetail(
        ctx: Context,
        tail_id: str,
        pin_id: str,
        width: float = 1.0,
        height: float = 1.0,
        depth: float = 1.0,
        angle: float = 15.0,
        num_tails: int = 3,
        offset_x: float = 0.0,
        offset_y: float = 0.0,
        offset_z: float = 0.0
    ) -> str:
        """Create a dovetail joint between two components"""
        try:
            logger.info(f"create_dovetail called with tail_id={tail_id}, pin_id={pin_id}, width={width}, height={height}, depth={depth}, angle={angle}, num_tails={num_tails}")
            
            sketchup = get_sketchup_connection()
            
            result = sketchup.send_command(
                method="tools/call",
                params={
                    "name": "create_dovetail",
                    "arguments": {
                        "tail_id": tail_id,
                        "pin_id": pin_id,
                        "width": width,
                        "height": height,
                        "depth": depth,
                        "angle": angle,
                        "num_tails": num_tails,
                        "offset_x": offset_x,
                        "offset_y": offset_y,
                        "offset_z": offset_z
                    }
                },
                request_id=ctx.request_id
            )
            
            logger.info(f"create_dovetail result: {result}")
            return json.dumps(result)
        except Exception as e:
            logger.error(f"Error in create_dovetail: {str(e)}")
            return f"Error creating dovetail joint: {str(e)}"
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool creates a joint, implying a write/mutation operation, but doesn't disclose any behavioral traits such as permissions needed, whether it modifies existing components, error conditions, or what the output contains. This leaves significant gaps for an agent to understand how to use it safely and effectively.

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?

The description is a single, clear sentence with zero waste—it directly states the tool's purpose without fluff or redundancy. It's appropriately sized and front-loaded, making it easy for an agent to parse quickly.

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?

Given the complexity (10 parameters, no annotations, but an output schema exists), the description is minimal. It states the basic purpose but lacks guidance, parameter explanations, and behavioral context. The presence of an output schema means return values are documented elsewhere, but the description doesn't compensate for other gaps, making it incomplete for effective use.

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%, so the description must compensate by explaining parameters, but it adds no meaning beyond the schema. It doesn't clarify what 'tail_id' and 'pin_id' refer to, the units for measurements like 'angle' or 'depth', or the purpose of offsets. With 10 parameters and no schema descriptions, this is inadequate.

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 clearly states the action ('create a dovetail joint') and the target ('between two components'), which is specific and actionable. However, it doesn't distinguish this tool from similar sibling tools like 'create_finger_joint' or 'create_mortise_tenon', which would require mentioning unique characteristics of dovetail joints.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'create_finger_joint' or 'create_mortise_tenon', nor does it mention prerequisites, context, or exclusions. It's a bare statement of function without usage context.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mhyrr/sketchup-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server