Skip to main content
Glama

Read the AI Shelf

read_ai_shelf
Read-onlyIdempotent

Read how AI answers recommend products for an ecommerce project, per product over a window of days. Without holder_id it returns the categories with product counts and one page of products, most visible first: for each, its holder_id, kind (owned, approved_competitor or ai_observed_competitor), visibility (share of the answers in scope that named it), appearances, win rate (share of its ordered appearances at rank 1), mean position, the median mentioned price beside the catalog price, and the merchant domains answers send shoppers to; executions is the number of answers in scope. source all adds competitors to your catalog; category_id narrows to one category; pass next_cursor for more. With holder_id it returns that product's page: the same metrics, its description and image, the products competing in the same answers, merchants, cited sources, fan-out queries, per-prompt metrics, the answers it appeared in (won, lost or unranked, with rank) and its open Actions. A null metric is unavailable (no answer in scope, or no ordered appearance), never zero. view overview is the shopping totals: shelf slots, share of shelf per brand, most and least visible products, merchants and fan-out. unavailable no_product_catalog means the project has no product catalog, which is normal for non-ecommerce brands; use read_visibility_overview for brand mentions instead. view catalog lists your products with their ids; competitor_candidates, buyer_prompts and discoveries (competitor searches still running) list the commerce setup with ids, each paged.

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": {
      "project_id": "<project_id>"
    },
    "name": "read_ai_shelf"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNoproducts is visibility per product (the default); overview is the totals; the others are setup.products
limitNoHow many rows to return; omit for the default page size.
cursorNoThe next_cursor a previous page returned.
sourceNocatalog (the default) lists your products; all adds approved and AI-observed competitors.
holder_idNoA holder_id from a previous product list, to read that product in full.
project_idYesA project id that list_projects returned.
category_idNoA category id from this tool, to list only its products.
window_daysNoDays of answers to read, one of 7, 30, 90; omit for 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / view
      Added value: +{
      +  "default": "products",
      +  "description": "products is visibility per product (the default); overview is the totals; the others are setup.",
      +  "enum": [
      +    "products",
      +    "overview",
      +    "catalog",
      +    "competitor_candidates",
      +    "buyer_prompts",
      +    "discoveries"
      +  ],
      +  "type": "string"
      +}
  2. Changed8 schema fields changed
    • addedInput schema / properties / category_id
      Added value: +{
      +  "description": "A category id from this tool, to list only its products.",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "The next_cursor a previous page returned.",
      +  "type": "string"
      +}
    • addedInput schema / properties / holder_id
      Added value: +{
      +  "description": "A holder_id from a previous product list, to read that product in full.",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "How many rows to return; omit for the default page size.",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "catalog (the default) lists your products; all adds approved and AI-observed competitors.",
      +  "enum": [
      +    "catalog",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / target_id
      Removed value: -{
      -  "description": "A category or product id from the catalog this tool returns without a target; pass together with target_kind.",
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedInput schema / properties / target_kind
      Removed value: -{
      -  "description": "Pass together with target_id: whether it names a category or a product.",
      -  "enum": [
      -    "category",
      -    "product"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / window_days
      Added value: +{
      +  "description": "Days of answers to read, one of 7, 30, 90; omit for 30.",
      +  "type": "integer"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / project_id / description
      Added value: +"A project id that list_projects returned."
    • addedInput schema / properties / target_id / description
      Added value: +"A category or product id from the catalog this tool returns without a target; pass together with target_kind."
    • addedInput schema / properties / target_kind / description
      Added value: +"Pass together with target_id: whether it names a category or a product."
  4. First observed

TDQS

A4.4/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=false, so the bar is lower, yet the description still adds real value: it enumerates the returned fields per view, explains pagination via next_cursor, and states that a null metric means unavailable rather than zero. What it does not cover is return shape/ordering guarantees beyond 'most visible first' or rate/size limits. Strong additions, but the behavioral surface (e.g. what limit defaults to, whether cursors expire) is only partially disclosed.

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?

Dense but almost entirely load-bearing: purpose, default behavior, per-view returns, null semantics, and alternatives all earn their place. The weakness is delivery — it is a wall of run-on clauses with colon-delimited field lists rather than separated mode sections, which makes it harder to scan for the holder_id versus default distinction. Front-loading of the core purpose is correct.

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

Completeness5/5

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

With eight parameters, six view modes, two response shapes, and no output schema, the description carries the full return-value burden and does so field by field (visibility, appearances, win rate, mean position, prices, merchant domains, executions). It also covers the failure mode and the sibling to fall back to, leaving nothing essential for a correct call missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and each parameter already carries an enum or format hint, so baseline is 3. The description goes beyond that by explaining consequences rather than types: source=all adds competitors to the catalog, category_id narrows the list, holder_id switches the entire response shape, and next_cursor continues paging. It does not clarify window_days' allowed values (the schema does) or interacting combinations, so it stops short of 5.

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?

States a specific verb and resource ('Read how AI answers recommend products... per product over a window of days') and immediately scopes the default mode versus holder_id mode. It also names the sibling it is not (read_visibility_overview for brand mentions), so an agent can distinguish this from read_visibility_results or read_visibility_sources without opening schemas.

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

Usage Guidelines5/5

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

Explicit routing logic: no holder_id gives the category/product list, holder_id gives one product's page, view overview gives totals, view catalog/competitor_candidates/buyer_prompts/discoveries are setup lists, and read_visibility_overview is the alternative when no product catalog exists. It even explains the no_product_catalog error condition, which is exactly the when-not guidance an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources