Skip to main content
Glama
googlarz

Vinted MCP and CLI Server

search_brands

Search Vinted's brand catalogue by keyword to find matching brands with IDs, item counts, and favourite counts. Use returned IDs to filter items by brand.

Instructions

Search Vinted's brand catalogue by keyword. Returns matching brands with their numeric IDs, slugs, total item counts, and favourite counts. Pass the returned IDs to search_items.brandIds, or use search_items.brand[] to pass names and have them resolved automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesBrand name keyword to search for, e.g. "Nike" or "Levi"
countryNoCountry site to query (brand catalogues are shared across countries)fr
limitNoMaximum number of brand results to return

Implementation Reference

  • Tool schema definition for search_brands, declaring input parameters (query, country, limit) in the MCP tool list.
    {
      name: 'search_brands',
      description: 'Search Vinted\'s brand catalogue by keyword. Returns matching brands with their numeric IDs, slugs, total item counts, and favourite counts. Pass the returned IDs to search_items.brandIds, or use search_items.brand[] to pass names and have them resolved automatically.',
      inputSchema: {
        type: 'object',
        properties: {
          query: { type: 'string', description: 'Brand name keyword to search for, e.g. "Nike" or "Levi"' },
          country: { type: 'string', enum: COUNTRIES, default: 'fr', description: 'Country site to query (brand catalogues are shared across countries)' },
          limit: { type: 'integer', default: 10, description: 'Maximum number of brand results to return' },
        },
        required: ['query'],
      },
    },
  • src/mcp.ts:219-219 (registration)
    Tool handler dispatch — routes 'search_brands' calls to the opBrands function.
    case 'search_brands': result = await opBrands(c, a as any); break;
  • Handler function opBrands — validates input, calls the endpoint, and limits results.
    export async function opBrands(
      client: VintedClient,
      input: { query: string; country?: Country; limit?: number },
    ): Promise<BrandHit[]> {
      if (!input.query?.trim()) throw new Error('query is required');
      const r = await searchBrands(client, input.query, input.country ?? 'fr');
      return r.slice(0, input.limit ?? 10);
    }
  • Actual API call to Vinted's /api/v2/brands endpoint, mapping response to BrandHit objects.
    export async function searchBrands(
      client: VintedClient,
      keyword: string,
      country: Country = 'fr',
    ): Promise<BrandHit[]> {
      if (!keyword.trim()) return [];
      const data = await client.apiGet<{ brands?: any[] }>(
        country,
        `/api/v2/brands?keyword=${encodeURIComponent(keyword)}`,
      );
      return (data.brands ?? []).map((b) => ({
        id: Number(b.id),
        title: String(b.title ?? ''),
        slug: String(b.slug ?? ''),
        itemCount: b.item_count,
        favouriteCount: b.favourite_count,
      }));
    }
  • Type definition for BrandHit — the return type of search_brands.
    export interface BrandHit {
      id: number;
      title: string;
      slug: string;
      itemCount?: number;
      favouriteCount?: number;
    }
Behavior3/5

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

No annotations exist, so the description bears full burden. It explains the output structure but does not disclose read-only nature, rate limits, or authentication requirements. As a search tool, it is likely safe, but the description could be more explicit about behavioral traits.

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?

Two concise sentences with front-loaded purpose. No wasted words. Effectively communicates the tool's action and additional integration guidance.

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?

Given no output schema, the description covers return fields adequately. Parameters are fully documented. Lacks behavioral disclosures (read-only, errors) but for a simple search tool, the completeness is sufficient.

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%, providing full parameter definitions. The description adds usage context (output integration) but does not enhance parameter semantics beyond the schema. Baseline score of 3 is appropriate.

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?

The description clearly states the tool searches Vinted's brand catalogue by keyword and lists the specific return fields (IDs, slugs, counts). It also differentiates by showing how to use the output with search_items, making it distinct from sibling tools.

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?

Provides explicit guidance on using the returned IDs with search_items.brandIds or brand[] for automatic resolution. This implies when to use the tool, but lacks explicit exclusion or comparison to alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/googlarz/vinted-mcp-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server