Skip to main content
Glama
TKMD
by TKMD

design.search_by_image

Read-onlyIdempotent

Search visually similar design sections from a Base64 or HTTPS image using DINOv2 embeddings and HNSW retrieval. Add an optional text query to run hybrid search that blends text, vision, and fulltext signals.

Instructions

画像から視覚的に類似したデザインセクションを検索します。Base64エンコード画像またはHTTPS画像URLを入力として受け付けます。DINOv2 visual embeddingを使用したHNSW検索で類似デザインを発見します。オプションのテキストクエリを指定すると、RRF 3-source融合(text 40% + vision 30% + fulltext 30%)でハイブリッド検索を実行します。

Input Schema

NameRequiredDescriptionDefault
imageYesBase64エンコードされた画像データ(data:image/...;base64,... 形式も可)またはHTTPS画像URL。受理形式は PNG / JPEG / WebP(先頭バイトで判定)。それ以外は UNSUPPORTED_IMAGE_FORMAT で拒否
limitNo取得件数(1-50、デフォルト: 10)
queryNoオプションのテキストクエリ(ハイブリッド検索用、日本語/英語対応、1-500文字)
section_typeNoセクションタイプフィルタ(hero, feature, cta, testimonial, pricing, footer等)
min_similarityNo最小類似度閾値(0-1、デフォルト: 0.3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.1
    • changedInput schema / properties / image / description
      Previous value: -"Base64エンコードされた画像データ(data:image/...;base64,... 形式も可)またはHTTPS画像URL"New value: +"Base64エンコードされた画像データ(data:image/...;base64,... 形式も可)またはHTTPS画像URL。受理形式は PNG / JPEG / WebP(先頭バイトで判定)。それ以外は UNSUPPORTED_IMAGE_FORMAT で拒否"
  2. Addedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/closed-world, so safety is covered. The description then adds genuinely useful behavioral context beyond that: DINOv2 visual embeddings, HNSW nearest-neighbor retrieval, and the exact RRF fusion weighting (40/30/30) when a query is present, which tells the agent how results are ranked and why hybrid results may differ.

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?

Four sentences, well front-loaded: purpose first, accepted inputs second, mechanism third, optional-mode fourth. No filler. Slightly over-indexed on implementation internals (DINOv2/HNSW) that an agent does not strictly need to call it.

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

Completeness3/5

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

Parameters are fully documented via schema and safety via annotations, but there is no output schema and the description says nothing about what a result looks like (sections, similarity scores, ordering, count). For a search tool whose output shape is undefined elsewhere, that is a notable remaining gap.

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 is 3; the description earns extra credit by explaining the semantic effect of the 'query' parameter (it switches the whole search into a 3-source RRF fusion rather than a pure visual lookup), which the schema text alone does not convey.

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 specific verb and resource: searching design sections visually similar to a supplied image. It distinguishes itself from the other *search* siblings (layout.search, motion.search, narrative.search, background.search) by naming the modality (image) and the target resource (design sections) rather than sites or parts.

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?

Explains the two input modes (Base64 or HTTPS URL) and, critically, the condition that switches behavior: an optional text query triggers the RRF hybrid search. That is clear context for mode selection. It stops short of stating when to prefer design.similar_site or search.unified instead, so no explicit exclusions.

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