Skip to main content
Glama

Search library

search_library
Read-only

Search the user's library in Draftt (Guardados): the frames they saved from Explore and the images they or their team uploaded or imported, by what the images show, a HEX color, or likeness to another image (similar_to). The user sees the results as a visual grid. For when the user asks for their saves, uploads or references ("my red references", "what did I save for the car spot"). An item's url works in an edit_board image block or on slides. Only images are searched; the library holds no videos or PDFs here.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNosaved: frames saved from Explore (the catalog of commercials, music videos and films). uploads: files the user or their team uploaded or imported. Omit for both.
limitNoMax images (default 24)
queryNoWhat to look for, in the user's words ("red car at night", "logo sketches"), or a HEX color alone ("#d23c2c"). Matches what each image shows, its visible text and its keywords. Omit to browse the latest.
similar_toNoThe url of an image from a previous result: returns its lookalikes instead.
workspace_idNoSearch one workspace's library (ids from list_workspaces). Omitted: the user's own space and every team they are in.

Output Schema

NameRequiredDescriptionDefault
dataYes
resourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that: results render as a visual grid, an item's url is directly usable in an edit_board image block or on slides, and only images are indexed. No latency, pagination or failure behavior is disclosed, which keeps it off a 5.

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 the core action and scope, then usage triggers, then the cross-tool payoff, then the exclusion. Every sentence carries information, though the stacked parentheticals ('(Guardados)', '(similar_to)') make it denser than it needs to be.

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, the description needn't explain return values, and it still covers scope, mode selection, user-facing result format, and how to reuse returned urls. For a five-parameter read-only search tool, nothing an agent needs to call it correctly is missing.

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 100%, so the baseline is 3 and the schema already documents all five parameters including the saved/uploads enum. The description still adds meaning by framing the three search modes in prose — what the image shows, a HEX color, and likeness via similar_to — which helps an agent pick the right parameter rather than guess.

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?

Specific verb plus resource ('Search the user's library in Draftt (Guardados)') with the scope spelled out: frames saved from Explore and images uploaded/imported by the user or team. It also delimits what the library does not contain ('no videos or PDFs here'), so an agent can tell it apart from catalog or board asset tools without opening a schema.

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?

Explicit when-to-use guidance tied to user phrasing ('for when the user asks for their saves, uploads or references') with concrete example utterances. It also implies the boundary with the Explore catalog by describing saved frames as coming 'from Explore', but it never names a sibling to use for catalog search, so the exclusion is left to inference.

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