Skip to main content
Glama

cross_section_view

Read-only

Slice an STL mesh at a chosen x, y, or z plane to inspect internal geometry, wall thickness, and hole placement; returns contour polygons and cross-sectional area.

Instructions

Compute a 2D cross-section of a mesh at a cutting plane.

        Slices the mesh perpendicular to the chosen axis and returns
        contour polygons and cross-sectional area.  Useful for inspecting
        internal geometry (e.g., wall thickness, hole placement).

        :param file_path: Path to STL file.
        :param plane: Axis perpendicular to the cut -- "x", "y", or "z".
        :param offset_ratio: Fractional position 0.0-1.0 (default 0.5 = midpoint).
        :param offset_mm: If set, absolute position in mm (overrides offset_ratio).
        :returns: Dict with contour_count, contour_points, cross_section_area_mm2.
        

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": {
      "file_path": "<file_path>"
    },
    "name": "cross_section_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
planeNoAxis perpendicular to the cut -- "x", "y", or "z". Default: "z".
file_pathYesPath to STL file.
offset_mmNoIf set, absolute position in mm (overrides offset_ratio). Default: "".
offset_ratioNoFractional position 0.0-1.0 (default 0.5 = midpoint). Default: 0.5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.5.1
    • addedInput schema / properties / file_path / description
      Added value: +"Path to STL file."
    • changedInput schema / properties / offset_mm / description
      Previous value: -"Default: \"\"."New value: +"If set, absolute position in mm (overrides offset_ratio). Default: \"\"."
    • changedInput schema / properties / offset_ratio / description
      Previous value: -"Default: 0.5."New value: +"Fractional position 0.0-1.0 (default 0.5 = midpoint). Default: 0.5."
    • changedInput schema / properties / plane / description
      Previous value: -"Default: \"z\"."New value: +"Axis perpendicular to the cut -- \"x\", \"y\", or \"z\". Default: \"z\"."
  2. Changed6 schema fields changedv1.5.0
    • removedInput schema / properties / offset_mm / default
      Removed value: -""
    • addedInput schema / properties / offset_mm / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / offset_ratio / default
      Removed value: -0.5
    • addedInput schema / properties / offset_ratio / description
      Added value: +"Default: 0.5."
    • removedInput schema / properties / plane / default
      Removed value: -"z"
    • addedInput schema / properties / plane / description
      Added value: +"Default: \"z\"."
  3. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered elsewhere. The description adds real value by disclosing the return payload (contour_count, contour_points, cross_section_area_mm2) and the fact that offset_mm overrides offset_ratio. It says nothing about behavior at out-of-range planes, empty cuts, or whether the file must already be cached, so a 3 is appropriate.

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 first two paragraphs are well front-loaded and tight. The trailing :param: block duplicates a schema that already has 100% description coverage, so several lines do not earn their place; only the :returns: line carries non-redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the :returns: line is essential and present, which is a genuine strength. However, 'Path to STL file' is ambiguous in a toolset full of cached-model tools (cache_model, search_cached_models, list_cached_models) — the description does not say whether this is a local filesystem path or a cached model identifier, nor what happens if the plane misses the geometry.

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?

Schema description coverage is 100%, and the :param: lines largely restate the schema text verbatim ('Axis perpendicular to the cut -- "x", "y", or "z"', 'Fractional position 0.0-1.0'). The one genuinely useful clarification is that offset_mm overrides offset_ratio, but the schema already states this too. Baseline 3 applies since nothing meaningful is added beyond the structured fields.

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?

The description uses a specific verb and resource ('Compute a 2D cross-section of a mesh at a cutting plane') and immediately states the mechanism ('slices the mesh perpendicular to the chosen axis') plus the outputs ('contour polygons and cross-sectional area'), which clearly separates it from siblings like analyze_mesh_geometry or inspect_mesh_view. It never names a sibling explicitly to route the agent, so it falls short of a 5.

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?

It gives a concrete usage context: 'Useful for inspecting internal geometry (e.g., wall thickness, hole placement).' That is a clear when-to-use signal. There is no explicit exclusion or named alternative (e.g., versus detect_mesh_pockets for pocket detection), so it does not reach 5.

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