Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Heuristic:21st dev Magic mcp One Brand Per Call

From Leeroopedia
Knowledge Sources
Domains UI_Components, API_Contract
Last Updated 2026-10-19 16:40 GMT

Overview

`search_logo` accepts exactly one brand name per call — batch multiple brands by calling once per brand, never by passing a list.

Description

The `search_logo` tool returns a single brand's logo as a ready-to-paste JSX/TSX component. Its contract is one brand per call; querying multiple brands in a single call is not supported server-side. This is a caller-side rule, not something the server enforces with a typed schema — an agent that packs several brands into one `query` string will get one (or none) back, not a set. The fix is mechanical: identify the brand first, then call once with that single name.

The legacy alias `logo_search` maps to the same tool and inherits the same one-brand contract.

Usage

Apply this heuristic whenever you call `search_logo` (or the legacy `logo_search`). It is especially relevant when the user asks for "the logos of Acme, Globex, and Initech" — do not concatenate them into one `query`; issue three separate calls.

The Insight (Rule of Thumb)

  • Action: Pass a single brand name as `query`. Do not batch.
  • Value: One brand per `search_logo` call; N brands → N calls.
  • Trade-off: More round-trips for multi-brand requests, but each call returns a clean JSX/TSX component instead of an ambiguous or empty result.
  • Compatibility: Applies to both the current name `search_logo` and the legacy alias `logo_search`.

Reasoning

The tool's return type is a single JSX/TSX logo component, not an array — there is no slot in the response for "brand 2". The server has no documented multi-brand mode; concatenating names in `query` produces unpredictable matches (fuzzy search may lock onto one of them or none). Calling once per brand is the only reliable path and matches the documented contract in `skills/21st-ui/SKILL.md` and `README.md`.

Code Evidence

The skill file states the contract — `skills/21st-ui/SKILL.md:43`:

`search_logo` returns brand logos as ready-to-paste JSX/TSX — one brand per call.

`README.md:59` records the same rule and the legacy alias:

| `logo_search` | `search_logo` (one query per call) |

The implementation page documents it as the headline contract — `implementations/21st_dev_Magic_mcp_search_logo.md:23`:

The contract is '''one brand per call''' — querying multiple brands in a single
call is not supported; call once per brand.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment