Skip to main content
Glama

OpenRobotics

POST /v1/segment

segment

Segment objects in an image from points, boxes or text prompts. Returns masks as COCO RLE. Models: list_models with endpoint "segment". Billed per call unless the key is a sandbox key.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model": "<model>",
      "image": "<image>"
    },
    "name": "segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
boxesNo
imageYesbase64 JPEG or PNG, optionally a data: URL; or an https:// URL of an image or video (fetched for you, up to 4 MB)
modelYesModel id from GET /v1/models, e.g. provider/name
pointsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description adds two things annotations cannot convey: the exact output shape (COCO RLE masks) and the cost model (billed per call unless a sandbox key is used). It still omits how many masks come back per prompt and any limits on combining points, boxes, and text, but the additions are substantive.

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?

Three short sentences with the core action and return format front-loaded, followed by model discovery and billing. The "Models: list_models with endpoint "segment"" sentence is telegraphic but earns its place; no filler.

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 correctly compensates by stating the return format (COCO RLE), and it covers model sourcing and cost. Given five parameters and 40% schema coverage, the remaining gap is mainly how prompt modalities combine and any per-call limits, which is modest for a prediction endpoint.

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 description coverage is 40%, so the description's mention of points, boxes, and text prompts does help map the prompt modes to parameters, and the schema itself documents image sources and pixel coordinate formats. It adds no meaning about how the three prompt types interact, whether they can be combined, or coordinate conventions beyond what the schema already states.

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?

"Segment objects in an image from points, boxes or text prompts" gives a specific verb and resource, and the return format (masks as COCO RLE) further pins down what the tool produces. It does not explicitly distinguish itself from close siblings such as detect or pose, so it stops short of a 5.

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

Usage Guidelines3/5

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

The description routes the agent to list_models with endpoint "segment" to obtain the required model id, which is genuine adjacent-tool guidance. It never says when to choose segment over detect or track, nor what inputs are mutually exclusive or required beyond the schema, so usage is only partially implied.

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.

Resources