Skip to main content
Glama

ProtoJoint

New sketch

create_sketch

Creates a sketch and returns its id and its axes in world coordinates: a point [u, v] of it is origin + u * u_axis + v * v_axis. Give one of: plane - an origin plane, XY (top, normal +Z), XZ (front, normal -Y; u = X, v = Z) or YZ (right, normal +X; u = Y, v = Z), optionally offset along its normal; on_face - a planar face of a body (a boss or a hole on it), which the sketch then follows when the model changes, its origin the part origin projected onto the face and u horizontal where it can be; normal - any plane, through origin (default [0, 0, 0]) square to normal, u along u_axis. in_part: the plane given in the coordinates of that part, the sketch made in it (for a library part, in the active part).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_sketch"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
planeNo
normalNoAny plane: its normal [x, y, z].
offsetNoWith plane: distance along its normal, mm (default 0).
originNoWith normal: a point of the plane, mm (default [0, 0, 0]).
u_axisNoWith normal: the sketch's u direction (made square to the normal; default horizontal where it can be).
in_partNoPoints and directions in this part's coordinates, as it stands now; default the world.
on_faceNoA planar face of a body: exactly one face must match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare this is a mutating, non-idempotent, closed-world operation, but the description adds real behavior: the returned coordinate mapping (point [u, v] = origin + u*u_axis + v*v_axis), the parametric consequence that an on_face sketch follows the model when it changes, the 'origin is the part origin projected onto the face' rule, and the constraint that exactly one face must match.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and strong, but the remainder is a single dense run-on paragraph where modes, defaults, and axis conventions are crammed into semicolon-separated clauses. Every clause carries information, yet the lack of any separation or grouping makes it harder to scan than it needs to be.

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 an 8-parameter, zero-required, nested-object tool with no output schema, the definition covers the return value, all construction modes, defaults (offset 0, origin [0,0,0], world if no in_part), and face-matching semantics. What it leaves implicit is failure behavior when no face or multiple faces match, and it never mentions the optional name parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Well beyond the 75% schema coverage, the description pins down the otherwise opaque plane enum values with their normals and u/v axis assignments (XZ: normal -Y, u = X, v = Z), explains that u_axis is re-squared to the normal, and clarifies that in_part coordinates are 'as it stands now' with the active part used for library parts. This is exactly the semantic amplification the schema alone cannot provide.

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 ('Creates a sketch') plus the return value ('its id and its axes in world coordinates'), and immediately distinguishes the three construction modes (plane / on_face / normal). An agent can tell this apart from get_sketch or add_geometry without opening any schema.

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?

Gives clear selection rules among the three mutually exclusive modes: an origin plane with optional offset, a planar face that the sketch follows on rebuild, or an arbitrary plane defined by a normal. It also states the in_part coordinate context and its library-part behavior. It does not name sibling tools or say when a sketch is preferable to other creation paths, so it stops short of full alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources