Skip to main content
Glama

engrave_text

Cuts or adds raised text on a planar face of a solid, useful for labeling mechanical parts and adding part numbers.

Instructions

Engrave (cut) or emboss (add) extruded text onto a planar face of a solid.

The text is rendered in a system TrueType font, extruded, laid flat on the chosen face centred on its centroid, then booleaned into the host solid.

handle: the host solid to mark. face: the planar face to put the text on — a stable f_* tag (preferred), a 'FaceN' index string, or an int. Must be a flat (planar) face. Get a tag from list_faces / query_faces. text: the string to render (non-empty). size: cap height of the text in mm (default 5.0). depth: extrusion/engraving depth in mm (default 0.5). Engrave recesses the text this far below the surface; emboss raises it this far above. mode: 'engrave' (default) cuts the text into the solid (removes material); 'emboss' fuses raised text onto the surface (adds material). position: optional [u, v] in-face offset in mm from the face centroid, along the text's local X (u) and Y (v) axes. Omit to centre on the face. font: optional absolute path to a .ttf/.ttc font file. If omitted, common macOS fonts are auto-probed (Arial, then Helvetica). If none is found and none is supplied, the call raises RuntimeError — pass an explicit path. name: label for the resulting solid (default 'Text').

Returns {handle, name, volume, text, mode, depth} where volume is the mm^3 of the resulting solid (less than the input for engrave, more for emboss). The host solid is consumed/hidden and replaced by the returned handle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
faceYes
fontNo
modeNoengrave
nameNoText
sizeNo
textYes
depthNo
handleYes
positionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/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: it discloses the mutation model (host solid is consumed/hidden and replaced by the returned handle), the material consequence of each mode, and a concrete failure path (RuntimeError when no font is found, with the fix of passing an explicit path). It also explains the underlying boolean operation.

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

Conciseness4/5

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

Front-loads purpose and mechanism, then a clean per-parameter block. Every line earns its place, though the mechanism paragraph and font paragraph add some length that could be tightened without losing meaning.

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?

Despite no output schema, the description spells out the return shape ({handle, name, volume, text, mode, depth}) and interprets volume for both modes, plus states the handle-replacement contract. Nothing needed to invoke correctly is missing.

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?

Schema description coverage is 0% across 9 parameters, so the description must compensate and it does — every parameter (handle, face, text, size, depth, mode, position, font, name) is documented with type, default, units, and accepted value forms (e.g. face accepts f_* tag, 'FaceN', or int; position is [u, v] mm offsets).

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 pair and resource ('Engrave (cut) or emboss (add) extruded text onto a planar face of a solid') and immediately disambiguates the two modes. No sibling tool does text marking, so the scope is unambiguous.

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 conditional guidance for the mode parameter ('engrave' removes material, 'emboss' adds it) and points to list_faces/query_faces for obtaining a valid face tag. It does not name an alternative tool or state explicit when-not-to-use conditions, but the operation is narrow enough that little routing guidance is needed.

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

Deploy Server

Other Tools