Skip to main content
Glama
Karanfil Labs Visual DNA

Karanfil Labs Visual DNA

Official

search_scenes_by_text

Search millions of cinema and TV frames by describing a scene in plain English to find matching visual moments and return the closest results.

Instructions

Search millions of cinema and TV frames using an English natural-language scene description.

Args:
    query: English scene description (e.g. 'car chase in rainy neon street'). Translate non-English prompts to English before calling.
    top_k: Number of closest matching scenes to return (1 to 10, default 5).
    min_score: Minimum text-to-image similarity threshold (0.0 to 1.0, default 0.22).

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": {
      "query": "<query>"
    },
    "name": "search_scenes_by_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNo
min_scoreNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It hints at scale ('millions of frames') and read-only search semantics, but never states that the operation is non-destructive, whether there are rate limits, or how large a result set implies latency. Return shape is covered by the output schema, so that omission is acceptable.

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?

The core capability is front-loaded in the first sentence, followed by a compact Args block with one line per parameter. No filler or redundant restatement of the tool name.

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 three-parameter, read-only search tool with an output schema and no annotations, this is nearly complete: it covers corpus, input domain, parameter bounds, and language handling. What is missing is safety/behavioral posture and an explicit pointer to the image-based alternative.

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 description coverage is 0%, so the description must compensate, and it largely does: query is defined as an English scene description with an example plus a translation rule, top_k is bounded 1-10 with a default, and min_score is described as a text-to-image similarity threshold with its range and default. It does not explain the precision/recall tradeoff of lowering min_score, which would be the final piece of meaning.

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?

The description opens with a specific verb and resource ('Search millions of cinema and TV frames') and constrains the input to an English natural-language scene description, which implicitly contrasts with the image-based sibling. It stops short of naming that sibling, so the differentiation is inferable rather than explicit.

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?

Useful operational guidance is given ('Translate non-English prompts to English before calling'), but there is no statement of when to prefer this tool over identify_scene_from_image or when a text search is inappropriate. Usage context is implied rather than stated.

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