Skip to main content
Glama
valljo888ai

SLAM Commerce MCP

by valljo888ai

slam_products_for_collection

Retrieve products from a Shopify collection with sales metrics including variant count, orders, units sold, and revenue. Sort and filter results to analyze collection performance.

Instructions

Returns all products in a collection, each enriched with variant count and sales metrics (order_count, units_sold, total_revenue) from the product_sales view. Products with no sales show zeros.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesThe collection ID (Shopify GID)
sort_byNoColumn to sort by: title, vendor, total_revenue, or units_soldtitle
sort_orderNoSort direction (default ASC)ASC
limitNoMax rows to return (1–100, default 25)
offsetNoNumber of rows to skip
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: it returns enriched data (variant count, sales metrics), handles products with no sales (shows zeros), and sources sales data from 'product_sales view'. However, it lacks details on permissions, rate limits, or error handling.

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?

The description is a single, well-structured sentence that efficiently conveys the tool's purpose, enrichment details, and edge case handling ('Products with no sales show zeros'). Every part adds value with no wasted words.

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?

For a read-only tool with 5 parameters and no output schema, the description is reasonably complete. It explains what data is returned and enrichment sources, but could benefit from mentioning pagination behavior (implied by limit/offset) or response format to fully compensate for the lack of output schema.

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%, so the schema fully documents all 5 parameters. The description does not add any parameter-specific information beyond what the schema provides, such as explaining how 'collection_id' relates to Shopify or clarifying metric calculations. Baseline 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 specific action ('Returns all products in a collection') and resource ('products'), enriched with specific metrics ('variant count and sales metrics'). It distinguishes from siblings like 'slam_products_list' by focusing on products within a specific collection with sales enrichment.

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?

The description implies usage for retrieving products in a collection with sales data, but does not explicitly state when to use this tool versus alternatives like 'slam_products_list' or 'slam_collections_for_product'. No exclusions or prerequisites are mentioned.

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/valljo888ai/mcp'

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