Skip to main content
Glama

ui_builder_search_components

Read-only

Find catalog components by id, display name, Compose symbol, role or trait, e.g. TextField, text field, OutlinedTextField, Button, Card. Case, spaces, hyphens, underscores, slashes and camelCase are ignored, and the components the query names come first: an exact name, then a prefix, then a name containing it, then role and traits. Returns the same summary as ui_builder_list_catalogs (id, role, traits, slots, properties, and the catalog pin) for only the matches, so you don't pay for the whole catalog.

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

Input Schema

NameRequiredDescriptionDefault
queryYesText to look for in a component's id, display name, Compose symbol, role or traits.
tokenNoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
catalogNoOnly this catalog system id, e.g. m3-catalog. Omit to search every catalog; an id this server does not serve is an error.
agentNameNoOptional agent/client name shown to design viewers; self-reported.
agentModelNoOptional current model name shown to design viewers; self-reported. Omit when unknown.
catalogSystemIdNoThe same as `catalog`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed3 schema fields changed
    • changedInput schema / properties / catalog / description
      Previous value: -"Only this catalog system id. Omit to search every catalog."New value: +"Only this catalog system id, e.g. m3-catalog. Omit to search every catalog; an id this server does not serve is an error."
    • addedInput schema / properties / catalogSystemId
      Added value: +{
      +  "description": "The same as `catalog`.",
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Text to look for in a component's id, role or traits."New value: +"Text to look for in a component's id, display name, Compose symbol, role or traits."
  4. Changed2 schema fields changed
    • addedInput schema / properties / agentModel
      Added value: +{
      +  "description": "Optional current model name shown to design viewers; self-reported. Omit when unknown.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
    • addedInput schema / properties / agentName
      Added value: +{
      +  "description": "Optional agent/client name shown to design viewers; self-reported.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  6. First observed

TDQS

A4.4/5.0
Behavior4/5

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

readOnlyHint already declares the safety profile, so the description earns credit for going further: it discloses normalization rules (case, spaces, hyphens, underscores, slashes, camelCase ignored), result ranking (exact, then prefix, then contains, then role/traits), and the exact payload returned. It stops short of describing behavior for zero matches or how catalog scoping interacts with ranking, which an agent would still have to discover.

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 purpose and concrete examples, then behavior, then the cost rationale — a sensible ordering with little waste. Slightly dense in the ranking clause, but every element earns its place; only minor tightening is possible.

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?

An output schema exists and the description still clarifies that the return matches ui_builder_list_catalogs' summary shape, which is genuinely useful cross-tool context. With matching semantics, ranking, scope, and return shape all covered, nothing essential to correct invocation 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 coverage is 100%, so the schema already documents all six parameters and 3 is the baseline. The description adds real value on top by giving concrete query examples spanning name styles (`TextField`, `text field`, `OutlinedTextField`, `Button`, `Card`) and by stating the normalization rules that determine what the `query` parameter will actually match, which the schema does not say.

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 catalog components") and enumerates exactly which fields are searched: id, display name, Compose symbol, role, trait. It also distinguishes itself from the sibling bulk operation by noting it returns "the same summary as ui_builder_list_catalogs ... for only the matches," so an agent can separate the two without opening either 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?

Usage context is clear: search when you know the component you want, rather than paying for the whole catalog via the list tool. The alternative is named implicitly and the cost tradeoff is stated, but there is no explicit "use this when / do not use this when" framing and no guidance on iterative broadening when a query returns nothing.

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.