Skip to main content
Glama

Search images

search_images
Read-onlyIdempotent

Finds images in the media library (all AI-generated) by what they show: the query is matched against a description of each image written by a vision model, its tags, title, colours and album, and the best matches come first. Returns permanent URLs, 100 per page, each with its description, dominant colours, brightness and where there is room for text, so you can pick the image that fits the layout. Use it for a motif ('red dress', 'laptop on a desk', 'misty forest') and narrow it with tone, text_space, use, color or people, e.g. query 'architecture' with text_space 'left' and tone 'dark' for a hero with white text on the left. Without a premium key only the free images are included.

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_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
useNoWhat the image is good for on a website (optional).
pageNoPage of the result, 100 images per page (optional, default 1).
toneNoOverall brightness of the image (optional).
colorNoA dominant colour by name, e.g. 'blue', 'sage', 'orange' (optional).
queryYesOne or more English words describing the motif. Images matching every word rank first; if none do, close matches follow. E.g. 'gradient', 'laptop desk', 'woman red dress'.
peopleNoHow many people are visible (optional).
text_spaceNoWhere a calm area leaves room for a headline (optional). E.g. 'left' for a hero with the text on the left.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / color
      Added value: +{
      +  "description": "A dominant colour by name, e.g. 'blue', 'sage', 'orange' (optional).",
      +  "type": "string"
      +}
    • addedInput schema / properties / people
      Added value: +{
      +  "description": "How many people are visible (optional).",
      +  "enum": [
      +    "none",
      +    "one",
      +    "several"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"One or more words; every word must match. E.g. 'gradient', 'laptop', 'red dress'."New value: +"One or more English words describing the motif. Images matching every word rank first; if none do, close matches follow. E.g. 'gradient', 'laptop desk', 'woman red dress'."
    • addedInput schema / properties / text_space
      Added value: +{
      +  "description": "Where a calm area leaves room for a headline (optional). E.g. 'left' for a hero with the text on the left.",
      +  "enum": [
      +    "left",
      +    "right",
      +    "top",
      +    "bottom",
      +    "center"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / tone
      Added value: +{
      +  "description": "Overall brightness of the image (optional).",
      +  "enum": [
      +    "light",
      +    "mid",
      +    "dark"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / use
      Added value: +{
      +  "description": "What the image is good for on a website (optional).",
      +  "enum": [
      +    "hero",
      +    "background",
      +    "card",
      +    "portrait",
      +    "texture",
      +    "product"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Search term, e.g. 'gradient', 'laptop', 'wald'."New value: +"One or more words; every word must match. E.g. 'gradient', 'laptop', 'red dress'."
  3. Changed1 schema field changed
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Page of the result, 100 images per page (optional, default 1).",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Suchbegriff, z. B. 'gradient', 'laptop', 'wald'."New value: +"Search term, e.g. 'gradient', 'laptop', 'wald'."
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this as a safe, idempotent, non-destructive read, so the bar is low — but the description still adds real behavioral context: rank ordering (all-words matches first, close matches after), permanent URLs, 100 results per page, and a licensing constraint that only free images appear without a premium key. It leaves gaps on empty-result behaviour and how far pagination extends.

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?

It is front-loaded — purpose first, then returned data, then usage and narrowing — and every clause carries information. The middle sentence is long and stacks an example inside an example, which slightly hurts scanability.

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 does the work of describing returns (permanent URLs, description, dominant colours, brightness, text room), which is exactly what an agent needs to act on results. Remaining gaps are minor: what an empty or low-confidence result looks like and whether paging beyond the first 100 is expected.

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 coverage is 100% and four enums are documented inline, so the schema already carries most parameter meaning; the query ranking rule is even repeated from the schema. The description adds a useful combination example ('architecture' with text_space 'left' and tone 'dark'), which nudges it above the baseline but does not provide new field-level semantics.

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 specific verb and resource ('Finds images in the media library') and immediately explains the matching mechanism — the query is compared against a vision-model description, tags, title, colours and album. That mechanism cleanly separates it from a plain enumeration tool like list_images without needing to name it.

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 concrete when-to-use guidance ('Use it for a motif') with example queries and shows how to narrow results with tone, text_space, use, color and people, including a worked hero-image scenario. It stops short of stating when NOT to use it or naming an alternative such as list_images for browsing the whole library.

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.