Skip to main content
Glama

Search Library

search_uwear_library
Read-onlyIdempotent

Use this when the user names Clothing, Models, Locations, art directions, files or past results in chat and you need their ids. Takes a short keyword query (2-5 words, or an exact name, SKU or id) and returns typed ids, names and thumbnails. It finds items; it does not recommend them. Changes nothing.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of hybrid matches to return
queryYesShort keyword query: 2 to 5 words, one concept per call, or an exact name/SKU/ID. Every word must match for lexical results, so long sentences can return no lexical matches. Describing a garment finds that garment, not pieces to pair with it.
item_typesNoOptional item types to search. Omit to search clothing, avatars/models, locations, art directions, uploaded files, and generation results.
refresh_indexNoDeprecated compatibility input. No index refresh is performed, even when true. Search uses the maintained index and current lexical metadata. Leave false.
exclude_clothing_item_idsNoExclude these garment IDs after ranking and before the result limit; other item types are unaffected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / exclude_clothing_item_ids
      Added value: +{
      +  "default": null,
      +  "description": "Exclude these garment IDs after ranking and before the result limit; other item types are unaffected.",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Hybrid retrieval query. Handles exact names/SKUs/IDs and natural-language visual or attribute intent."New value: +"Short keyword query: 2 to 5 words, one concept per call, or an exact name/SKU/ID. Every word must match for lexical results, so long sentences can return no lexical matches. Describing a garment finds that garment, not pieces to pair with it."
    • changedInput schema / properties / refresh_index / description
      Previous value: -"Force-refresh missing or stale index rows for currently visible library items before searching. Leave false for normal MCP use; search refreshes once automatically only when no accessible match is found."New value: +"Deprecated compatibility input. No index refresh is performed, even when true. Search uses the maintained index and current lexical metadata. Leave false."
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so 'Changes nothing' mostly restates them, though it usefully confirms the safety profile in prose. The description does add genuine behavioral context beyond annotations — hybrid matching, lexical all-words-must-match semantics, and that a described garment returns that garment rather than pairing suggestions — but says nothing about result ranking, scoring, or empty-result behavior.

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, front-loaded with the usage trigger, then inputs/returns, then the find-vs-recommend boundary. Every clause carries routing or behavioral information; no filler and no restatement of the tool name.

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 takes on the job of saying what comes back (typed ids, names, thumbnails) and does so. Combined with full schema coverage and the annotation safety profile, an agent has everything needed to decide to call it and to construct a valid call.

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%, and the schema itself richly documents query, limit, item_types, the deprecated refresh_index, and exclude_clothing_item_ids. The description's query guidance (word count, exact SKU/id, one concept per call) largely mirrors the schema's own query description rather than adding new meaning. Baseline 3 is appropriate when the schema carries the parameter detail.

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+resource+scope: it names the six searchable item categories (Clothing, Models, Locations, art directions, files, past results) and the payload (typed ids, names, thumbnails). It also carves out a boundary against a whole class of siblings — 'It finds items; it does not recommend them' — so an agent can separate it from list_* and proposal tools without opening any 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?

The trigger condition is explicit: use it when the user names an entity in chat and you need its ids, with a query-shape rule (2-5 words, one concept per call, or an exact name/SKU/id). The find-vs-recommend exclusion adds further routing signal. It stops short of naming the concrete alternative tools (list_garments, list_locations, mcp_list_files) for when a flat enumeration is wanted.

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