Skip to main content
Glama

Moltline Vision Maths

Bbox Convert

bbox_convert
Read-onlyIdempotent

Convert bounding boxes between COCO, Pascal VOC and YOLO. FREE.

The three formats disagree on everything: COCO is [x, y, width, height], VOC is [x1, y1, x2, y2], YOLO is [cx, cy, w, h] normalised to the image. Getting this wrong produces boxes that look plausible and quietly ruin every metric. Typical input {"boxes": [[10, 20, 100, 50]], "from_format": "coco", "to_format": "yolo", "image_width": 640, "image_height": 480} returns {"boxes": [[0.0938, 0.0938, 0.1562, 0.1042]], "converted": 1, "rejected": []}.

Use whenever a dataset and a model disagree about format. Not for scoring predictions (detection_metrics) and not for removing overlaps (nms). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "boxes must contain at least one box"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
clipNoWhen true, clamp boxes to the image bounds instead of returning them as they are. Off by default, because a box outside the image is usually a bug worth seeing.
boxesYesBoxes to convert, each a list of exactly four numbers in from_format, e.g. [[10, 20, 100, 50]].
to_formatYesThe format to convert to; same three choices.
from_formatYes"coco" for [x, y, w, h], "voc" for [x1, y1, x2, y2], or "yolo" for normalised [cx, cy, w, h].
image_widthNoPixel width, required whenever yolo is on either side.
image_heightNoPixel height, required whenever yolo is on either side.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes further by documenting the non-throwing error contract ({"error": ...}, with a concrete example), the typical input/output payload, and the retry-safety guarantee after correcting input. It also flags the silent-failure hazard (boxes that "quietly ruin every metric"), which helps the agent understand the cost of bad input.

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?

Front-loaded with purpose, then format semantics, then a concrete example, then routing rules and error behaviour — a defensible order. It is longer than strictly necessary: the paragraph on how the three formats disagree overlaps with the enum descriptions already in the schema, and the example return value duplicates what the output schema covers.

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

Completeness5/5

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

For a read-only, idempotent conversion tool with a full input schema and an output schema, the description supplies everything an agent needs: when to call it, what the payloads look like, how failures are surfaced, and that retries are safe. No gap is left that the structured fields don't cover.

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 coverage is 100%, so parameter documentation is already strong. The description adds a worked example that shows all five meaningful fields in use together (including the image_width/image_height requirement when YOLO is on either side), which is more than restating the schema. It stops short of explaining the `clip` flag's behaviour, which is left entirely to 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?

Opens with a specific verb and resource ("Convert bounding boxes") and enumerates the exact three formats involved, so an agent knows the operation's scope immediately. It also names the sibling tools it is not (detection_metrics, nms), making it distinguishable without opening any schema.

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?

States the triggering condition ("whenever a dataset and a model disagree about format") and explicitly excludes two sibling tools by name with their purposes. Nothing is left for the agent to infer about when to route here.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.