Skip to main content
Glama

OpenRobotics

POST /v1/embed

embed

Embed one image (or a short clip, with a video encoder) with a vision encoder. Returns a vector of the model's dim floats (up to a few thousand). Models: list_models with endpoint "embed", e.g. "google/siglip2-so400m". 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>"
    },
    "name": "embed"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNobase64 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
framesNoclip, oldest first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true; the description adds real value beyond that by disclosing the return shape (float vector up to a few thousand dims) in the absence of an output schema, and by surfacing a billing trait ('Billed per call unless the key is a sandbox key'). It stops short of covering rate limits, failure modes, or latency characteristics.

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 tight sentences, front-loaded with what the tool does and followed by output shape, model discovery, and billing. No sentence is wasted, though the dense packing of model lookup, encoder type, and pricing into short clauses makes it slightly abrupt to scan.

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 3-parameter tool with full schema coverage and no output schema, the definition supplies the essential missing pieces: return format, model discovery path, clip support caveat, and cost behavior. Only minor items like error semantics or clip-vs-image precedence remain unstated, which the mutually-exclusive schema note largely covers.

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 the baseline would be 3, but the description adds meaning the schema lacks: it clarifies the image-vs-frames choice ('one image (or a short clip, with a video encoder)') and shows how to obtain a valid model id rather than just saying 'provider/name'. It does not elaborate on frame ordering or size limits beyond what the schema states.

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?

States a precise verb+resource: 'Embed one image (or a short clip, with a video encoder) with a vision encoder.' It also defines the output ('a vector of the model's dim floats'), which cleanly separates it from sibling tools like detect, segment, and depth that also accept images but return different artifacts.

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?

Gives clear forward guidance on picking a model: 'list_models with endpoint "embed", e.g. "google/siglip2-so400m"' and notes that clips require a video encoder. It lacks explicit when-not guidance (e.g., when to prefer detect or segment over embed), but the context needed to choose sensibly is present.

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