Skip to main content
Glama

Search library

search_library
Read-onlyIdempotent

Find creatives in the brand's library by what they are called and, where the workspace has semantic search, by what they show. Returns the same fields as list_creatives, and truncated when more match than limit. Use it to locate an existing creative before generating a new one, when the user asks for something they already have in Rawa. Not for an image the user pasted or attached in the chat: that is not in the library, so do not look for its filename here; call request_image_upload.

Input Schema

NameRequiredDescriptionDefault
limitNoHow many to return. Defaults to 20.
queryYesWhat to look for, e.g. 'ramadan lantern' or 'summer sale'.
brandIdNoA brand id from get_workspace or list_brands, or the brand's name. Omit it when the organization has a single brand.
assetTypesNo

Output Schema

NameRequiredDescriptionDefault
creativesYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / brandId / description
      Previous value: -"A brand id from get_workspace or list_brands. Omit it when the organization has a single brand."New value: +"A brand id from get_workspace or list_brands, or the brand's name. Omit it when the organization has a single brand."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real context: semantic search only exists in some workspaces, results mirror list_creatives' fields, and output is truncated when matches exceed limit. The one gap is that truncation is disclosed without saying how to retrieve the remainder beyond raising limit.

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 sentences, no filler: capability first, then the positive use case, then the exclusion and its alternative. Each sentence changes agent behavior, and the routing-critical constraint is stated plainly rather than buried.

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 an output schema present, return values needn't be detailed, and annotations cover safety; the description fills the remaining needs (capability variance, truncation, sibling routing). Only the undescribed assetTypes filter leaves a small hole for a four-parameter tool.

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 75%, so the schema already documents limit, query, and brandId. The description still adds meaning the schema lacks: that query matches both name/title and visual content, the latter only where semantic search is enabled — a distinction that changes how an agent should phrase queries. assetTypes remains undescribed in both places.

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 creatives in the brand's library) and names both search modes: filename/title matching and, conditionally, semantic visual matching. It also distinguishes itself from list_creatives (same return shape) and request_image_upload, so an agent can route correctly 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 Guidelines5/5

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

Gives an explicit when-to-use (locate an existing creative before generating a new one, when the user asks for something they already own) and an explicit when-not (an image pasted/attached in chat is not in the library — call request_image_upload instead). This is the strongest possible routing guidance.

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