Skip to main content
Glama

Search iHerb

iherb_search
Read-onlyIdempotent

Search iHerb for up to 10 product queries in one call and get lean candidates with prices, ratings, and stock status. Filters by category, price, and sort order; never places orders.

Instructions

Search iHerb for one or more queries in a single call.

Returns lean product candidates (id, title, brand, price, original_price, price_per_unit, rating, review_count, in_stock, image, canonical url). Never places orders or modifies a cart.

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": {
      "queries": "<queries>"
    },
    "name": "iherb_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort order: relevance, best-selling, rating, price-asc, price-desc, or newest.relevance
queriesYes1 to 10 search queries (e.g. ['vitamin d3 5000 iu', 'magnesium glycinate']).
categoryNoOptional iHerb numeric category id filter (cids parameter).
per_queryNoMaximum candidate products returned per query (default 8).
max_price_centsNoOptional maximum price filter in integer cents of the configured currency.

Output Schema

NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description restates that boundary ('Never places orders or modifies a cart') and signals results are 'lean' partial candidates, which is a genuinely useful hint that detail lookups may be needed — but it stops short of explaining pagination, result caps per query, or whether anything is cached.

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?

Two short, front-loaded paragraphs with no filler: purpose first, then return shape and safety boundary. The enumerated return-field list is slightly redundant given a full output schema exists, which keeps it from a 5.

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?

With an output schema present, the description need not explain return values, and it still summarizes what comes back. Combined with full schema coverage and rich annotations, an agent has enough to call the tool correctly; only sibling routing guidance is absent.

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%, including enum values for sort and bounds for per_query and queries, so the schema carries all parameter meaning. The description adds nothing about parameter behavior beyond the batch sizing already given as maxItems: 10, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Search iHerb') and adds a distinguishing capability: multiple queries in one call. It does not differentiate itself from siblings such as iherb_top_sellers or iherb_category, so an agent must infer the boundary, but the core action is unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied — the agent can infer this is the tool for keyword product search, and the mention of batching 'one or more queries in a single call' hints at an efficiency rationale. There is no explicit when-to-use, when-not-to-use, or named alternative for structured browsing versus free-text search.

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