Skip to main content
Glama
pzfreo

build123d-mcp

prepare_drawing

Read-only

Detect spatial regions in raster engineering drawings, save an overview and readable crops, and return their pixel bounding boxes and paths for efficient inspection without manual crop scripting.

Instructions

Prepare a raster engineering drawing for efficient inspection. Detects substantial spatial regions, saves one labelled overview plus readable PNG crops, and returns their pixel bounding boxes and paths. Region ids are layout evidence only: this tool does NOT label views, recognise CAD features, interpret lines, infer dimensions, or trace geometry. Use it once near the start instead of repeatedly writing shell/PIL crop scripts; inspect the returned overview and only the relevant crops. Printed dimensions remain authoritative. image_path: PNG/JPEG/TIFF drawing under an allowed read root. output_dir: crop directory under an allowed write root. max_regions: 1..30. padding: crop padding in pixels, 0..500.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paddingNo
image_pathYes
output_dirNodrawing_regions
max_regionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.90

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, so the description doesn't need to justify safety. It adds value by disclosing that the tool saves files (overview and crops) as part of its operation, and it explicitly enumerates what it does not do (no view labelling, no CAD feature recognition, no dimension inference). This goes beyond the annotation and gives the agent an accurate mental model of its capabilities and boundaries.

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?

The description is dense but well organised: purpose first, then capability, then limitations, then usage, then parameter details. Every sentence adds value; there is no fluff. It is longer than a one-liner, but the complexity of the tool justifies it. The negative-capability list is particularly useful and is not redundant.

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?

An output schema exists, so return format is defined elsewhere. The description covers usage, parameter semantics, limitations, and the intended workflow. It doesn't mention error cases or what happens if the input is not a valid drawing, but for an inspection-prep tool this is acceptable. The description is sufficient for an agent to call it correctly in a typical workflow.

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%, so the description carries the full burden. It explains each parameter: image_path with accepted formats and read-root constraint, output_dir with write-root constraint, max_regions with range 1..30, and padding with pixel range 0..500. This is exactly the kind of semantic enrichment that makes the tool callable without opening the 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?

The description states a specific verb ('prepare') and resource ('raster engineering drawing'), then details the exact behavior: detecting spatial regions, saving an overview and crops, and returning bounding boxes and paths. It also explicitly lists what the tool does NOT do (label views, recognise CAD features, interpret lines, etc.), which strongly distinguishes it from siblings like crop_drawing, render_drawing, and recognise_features.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage guidance: 'Use it once near the start instead of repeatedly writing shell/PIL crop scripts; inspect the returned overview and only the relevant crops.' It also tells the agent to treat printed dimensions as authoritative, which is a clear directive on when to rely on the tool and when to defer to original data. This is more than enough to guide correct usage.

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