Skip to main content
Glama

convex_hull

Computes the convex hull of 2D coordinate points and returns its area and perimeter for geometric analysis.

Instructions

Compute the convex hull of 2D points with area and perimeter.

Input Schema

NameRequiredDescriptionDefault
pointsYesArray of [x, y] coordinate pairs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that area and perimeter are computed alongside the hull, but does not say what the return looks like (vertex list? ordering? format) or the algorithmic behavior.

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?

A single front-loaded sentence with no filler; the core action and the notable outputs are stated first.

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 compensates by naming the returned quantities (area, perimeter), which is the most important missing structured detail. It could still specify the hull output format, but for a one-parameter computational tool it is largely sufficient.

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?

There is a single parameter and schema description coverage is 100%, so the schema already explains '[x, y] coordinate pairs'. The description's '2D points' phrasing adds nothing beyond that, matching the baseline for fully documented schemas.

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?

States a specific verb ('Compute') and resource ('convex hull'), and adds the scope ('2D points') plus the derived outputs (area, perimeter). This implicitly separates it from the sibling convex_hull_3d, though it does not name that sibling explicitly.

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?

No when-to-use guidance, no prerequisites, and no mention of the convex_hull_3d alternative for 3D inputs. The agent is left to infer selection purely from the '2D' qualifier.

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