Skip to main content
Glama

Engrave Text

engrave_text

Add or cut extruded text on any planar face of a solid. Set size, depth, font, and offset to engrave recessed or emboss raised text.

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.8/5.0
Behavior5/5

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

Discloses that the host solid is 'consumed/hidden and replaced by the returned handle', a mutation that matters to callers. Also documents the RuntimeError when no font is found, the macOS auto-probe fallback order, and that volume is less for engrave and greater for emboss. readOnlyHint=false already signals mutation, so this is additive context, not a contradiction.

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?

Front-loads the core purpose, then a single process sentence, then a tight parameter-by-parameter breakdown, then the return contract. Each parameter line carries distinct semantic weight with no filler; at roughly 250 words for a nine-parameter tool it is dense but appropriately sized.

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?

Complete for a high-complexity tool: 9 params, 0% schema coverage, no enums, and no output schema — yet the description supplies the return shape, volume semantics, error conditions, preconditions, units, and defaults. Nothing an agent needs to invoke it 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 coverage is 0%, but the description documents all nine parameters with units (mm), defaults, allowed values, constraints (non-empty text, planar face), and failure modes. It even clarifies ambiguous schema types like position ([u, v] offset from centroid) and nullable font (auto-probe behavior). Fully compensates for the bare schema.

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?

Opens with a specific verb-plus-resource statement — 'Engrave (cut) or emboss (add) extruded text onto a planar face of a solid' — and clarifies the text is booleaned into the host. This distinguishes it from every sibling in the list, none of which perform face text marking. Goes well beyond the title by naming both modes and the geometric target.

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 concrete preconditions: the face must be planar and passed as a stable f_* tag from list_faces/query_faces, explicitly naming sibling tools that feed it. Explains when to choose mode='engrave' versus 'emboss' in terms of material removal versus addition. It does not name explicit alternative tools or when-not-to-use conditions, though no close sibling for text marking exists.

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