Skip to main content
Glama

measure_line

Measure an open polyline's length in feet at the drawing scale, optionally committing it as a linear takeoff shape (base, transition, feature strip).

Instructions

Measure an open polyline (min 2 points, image px): length_lf at the sheet's scale. Requires the scale to be set. Pass condition to commit it as a linear shape (base, transitions, feature strips). Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ptsYes
sheetYes
conditionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nptsYes
shape_idNoPresent when condition was passed and the shape committed
length_lfYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses coordinate system (image px at render scale 2.0, origin top-left, y-down), scale requirement, and that sheet payloads carry dims in px and pt. It doesn't mention destructiveness or auth, but for a read-like measurement tool, these are less critical.

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 well-structured, starting with verb and purpose, then key constraints. Every sentence adds value (coordinate details, scale requirement, condition usage). It could be slightly tightened (e.g., merging coordinate and sheet payload sentences) but is efficient overall.

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 tool with 3 parameters and an output schema, the description covers purpose, prerequisites, coordinate system, and one param's role. It lacks details on return values (output schema presumably covers that) and error cases. The sheet param missing is a gap, but overall it provides sufficient context for typical use.

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 coverage is 0%, so description must compensate. It explains 'pts' as polyline points and 'condition' as committing as a linear shape. However, 'sheet' is not described at all (likely an ID or key). This leaves one of three parameters unexplained, which is a gap given zero schema help.

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 clearly states the tool measures an open polyline's length in linear feet at the sheet's scale, contrasting with siblings like measure_polygon (likely area). The verb 'Measure' and specific resource 'open polyline' make the action unambiguous.

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 specifies a prerequisite ('Requires the scale to be set') and mentions passing a condition to commit as a linear shape. Though it doesn't explicitly list alternatives, the sibling context (e.g., measure_polygon for closed shapes, set_scale for scale) provides implicit guidance. Could be more directive about when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kentucky-ai/opentakeoff'

If you have feedback or need assistance with the MCP directory API, please join our Discord server