Skip to main content
Glama

Browse iHerb category

iherb_category
Read-onlyIdempotent

Browse iHerb product categories by slug, then control pagination, sorting, and result limits to retrieve products from a specific category.

Instructions

Browse an iHerb category by slug (/c/<category>).

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": {
      "category": "<category>"
    },
    "name": "iherb_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number.
sortNoSort order: relevance, best-selling, rating, price-asc, price-desc, or newest.best-selling
limitNoMaximum products to return.
categoryYesLowercase category slug from iHerb URLs (e.g. 'vitamin-c', 'omega-3-fish-oil').

Output Schema

NameRequiredDescriptionDefault
pageYes
categoryYes
productsYes
total_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is fully covered structurally. The description only adds the URL-path convention, which is a small but real piece of context; it says nothing about pagination bounds, rate limits, or empty-category behavior beyond what the schema declares.

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?

A single short sentence, front-loaded with the verb and resource, with zero filler. The parenthetical path template is the only extra information and it earns its place; the doubled backticks are a minor formatting artifact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the input schema fully specifies the four parameters. What is missing is routing guidance against the six sibling tools, which matters for a browse endpoint that overlaps with search and top-sellers results.

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% – all four parameters, including the enum for sort and the page/limit bounds, are documented in the schema itself. The description's slug hint ('/c/<category>') reinforces the category parameter but adds no syntax or format detail the schema doesn't already give. Baseline 3 is 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?

States a specific verb and resource ("Browse an iHerb category") and pins the input to a slug with the URL shape ``/c/<category>``, so the agent knows exactly what domain object is being fetched. It stops short of distinguishing this from siblings like iherb_search or iherb_top_sellers, which could also return product lists.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus iherb_search (keyword lookup) or iherb_top_sellers (ranked lists), and no preconditions such as needing a valid slug. The agent must infer the browse-vs-search distinction from the tool names alone.

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