# search (/mcp/tools/search)

`search` · Read only

Find a product's categories, features and topics by name

Use this whenever the person names something ("the export feature", "Billing", "the SSO complaints") instead of reading the whole hierarchy. Matches category and feature titles and topic names containing the text, ignoring case; descriptions, insights and feedback text are not searched. Exact names first, then those starting with it, then the rest, ties by name. Each hit's `path` is where it sits, top down to its direct parent (categories, then a topic's feature); empty for a top-level category, an unplaced feature or a topic in New opportunity. Merged and emptied topics are never found. `meta.total` counts every hit. Send `meta.version` (the hierarchy's) or `meta.feedbackVersion` (the feedback's) as `expectedVersion` with a change planned from a hit. Read a category's branch with `get_hierarchy` and its `categoryId`, a topic with `get_topic`.

## Inputs

- Who can use it: Admins, and the product's Owners and Viewers
- Hints: Read only
- Runs: [`search`](/api/hierarchy/search)
- Inputs:
  - `productId` (string, required): From `read_product` with action `list` or `get_me`.
  - `query` (string, required): The text to find in names, 1 to 200 characters after surrounding spaces are removed.
  - `type` (string): Only this kind: `category`, `feature` or `topic`. Leave out to search all three. Allowed values: `category`, `feature`, `topic`.
  - `limit` (integer): How many hits to return, 1 to 40 (20 when left out).
  - `cursor` (string): The previous page's `meta.nextCursor`, with the same `query` and `type`; left out: the first page.
