Skip to main content
Glama

Sketch Rectangle

sketch_rectangle

Draw a rectangle in the active sketch using millimeter coordinates, with optional center-based placement defined by a center point and corner.

Instructions

Draws a rectangle in the active sketch (dimensions in mm). center_based=True uses (x1, y1) as center and (x2, y2) as corner.

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": {
      "x1": "<x1>",
      "y1": "<y1>",
      "x2": "<x2>",
      "y2": "<y2>"
    },
    "name": "sketch_rectangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
center_basedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose units (mm) and the two coordinate interpretation modes. It does not say what happens if no sketch is active, whether the result is a closed profile suitable for extrusion, or whether the operation is undoable — relevant gaps for a geometry-creating mutation.

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?

Two short sentences, front-loaded with the action and scope, then the one piece of semantics an agent cannot guess. Nothing is padded or repeated from the title.

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?

An output schema exists, so return values need not be described, and the definition covers the essential geometry semantics for a 5-parameter tool. The only real omissions are the active-sketch prerequisite behavior and whether the drawn entity is a closed profile, which are modest for a tool this simple.

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 description coverage is 0%, so the description must compensate, and it largely does: it assigns roles to all four coordinates and explains center_based, plus declares millimetre units that the schema lacks entirely. Remaining ambiguity is minor — the non-center mode is only implied (both points as corners) and no ordering or negative-coordinate constraints are given.

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 states a concrete verb and resource ('Draws a rectangle') plus the scope ('in the active sketch'), which cleanly separates it from sketch_circle, sketch_line and sketch_polygon. It stops short of naming an alternative tool or contrasting use cases, so it lands at clear-but-not-differentiating.

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?

'In the active sketch' implies the prerequisite that a sketch must already exist and be active, but this is never stated as a condition nor is the alternative (call create_sketch first) mentioned. There is no guidance on when to pick a rectangle versus another sketch primitive; usage must be inferred from the tool name.

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