Skip to main content
Glama

Search Library

search_my_library
Read-only

Search your library. It understands meaning as well as words: a picture is found when its prompt holds your words, and also when the picture itself fits what you describe, even if those words were never written, so describe what you are looking for in plain words. Each result says how it was found (foundBy: words, meaning, or both). Word matches are listed first, then pictures found by meaning alone. When more match than are listed, the answer says hasMore and nextOffset, the offset the next ones start at. A note on the answer says what the list leaves out (search by meaning was not available, so only word matches are listed, or it could not look at every picture): say so. Metadata only (id, prompt, date). Optional folderId scopes to one folder. Only your own assets are returned. This does NOT display images; to show/display results to the user, pass their ids to show_media.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 20. Max 80 in one answer; use offset for more.
queryYesWhat to look for, in plain words: words from a prompt, or what the picture shows.
offsetNoSkip this many results: the nextOffset from the answer before, for the next ones.
folderIdNoOne folder only: its id from list_my_folders, or the folder's name as the person said it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Default 20."New value: +"Default 20. Max 80 in one answer; use offset for more."
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many results: the nextOffset from the answer before, for the next ones.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / query / description
      Added value: +"What to look for, in plain words: words from a prompt, or what the picture shows."
  2. Changed1 schema field changed
    • addedInput schema / properties / folderId / description
      Added value: +"One folder only: its id from list_my_folders, or the folder's name as the person said it."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the readOnly/openWorld/non-destructive annotations: it discloses result ordering (word matches first, then meaning-only), the foundBy field's three values, pagination via hasMore/nextOffset, and a degraded mode where semantic search is unavailable. It also states the hard scope constraint ('Only your own assets are returned') and that responses are metadata only (id, prompt, date).

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?

Front-loaded with purpose and matching semantics before pagination and the display alternative; nearly every sentence carries distinct information. It is dense and long-ish for a search tool, with a couple of parenthetical asides that could be tightened, but nothing is redundant.

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 no output schema, the description fully compensates by describing the returned fields (id, prompt, date, foundBy, hasMore, nextOffset, notes), ordering, and pagination contract. For a 4-parameter read-only search tool, an agent has everything needed to call it and interpret the response.

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 schema already carries the baseline; the description adds useful linkage by defining offset as 'the nextOffset from the answer before' and noting folderId is optional and scopes to one folder. It does not add much on query/limit beyond the schema, keeping it just above baseline.

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?

Opens with a specific verb+resource ('Search your library') and immediately explains the two matching modes (words vs. meaning), so an agent knows this is a hybrid/semantic search rather than a plain listing. It also explicitly disqualifies itself from a sibling's role: 'This does NOT display images; to show/display results to the user, pass their ids to show_media.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives direct when-to-use instructions ('describe what you are looking for in plain words') and an explicit when-not plus alternative for the display case (use show_media with the returned ids). It also tells the agent to relay degradation notes to the user, covering the edge case where results are incomplete.

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