Skip to main content
Glama

get_velocity

Get sales-velocity analytics from one of two angles — pass angle to pick which, report to pick the report within it.

• angle:"inventory" — the INVENTORY-management angle: how fast stock is moving and what to reorder. Reports: summary (sell-through rate, turnover, health status), by_product (products sorted by sales velocity), restock (reorder quantity recommendations from velocity, lead time, and safety stock — pass leadTimeDays/safetyStockDays; the reason to pick this angle). Use when the question is "what should I reorder and how much?". • angle:"product" — the PRODUCT angle: how individual products are selling over time. Reports: summary (totalUnitsSold, revenue, productsTracked, inventoryHealth counts), by_product (per-product velocity, stock, reorder urgency), trend (daily time series for one product — requires productId), stagnant (active products with zero or near-zero sales — dead stock/zombie listings; pass maxOrders to widen from zero-sales to near-zero). Use for a single product's trend or stagnant/dead-stock questions.

Both angles share report:"summary"/"by_product" (different content per angle) and the sortBy/filter params on by_product. days defaults to 30 in both angles (note: angle:"product", report:"summary" ignores days entirely — it's always a fixed trailing-30-day aggregate).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoDays for velocity calculation (default: 30 in both angles). Ignored by angle:"product", report:"summary" — that report is always a fixed trailing-30-day aggregate.
angleYesWhich velocity angle to query. See the tool description for the report list and defaults per angle.
limitNoFor by_product: number of products (default: 20).
filterNoFor by_product: filter.
reportYesReport type — valid values depend on `angle` (see tool description): inventory has summary/by_product/restock; product has summary/by_product/trend/stagnant.
sortByNoFor by_product: sort field.
_offsetNoPagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page.
maxOrdersNoFor angle:"product", report:"stagnant": max orders to count as stagnant (default: 0 = zero sales only, use 1-2 for near-zero).
productIdNoFor angle:"product", report:"trend": Shopify product ID (required).
variantIdNoFor angle:"product", report:"trend": Shopify variant ID (optional).
leadTimeDaysNoFor angle:"inventory", report:"restock": lead time in days (default: 14).
safetyStockDaysNoFor angle:"inventory", report:"restock": safety buffer days (default: 7).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose a key behavioral quirk: angle:'product', report:'summary' ignores `days` and is always a fixed trailing-30-day aggregate. It also discloses which params apply to which report. It stops short of describing output shape or pagination behavior in prose, but the schema covers offset paging.

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?

Front-loaded with the two-angle model and organized as a bulleted list matching the two enum values, which is scannable. It is fairly long, but every sentence carries routing or param-scoping information; slight density could be trimmed but nothing is filler.

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?

For a 12-parameter tool with two modes and no output schema, the description maps angle→reports→params comprehensively, including defaults and the one report that ignores `days`. An agent can select the correct angle/report combination and supply required params without opening the schema.

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 description coverage is already 100%, so baseline is 3. The description adds genuine meaning beyond the schema by grouping parameters per report (leadTimeDays/safetyStockDays only for restock, productId required for trend, maxOrders for stagnant) and stating the days default and its exception. This functional mapping exceeds what the schema alone conveys.

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 (Get) and resource (sales-velocity analytics), then enumerates the two angles and their report sets. This distinguishes it from siblings like get_inventory, get_top_products, and get_product_analytics by routing explicitly to the velocity use-case.

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?

Provides explicit when-to-use per angle with natural-language question frames: 'what should I reorder and how much?' vs 'a single product's trend or stagnant/dead-stock questions.' It also names the report that is 'the reason to pick this angle,' giving a clear decision path between the two modes.

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