Skip to main content
Glama

Image as Reference

lab_referenz_aus_bild

Attach an existing project image (an image_id from lab_umzug, lab_get_job result.bildzeilen or lab_generate) as reference: ziel: 'figur' makes it a view of a character (default view 'detail', the face anchor). personenbezug is REQUIRED for a character and has no default: 'keine_reale_person' or 'reale_person' — the latter needs a likeness_ref from the Likeness Register and turns the character into a digital double, checked before every later generation. ziel: 'location' stores it as the location's reference (viewer, continuity check). It does NOT steer generation — only the description does; beschreibung_ableiten: true derives the description from the image (does not overwrite an existing one unless ersetzen). Your own image from lab_add_media has no image_id: give project_id + asset_key instead (character only), with the same person question. An occupied character view answers 409 unless ersetzen: true. Free, except the description derivation (one vision call).

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": {
      "ziel": "<ziel>",
      "ziel_id": "<ziel_id>"
    },
    "name": "lab_referenz_aus_bild"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNo
zielYes
ziel_idYesCharacter id or location id
ersetzenNo
image_idNoImage id from lab_umzug {bilder}, lab_get_job result.bildzeilen or lab_generate. Give this OR asset_key
asset_keyNoCharacter only: asset_key of your own image from lab_add_media (needs project_id). Give this OR image_id
project_idNoWith asset_key only: the project the image was uploaded to — positive integer as string
likeness_refNoCharacter + reale_person only: Likeness Register id
personenbezugNoCharacter only, REQUIRED there: does the image show a real person?
beschreibung_ableitenNoLocation only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / asset_key
      Added value: +{
      +  "description": "Character only: asset_key of your own image from lab_add_media (needs project_id). Give this OR image_id",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / image_id / description
      Previous value: -"Image id from lab_umzug {bilder}, lab_get_job result.bildzeilen or lab_generate"New value: +"Image id from lab_umzug {bilder}, lab_get_job result.bildzeilen or lab_generate. Give this OR asset_key"
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "With asset_key only: the project the image was uploaded to — positive integer as string",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "ziel",
      -  "ziel_id",
      -  "image_id"
      -]New value: +[
      +  "ziel",
      +  "ziel_id"
      +]
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description adds substantive behavior on top — the 409 conflict on an occupied view unless `ersetzen: true`, the pre-generation likeness check once `reale_person` is set, and the cost model (free except one vision call for description derivation). It does not clarify what `ersetzen` actually discards or whether replacing a view is recoverable, so the overwrite consequence stays slightly vague relative to the non-destructive annotation.

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 core action and target are front-loaded, and nearly every clause carries operational detail (required fields, conflict behavior, cost). It is a single dense block with some redundancy — `personenbezug` being REQUIRED is stated again even though the schema already says so, and the image_id source list repeats the schema description.

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 10-parameter mutation tool with no output schema and minimal annotations, the description is unusually complete: it covers both input paths, the required character vs location branching, conflict handling, and cost. The main residual gap is that nothing describes the response shape or what a successful attach returns, which matters since no output schema exists.

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?

With 70% schema coverage the schema already documents most parameters, but the description adds real meaning the schema lacks: the default `view` value 'detail' and its role as the face anchor, the consequence of `personenbezug: 'reale_person'` (digital-double conversion requiring `likeness_ref`), and the non-overwrite semantics of `beschreibung_ableiten`. Only `ersetzen` and the less-common view enum values remain under-explained.

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 opens with a concrete verb and resource: attach an existing project image (image_id or asset_key) as a reference to either a character or a location. It distinguishes the two modes (`ziel: 'figur'` = character view vs `ziel: 'location'` = location reference) and explicitly states it does NOT steer generation, which separates it from lab_generate and the image-generation siblings.

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 gives clear when-to-use routing: use `ziel: 'figur'` for character views, `ziel: 'location'` for location references, and the `project_id` + `asset_key` path only for your own lab_add_media images (character only). It also states two important exclusions — it does not steer generation, and description derivation does not overwrite an existing description unless `ersetzen`. It stops short of explicitly routing against the closest sibling, lab_generate_character_reference, which a reader must infer.

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