Skip to main content
Glama

search_text_in_image

Read-onlyIdempotent

Find screenshots, memes and other images by the exact words printed in them (OCR text): a quote, a caption, a sign, a watermark. Matches only the text in the image (the text_in_image field), not captions or tags, and returns strong matches only, each with a ready citation. Results exclude images classified controversial unless include_controversial is true.

Input Schema

NameRequiredDescriptionDefault
limitNoResults per page (1-50, default 10)
queryYesText to search for in image OCR
offsetNoPagination offset
include_controversialNoInclude images classified controversial (excluded by default).

Output Schema

NameRequiredDescriptionDefault
noteNoLeads the answer when there is something to say: no image matched (an empty result - try different words), the search was auto-corrected, or the first page has no strong result and shows the closest available.
totalYesTotal number of matching images.
imagesYesImages whose OCR text matched.
has_moreNoPresent when the API labelled the results: true when more results follow this page.
match_qualityNoPresent when the API labelled the results: strong = the search has at least one strong match (they lead the first page); closest_only = no strong match anywhere, every result is the nearest guess - do not present it as the answer; none = nothing on this page and no strong match.
corrected_queryNoPresent when the search found no strong match for the words as typed and ran again with this corrected wording: the results are for it. Tell the user.
citations_combinedNoCombined attribution for all images in this response, in three formats.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / corrected_query
      Added value: +{
      +  "description": "Present when the search found no strong match for the words as typed and ran again with this corrected wording: the results are for it. Tell the user.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / images / items / properties / citation / properties / source_origin / description
      Previous value: -"Origin: 'owid' | 'usda_ers' | 'eurostat' | 'eea' | 'imgflip' | '4chan' | 'telegram' | 'generated' | 'mcp' | 'x' | 'unknown' | null (null = a direct upload)."New value: +"Origin: 'owid' | 'usda_ers' | 'eurostat' | 'eea' | 'imgflip' | '4chan' | 'telegram' | 'generated' | 'mcp' | 'x' | 'web' | 'reverse' | 'unknown' | null (null = a direct upload)."
    • changedOutput schema / properties / images / items / properties / citation / properties / thumbnail_url / description
      Previous value: -"Thumbnail image URL."New value: +"Thumbnail URL sized for display (?w=384: a lighter rendition about 384 px wide where one exists)."
    • changedOutput schema / properties / images / items / properties / thumbnail_url / description
      Previous value: -"Thumbnail image URL."New value: +"Thumbnail URL sized for display (?w=384: a lighter rendition about 384 px wide where one exists)."
    • changedOutput schema / properties / note / description
      Previous value: -"Present when the first page has no strong result: says so and that the results are the closest available."New value: +"Leads the answer when there is something to say: no image matched (an empty result - try different words), the search was auto-corrected, or the first page has no strong result and shows the closest available."
  2. Changed1 schema field changed
    • changedOutput schema / properties / images / items / properties / rights / description
      Previous value: -"What you may do with the image, as far as MemeStack knows - 'unknown' wherever it knows nothing, never a guess. The citation says how to credit an image; this says whether it may be reused. Absent on find_similar / find_related results (call get_image or cite_image for those)."New value: +"What you may do with the image, as far as MemeStack knows - 'unknown' wherever it knows nothing, never a guess. The citation says how to credit an image; this says whether it may be reused."
  3. Changed3 schema fields changed
    • addedOutput schema / properties / images / items / properties / citation / properties / original
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Who made the ORIGINAL of the recognised meme (e.g. This Is Fine by KC Green), from a hand-checked list with sources. Present only when that list knows the meme; it credits the meme's origin, not this image's uploader, and grants no rights.",
      +  "properties": {
      +    "credit": {
      +      "description": "Who or what the original is, e.g. \"by KC Green, from his webcomic Gunshow (\\\"On Fire\\\")\".",
      +      "type": "string"
      +    },
      +    "source_url": {
      +      "description": "The page the credit was checked against.",
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "The meme as usually named.",
      +      "type": "string"
      +    },
      +    "year": {
      +      "description": "Year the original was made or first posted; null when the source gives none.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "title",
      +    "credit",
      +    "source_url"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / images / items / properties / rights
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "What you may do with the image, as far as MemeStack knows - 'unknown' wherever it knows nothing, never a guess. The citation says how to credit an image; this says whether it may be reused. Absent on find_similar / find_related results (call get_image or cite_image for those).",
      +  "properties": {
      +    "attribution": {
      +      "description": "The credit line to show beside the image (the line a publisher licence asks for; otherwise where the image came from, never who owns it).",
      +      "type": "string"
      +    },
      +    "attribution_required": {
      +      "description": "True for publisher charts and creator work.",
      +      "type": "boolean"
      +    },
      +    "commercial_use": {
      +      "description": "yes only for USDA ERS, Eurostat and EEA charts; no for creator work; unknown for Our World in Data (a chart may plot third-party data under its own terms) and every community image.",
      +      "enum": [
      +        "yes",
      +        "no",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "license": {
      +      "description": "Licence id (\"US-PD\" = U.S. federal public domain); null = no licence known.",
      +      "enum": [
      +        "CC-BY-4.0",
      +        "US-PD",
      +        "all-rights-reserved",
      +        null
      +      ],
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "license_name": {
      +      "description": "Human licence label, e.g. \"CC BY 4.0\".",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "license_url": {
      +      "description": "The licence text, or the creator terms.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "description": "The one condition or caveat that changes what you may do, or null.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "publisher": {
      +      "additionalProperties": true,
      +      "description": "The publisher of a publisher image; null otherwise.",
      +      "properties": {
      +        "key": {
      +          "description": "Publisher key: \"owid\", \"usda_ers\", \"eurostat\" or \"eea\".",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Publisher name.",
      +          "type": "string"
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "description": "publisher = imported from a licence-clean publisher (Our World in Data, USDA ERS, Eurostat, EEA); creator = a Verified Creator's own upload (all rights reserved); community = everything else (uploads, bot saves, imports, AI images) - MemeStack grants no licence to it.",
      +      "enum": [
      +        "publisher",
      +        "creator",
      +        "community"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / match_quality
      Added value: +{
      +  "description": "Present when the API labelled the results: strong = the search has at least one strong match (they lead the first page); closest_only = no strong match anywhere, every result is the nearest guess - do not present it as the answer; none = nothing on this page and no strong match.",
      +  "enum": [
      +    "strong",
      +    "closest_only",
      +    "none"
      +  ],
      +  "type": "string"
      +}
  4. Changed6 schema fields changed
    • changedOutput schema / properties / images / items / properties / chart / properties / citation_long / description
      Previous value: -"Full academic citation for the upstream dataset."New value: +"Full academic citation for the upstream dataset. Null for an extracted row."
    • changedOutput schema / properties / images / items / properties / chart / properties / citation_short / description
      Previous value: -"Short attribution line for the upstream dataset."New value: +"Short attribution line for the upstream dataset, or the source line as printed on the image when provenance is \"extracted\"."
    • changedOutput schema / properties / images / items / properties / chart / properties / source / description
      Previous value: -"Upstream source key: \"owid\", \"usda_ers\", \"eurostat\" or \"eea\"."New value: +"Source key: \"owid\", \"usda_ers\", \"eurostat\", \"eea\", or \"extracted\" (read from the image)."
    • changedOutput schema / properties / images / items / properties / chart / properties / source_url / description
      Previous value: -"Canonical URL for the chart at its upstream source."New value: +"Canonical URL for the chart at its upstream source. Null for an extracted row."
    • changedOutput schema / properties / images / items / properties / chart / properties / title / description
      Previous value: -"Chart title as published upstream."New value: +"Chart title as published upstream, or as printed on the image when provenance is \"extracted\"."
    • changedOutput schema / properties / images / items / properties / chart / properties / unit / description
      Previous value: -"Measurement unit, when the underlying indicators agree on one."New value: +"Measurement unit, when the underlying indicators agree on one. For an extracted row, the unit as printed on the image."
  5. Changed3 schema fields changed
    • addedOutput schema / properties / has_more
      Added value: +{
      +  "description": "Present when the API labelled the results: true when more results follow this page.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / images / items / properties / match
      Added value: +{
      +  "description": "Honest search: strong = a real answer, closest = the nearest miss. Present only when the API labelled the result.",
      +  "enum": [
      +    "strong",
      +    "closest"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Present when the first page has no strong result: says so and that the results are the closest available.",
      +  "type": "string"
      +}
  6. Changed7 schema fields changed
    • addedOutput schema / properties / images / items / properties / chart / properties / published_at
      Added value: +{
      +  "description": "The publisher's release date for this edition (YYYY-MM-DD).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / images / items / properties / chart / properties / series
      Added value: +{
      +  "description": "Every visible edition of this chart, newest first (get_image only).",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "id": {
      +        "description": "Image id of the edition.",
      +        "type": "string"
      +      },
      +      "published_at": {
      +        "description": "Release date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "rendered_period": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "end": {
      +            "description": "Last year shown.",
      +            "type": "number"
      +          },
      +          "start": {
      +            "description": "First year shown.",
      +            "type": "number"
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / images / items / properties / chart / properties / series_key
      Added value: +{
      +  "description": "Editions of one chart share this key; null when the chart is not part of a series.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / images / items / properties / chart / properties / source / description
      Previous value: -"Upstream source key, e.g. \"owid\"."New value: +"Upstream source key: \"owid\", \"usda_ers\", \"eurostat\" or \"eea\"."
    • changedOutput schema / properties / images / items / properties / citation / properties / attribution_required / description
      Previous value: -"True only when the license requires attribution (OWID)."New value: +"True when the licence or the rights holder requires attribution: Our World in Data, the chart publishers (USDA ERS, Eurostat, EEA), and a verified creator's own work."
    • changedOutput schema / properties / images / items / properties / citation / properties / source_external_url / description
      Previous value: -"External source URL (set only for OWID-sourced images)."New value: +"External source URL — the Our World in Data chart, the chart publisher's page, or the X post; null otherwise."
    • changedOutput schema / properties / images / items / properties / citation / properties / source_origin / description
      Previous value: -"Origin: 'owid' | 'imgflip' | '4chan' | 'telegram' | 'generated' | 'unknown' | null."New value: +"Origin: 'owid' | 'usda_ers' | 'eurostat' | 'eea' | 'imgflip' | '4chan' | 'telegram' | 'generated' | 'mcp' | 'x' | 'unknown' | null (null = a direct upload)."
  7. Changed2 schema fields changed
    • addedInput schema / properties / include_controversial
      Added value: +{
      +  "description": "Include images classified controversial (excluded by default).",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / images / items / properties / controversial
      Added value: +{
      +  "description": "True when MemeStack classifies the image as controversial (likely to offend or divide a general audience). The list tools exclude such images unless include_controversial is true; by-id tools always answer and carry this flag. Absent when the API answer predates the flag.",
      +  "type": "boolean"
      +}
  8. Changed2 schema fields changed
    • addedOutput schema / properties / images / items / properties / chart
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Structured source metadata for a chart, map or infographic, present only when MemeStack holds a record for this image (an image_chart_meta row). Absent or null means no stored metadata - never a signal that the image is not a chart.",
      +  "properties": {
      +    "citation_long": {
      +      "description": "Full academic citation for the upstream dataset.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "citation_short": {
      +      "description": "Short attribution line for the upstream dataset.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "dataset_timespan": {
      +      "additionalProperties": true,
      +      "description": "The underlying dataset's own history - display-only context, NOT the period this chart shows (see rendered_period). Never usable as a date filter.",
      +      "properties": {
      +        "end": {
      +          "description": "Latest year in the dataset, when known.",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "raw": {
      +          "description": "The dataset timespan as published upstream, verbatim.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "start": {
      +          "description": "Earliest year in the dataset, when known.",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "provenance": {
      +      "description": "How this metadata was captured: read from the source's own structured feed ('authoritative'), or read off the chart image itself ('extracted').",
      +      "enum": [
      +        "authoritative",
      +        "extracted"
      +      ],
      +      "type": "string"
      +    },
      +    "regions": {
      +      "description": "Entities plotted, exactly as the chart names them (e.g. \"World\", \"Germany\").",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "rendered_period": {
      +      "additionalProperties": true,
      +      "description": "The period the chart PROVABLY displays, grounded in its own OCR text - null when no period could be proven. Never a guess, and never the wider history in dataset_timespan.",
      +      "properties": {
      +        "end": {
      +          "description": "Last year the chart displays.",
      +          "type": "number"
      +        },
      +        "evidence": {
      +          "description": "OCR substring the period was grounded on.",
      +          "type": "string"
      +        },
      +        "start": {
      +          "description": "First year the chart displays.",
      +          "type": "number"
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "description": "Upstream source key, e.g. \"owid\".",
      +      "type": "string"
      +    },
      +    "source_url": {
      +      "description": "Canonical URL for the chart at its upstream source.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "superseded": {
      +      "description": "True when the upstream source has published data newer than this snapshot.",
      +      "type": "boolean"
      +    },
      +    "title": {
      +      "description": "Chart title as published upstream.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "unit": {
      +      "description": "Measurement unit, when the underlying indicators agree on one.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / images / items / properties / citation / properties / academic_citation
      Added value: +{
      +  "description": "Full upstream academic citation, present only when the image has stored chart metadata with one.",
      +  "type": "string"
      +}
  9. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "citations_combined": {
      +      "additionalProperties": false,
      +      "description": "Combined attribution for all images in this response, in three formats.",
      +      "properties": {
      +        "html": {
      +          "description": "Numbered attribution list as HTML.",
      +          "type": "string"
      +        },
      +        "markdown": {
      +          "description": "Numbered attribution list as Markdown.",
      +          "type": "string"
      +        },
      +        "plain": {
      +          "description": "Numbered attribution list as plain text.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "markdown",
      +        "html",
      +        "plain"
      +      ],
      +      "type": "object"
      +    },
      +    "images": {
      +      "description": "Images whose OCR text matched.",
      +      "items": {
      +        "additionalProperties": true,
      +        "description": "A gallery image (lean list fields) with attribution.",
      +        "properties": {
      +          "canonical_url": {
      +            "description": "Full-resolution image URL.",
      +            "type": "string"
      +          },
      +          "caption": {
      +            "description": "AI-generated caption.",
      +            "type": "string"
      +          },
      +          "citation": {
      +            "additionalProperties": true,
      +            "description": "Ready-to-paste attribution for this image in three formats, plus source metadata.",
      +            "properties": {
      +              "attribution_recommended": {
      +                "description": "Always true — attribution is recommended.",
      +                "type": "boolean"
      +              },
      +              "attribution_required": {
      +                "description": "True only when the license requires attribution (OWID).",
      +                "type": "boolean"
      +              },
      +              "canonical_url": {
      +                "description": "Full-resolution image URL.",
      +                "type": "string"
      +              },
      +              "html": {
      +                "description": "Attribution as HTML.",
      +                "type": "string"
      +              },
      +              "markdown": {
      +                "description": "Attribution as Markdown.",
      +                "type": "string"
      +              },
      +              "page_url": {
      +                "description": "Canonical MemeStack gallery page for the image.",
      +                "type": "string"
      +              },
      +              "plain": {
      +                "description": "Attribution as plain text.",
      +                "type": "string"
      +              },
      +              "site": {
      +                "description": "Always \"MemeStack\".",
      +                "type": "string"
      +              },
      +              "site_url": {
      +                "description": "The MemeStack site URL.",
      +                "type": "string"
      +              },
      +              "source_external_url": {
      +                "description": "External source URL (set only for OWID-sourced images).",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "source_origin": {
      +                "description": "Origin: 'owid' | 'imgflip' | '4chan' | 'telegram' | 'generated' | 'unknown' | null.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "thumbnail_url": {
      +                "description": "Thumbnail image URL.",
      +                "type": "string"
      +              },
      +              "uploader_display_name": {
      +                "description": "Uploader name, or null when absent/withheld.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "site",
      +              "page_url",
      +              "markdown",
      +              "html",
      +              "plain"
      +            ],
      +            "type": "object"
      +          },
      +          "created_at": {
      +            "description": "ISO 8601 creation timestamp.",
      +            "type": "string"
      +          },
      +          "free_tags": {
      +            "description": "Free-form tag slugs.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "height": {
      +            "description": "Original height in pixels.",
      +            "type": "number"
      +          },
      +          "id": {
      +            "description": "Image UUID.",
      +            "type": "string"
      +          },
      +          "like_count": {
      +            "description": "Number of likes.",
      +            "type": "number"
      +          },
      +          "meme_template_name": {
      +            "description": "Recognised meme template, if any.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "page_url": {
      +            "description": "MemeStack gallery page URL.",
      +            "type": "string"
      +          },
      +          "save_count": {
      +            "description": "Number of saves.",
      +            "type": "number"
      +          },
      +          "tags": {
      +            "description": "Topic tag slugs.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "thumbnail_url": {
      +            "description": "Thumbnail image URL.",
      +            "type": "string"
      +          },
      +          "uploader_display_name": {
      +            "description": "Uploader name, or null.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "width": {
      +            "description": "Original width in pixels.",
      +            "type": "number"
      +          },
      +          "zap_count": {
      +            "description": "Number of Lightning zaps.",
      +            "type": "number"
      +          },
      +          "zap_total_sats": {
      +            "description": "Total sats zapped.",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "thumbnail_url",
      +          "canonical_url",
      +          "page_url",
      +          "citation"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "description": "Total number of matching images.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "images",
      +    "total"
      +  ],
      +  "type": "object"
      +}
  10. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and open-world behavior, and the description adds real context beyond them: strong matches only, a ready citation per result, and the default exclusion of controversial images via include_controversial. It does not discuss ranking or what 'strong match' means quantitatively.

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?

Three dense sentences with the core identity front-loaded, then match scope, then the controversial caveat. No filler and no repetition.

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

Completeness5/5

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

With an output schema present, return values need not be detailed, yet the description still notes each result carries a ready citation. Match semantics, scope limits and the controversial toggle are all covered, so an agent can call it correctly.

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 description coverage is 100%, so the baseline is 3. The description's mention of include_controversial merely restates the schema's own wording about the default exclusion, and limit/offset/query get no added 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?

States a specific verb and resource (find images by exact OCR text) and immediately scopes it apart from siblings: it matches only text_in_image, not captions or tags, which separates it from search_images and find_meme_for_text. The concrete examples (quote, caption, sign, watermark) make the target unambiguous.

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?

The 'matches only the text in the image ... not captions or tags' clause effectively tells the agent when this tool is the wrong choice, routing caption/tag searches elsewhere. It does not name the alternative sibling explicitly, so it falls short of a full when/when-not statement.

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.