Skip to main content
Glama

AI search

ai_search
Read-only

AI-powered visual search for assets in a Playbook workspace. Understands what is depicted inside assets — colors, subjects, scenes, objects, and compositions. Use this when the user describes visual content: 'ocean waves in blue', 'product shots on white background', 'videos with people outdoors'. Works regardless of filename or tags. Prefer this over search_assets for any content-descriptive query. Scope it to a folder with collection_token (plus nested_assets for a parent folder) — unscoped it searches the whole workspace, which for a moodboard, pitch reel or client hand-off returns mostly assets from other projects. Also filters by uploader and by date range. To find what a PERSON uploaded, call list_members to resolve their name to a token, then pass that token as uploaded_by. Putting a person's name in query does NOT match the person who uploaded an asset — it searches the asset's own text and will return unrelated files.

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": "ai_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesNatural language search query
fieldsNoReturn ONLY these fields on each result. `token` is always included. Valid names: token, title, media_type, text_type, status, approved, approved_after, tags, permalink, display_url, stream_url, collection_token, size, is_group, comment_count, is_skeleton, uploaded_by, source_error, ai_generated, ai_agent_payload, created_at. `display_url` and `permalink` are ~400 characters each, so narrowing a large result set is most of the saving. An unknown name is refused, not ignored: there is no `updated_at` or `type` among them — `media_type` is the name for an asset's kind, and its other metadata comes from get_asset or get_assets.
date_toNoInclusive upper bound, ISO 8601 date or datetime
statusesNoRestrict results to assets carrying these status or custom field VALUES, e.g. ['Approved']. Case-insensitive, and it covers the built-in Status and every custom field, exactly as in search_assets. Several values match ANY of them — unlike search_assets there is no `and` mode here.
date_fromNoInclusive lower bound, ISO 8601 date or datetime (e.g. '2026-08-13')
parent_idNoSearch token returned as pagination.parent_id. Pass it alone to refine that search, or together with after_cursor to fetch its next page.
date_fieldNoWhich date the range applies to. 'original' is when the file itself was created (EXIF date where available); 'uploaded' is when it was added to Playbook. Defaults to 'original', EXCEPT when `uploaded_by` is set, where it defaults to 'uploaded' — so 'what did Max upload last week' means what you expect.
uploaded_byNoRestrict results to assets uploaded by these people. Pass member tokens from list_members. A name is accepted as a fallback and resolved server-side, but only when it matches exactly one member — otherwise the call fails and lists the candidates to choose from.
after_cursorNoOpaque cursor returned as pagination.after_cursor. Must be paired with parent_id from the same response.
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.
nested_assetsNoSearch the folder's entire nested subtree rather than only the assets sitting directly in it. Requires `collection_token`. Set it whenever the token might be a PARENT folder — without it a parent whose assets all live in subfolders returns nothing at all. Caveat: subtree matching reads a search-index field that refreshes when an asset is re-indexed, so it can briefly lag a folder being MOVED; list_assets with `nested_assets` reads the database and cannot.
get_ai_payloadNoInclude each result's `ai_agent_payload`. Default false, and the key is then ABSENT rather than null. This only RETURNS the payload — it is not part of what is searched.
collection_tokenNoLimit the search to a specific folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / collection_token / description
      Previous value: -"Limit the search to a specific board"New value: +"Limit the search to a specific folder"
    • changedInput schema / properties / nested_assets / description
      Previous value: -"Search the board's entire nested subtree rather than only the assets sitting directly in it. Requires `collection_token`. Set it whenever the token might be a PARENT board — without it a parent whose assets all live in sub-boards returns nothing at all. Caveat: subtree matching reads a search-index field that refreshes when an asset is re-indexed, so it can briefly lag a board being MOVED; list_assets with `nested_assets` reads the database and cannot."New value: +"Search the folder's entire nested subtree rather than only the assets sitting directly in it. Requires `collection_token`. Set it whenever the token might be a PARENT folder — without it a parent whose assets all live in subfolders returns nothing at all. Caveat: subtree matching reads a search-index field that refreshes when an asset is re-indexed, so it can briefly lag a folder being MOVED; list_assets with `nested_assets` reads the database and cannot."
  2. Changed1 schema field changed
    • changedInput schema / properties / fields / description
      Previous value: -"Return ONLY these fields on each result. `token` is always included. Valid names: token, title, media_type, text_type, status, approved, approved_after, tags, permalink, display_url, stream_url, collection_token, size, is_skeleton, uploaded_by, source_error, ai_generated, ai_agent_payload. `display_url` and `permalink` are ~400 characters each, so narrowing a large result set is most of the saving. An unknown name is refused, not ignored: there is no `created_at`, `updated_at` or `type` among them — `media_type` is the name for an asset's kind, and its other metadata comes from get_asset or get_assets."New value: +"Return ONLY these fields on each result. `token` is always included. Valid names: token, title, media_type, text_type, status, approved, approved_after, tags, permalink, display_url, stream_url, collection_token, size, is_group, comment_count, is_skeleton, uploaded_by, source_error, ai_generated, ai_agent_payload, created_at. `display_url` and `permalink` are ~400 characters each, so narrowing a large result set is most of the saving. An unknown name is refused, not ignored: there is no `updated_at` or `type` among them — `media_type` is the name for an asset's kind, and its other metadata comes from get_asset or get_assets."
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "query",
      -  "context"
      -]New value: +[
      +  "query"
      +]
  5. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description adds the operationally important context instead: unscoped searches hit the whole workspace and will surface other projects' assets, unknown field names are refused rather than ignored, get_ai_payload is absent rather than null when off, and nested_assets subtree matching can lag a folder move while list_assets cannot.

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?

Front-loads the capability and the sibling comparison, then moves through scoping, filtering, and common pitfalls in a sensible order. Sentences are dense but each carries a distinct, actionable fact; there is no filler or repetition of the title.

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?

For a 13-parameter search tool with no output schema, the description covers the decisions an agent must make: scope, person resolution, date semantics, payload opt-in, and pagination tokens. Nothing needed to call it correctly appears to be 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 coverage is 100%, so the baseline is 3; the description earns above that by explaining consequences the schema doesn't, such as date_field defaulting to 'uploaded' when uploaded_by is set, and by spelling out the uploaded_by/list_members resolution chain. It does not add syntax detail for every parameter (e.g. statuses, after_cursor pairing), so it falls short of exhaustive.

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 ('AI-powered visual search for assets') and immediately delimits what it understands ('colors, subjects, scenes, objects, and compositions'). It explicitly differentiates itself from the sibling search_assets by claiming precedence for content-descriptive queries.

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 concrete trigger examples ('ocean waves in blue', 'product shots on white background'), names the alternative it should beat ('Prefer this over search_assets for any content-descriptive query'), and prescribes a scoping workflow (use collection_token/nested_assets for folders; call list_members then pass uploaded_by). It also rules out a tempting misuse: putting a person's name in query.

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