Skip to main content
Glama
Stv-devl
by Stv-devl

get_bounds

Retrieve the bounding box of an entire drawing or a selected layer, returning x/y min/max, width, and height in millimeters. Optionally exclude hidden layers and objects for visible-only bounds.

Instructions

Bounding box of the whole drawing (or one layer): x/y min/max, width, height (mm). visible_only=true ignores hidden layers and objects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerNo
visible_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It states the visible_only behavior (ignores hidden layers and objects), the optional layer scoping, and the output units in mm. This is solid coverage for a read-only bounding-box query, though it does not describe edge cases like an empty drawing.

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-load the key output fields and units, then add the parameter behavior. Every clause earns its place with no filler or redundancy.

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?

For a simple getter with an output schema present, the description covers the main calling details: scope, visibility filter, and units. It is slightly terse on default layer behavior, but overall an agent has enough to invoke the tool correctly.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate for both parameters. It does explain visible_only explicitly and gives context for layer via 'whole drawing (or one layer)', but it does not specify the expected layer-name format or the exact meaning of null. This is useful but not exhaustive.

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 clearly identifies the tool's output: a bounding box for either the whole drawing or a single layer, with x/y min/max, width, and height in mm. It is specific about the resource type and scope, though it does not explicitly compare itself to sibling tools like get_object_geometry.

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

Usage Guidelines2/5

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

The description implies usage through the layer and visible_only parameters, but it provides no explicit guidance on when to choose this tool over alternatives, nor any exclusions or prerequisites. An agent must infer the appropriate context.

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