Skip to main content
Glama
pepabo

Color Me Shop

Official

getStocks

Read-onlyIdempotent

Retrieve inventory details for products with stock management enabled. Filter by product name, model number, ID, category, display status, or stock count threshold. Supports pagination with limit and offset.

Instructions

在庫管理が有効な商品の在庫情報を一覧取得します。条件なしで呼ぶと該当商品の在庫を返し、商品名・型番・商品 ID・カテゴリ・掲載設定で絞り込み可能。stocks パラメータで指定数以下の在庫のもののみ抽出することもできます(他の絞り込みパラメータの詳細はスキーマを参照)。limit(最大 50、デフォルト 10)/ offset でページング。個別商品の在庫更新は updateProduct の product.stocks、オプション別在庫の確認は getProductVariants。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNo商品IDで検索。カンマ区切りにすることで複数検索が可能
category_id_bigNo大カテゴリーIDで検索
category_id_smallNo小カテゴリーIDで検索
model_numberNo型番で部分一致検索
nameNo商品名で部分一致検索
display_stateNo掲載設定で検索 - `showing`: 掲載状態 - `hidden`: 非掲載状態 - `showing_for_members`: 会員にのみ掲載 - `sale_for_members`: 掲載状態だが購入は会員のみ可能
stocksNo在庫管理している商品のうち、在庫数が指定した数値以下の商品を検索。オプションごとに在庫管理している商品は、オプションごとの在庫数で検索される
recent_zero_stocksNo`true` の場合、過去1週間以内にオプションが更新された商品から検索
fieldsNoレスポンスJSONのキーをカンマ区切りで指定
limitNoレスポンスの件数を指定。指定がない場合は10。最大50
offsetNo指定した数値+1件目以降のデータを返す
Behavior4/5

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

Annotations already indicate read-only, non-destructive, idempotent behavior. Description adds pagination details (limit/offset) and filtering logic, but does not contradict annotations.

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?

Three concise sentences front-loading purpose, then filtering, then pagination and alternatives. No redundancy.

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 read-only list tool with well-documented schema, description covers all necessary aspects: purpose, filtering, pagination, and links to related tools.

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%. Description adds context for stocks, limit, offset (e.g., default 10, max 50) and references schema for other params, providing practical usage hints.

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?

Description clearly states listing stock info for inventory-managed products, specifies filterable fields, and distinguishes from sibling tools (updateProduct, getProductVariants).

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?

Explicitly explains when to use (list stocks with inventory management) and when not to (use updateProduct for updates, getProductVariants for options), and describes filtering conditions.

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/pepabo/colormeshop-mcp'

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