Skip to main content
Glama

lay_flat

DestructiveIdempotent

Rotate an STL model so a stable face rests on the print bed, selecting the orientation that minimizes part and support volume per mm² of bed contact and returns the new STL path.

Instructions

Rotate the model so a face rests on the bed (Z=0), choosing the orientation with the least part and support volume per mm² of bed contact. A face counts only if nothing hangs below it. Returns the new STL path; structuredContent.laid_flat is false, with the input path, when no orientation qualifies.

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": {
      "stl_path": "<stl_path>"
    },
    "name": "lay_flat"
  }
}

Input Schema

NameRequiredDescriptionDefault
stl_pathYesPath to the STL file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare non-readonly, destructive, idempotent. The description adds real behavioral context beyond them: the heuristic used, the constraint that a face counts only if nothing hangs below it, and the no-op outcome (structuredContent.laid_flat=false with the input path) instead of a failure. It does not clarify whether the input STL is overwritten or a new file is always written, despite destructiveHint=true.

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 tight sentences, front-loaded with the action, then the criterion, then the return/fallback behavior. No filler; every clause carries information an agent needs.

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?

With no output schema, the description correctly explains the return value and the degraded-return case, which is the main completeness risk for this tool. It leaves open file-overwrite semantics and parse-failure behavior, the main gap given the destructive hint.

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

Parameters3/5

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

Only one parameter exists and schema coverage is 100%, so the schema fully documents stl_path. The description mentions an 'input path' only obliquely in describing the fallback and adds no format or path constraints beyond the schema; baseline 3 applies.

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 concrete verb and resource ('Rotate the model so a face rests on the bed') plus the exact selection criterion ('least part and support volume per mm² of bed contact'). This is clearly distinguishable from manual siblings like rotate_stl and center_model.

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 optimization criterion implies the tool is for automatic, best-orientation re-layout rather than a user-specified rotation, but no sibling is named and no explicit when-to-use/when-not guidance (e.g., 'instead of rotate_stl') is given. Usage is inferable rather than stated.

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