Skip to main content
Glama

Sketch Line

sketch_line

Draws a line segment between two coordinate points in millimeters; set the centerline option to create construction geometry or an axis of revolution.

Instructions

Draws a line segment between (x1, y1) and (x2, y2) in mm. Set is_centerline=True for construction / axis of revolution.

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_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
is_centerlineNo

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 present the description carries the full burden, and it does disclose unit convention (mm), the coordinate endpoints, and the construction-geometry consequence of is_centerline. It omits the operating state the call assumes (an open sketch) and whether the operation is reversible or what it returns, though an output schema exists so return values need not be restated.

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 sentences: geometry first, the optional flag second, with no filler. Every clause carries information an agent needs to call the tool correctly.

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?

For a five-parameter primitive with an output schema and no annotations, the definition supplies geometry, units, and the one non-obvious flag. The remaining shortfall is contextual prerequisite (active sketch context) rather than missing parameter or return detail.

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 does: it maps the four numeric parameters to two endpoints on a plane in mm and explains that is_centerline is a boolean construction mode. The only gap is not naming the default behavior when is_centerline is omitted, which the schema default already covers.

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?

"Draws a line segment between (x1, y1) and (x2, y2) in mm" is a specific verb+resource with units and endpoints named, which is enough to separate it from sketch_circle, sketch_rectangle and sketch_polygon without needing to name them. It stops short of explicitly contrasting with any sibling, so it sits at a clear 4.

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 only guidance is the is_centerline clause ("for construction / axis of revolution"), which implies when the flag matters but not when to reach for this tool versus another sketch primitive. No prerequisites such as requiring an active sketch are stated; usage is only implied from context.

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