store-api
Search products, manage the shopping cart, and view orders on your grocery store. Load this skill before any shopping operation.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Search products, manage the shopping cart, and view orders on your grocery store. Load this skill before any shopping operation.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | store-api |
| description | Search products, manage the shopping cart, and view orders on your grocery store. Load this skill before any shopping operation. |
| metadata | {"adk_additional_tools":["store_graphql"]} |
Auth and cart ID are handled automatically by the store_graphql tool.
query($search: String!, $pageSize: Int!) {
products(search: $search, pageSize: $pageSize) {
total_count
items {
name
sku
url_key
stock_status
price_range {
maximum_price {
regular_price { value currency }
}
}
}
}
}
Variables: {"search": "latte intero", "pageSize": 5}
Use product names in the store's local language for search terms.
The $cartId variable is injected automatically.
query($cartId: String!) {
cart(cart_id: $cartId) {
total_quantity
items {
id
product { name sku }
quantity
prices {
price { value }
row_total { value }
}
}
prices {
grand_total { value currency }
}
}
}
Variables: {} (cartId is auto-injected)
mutation($cartId: String!, $sku: String!, $quantity: Float!) {
addSimpleProductsToCart(input: {
cart_id: $cartId
cart_items: [{ data: { sku: $sku, quantity: $quantity } }]
}) {
cart {
items { product { name sku } quantity }
prices { grand_total { value currency } }
}
}
}
Variables: {"sku": "115091", "quantity": 2}
Use the item id from the view cart query (not the product SKU).
mutation($cartId: String!, $itemId: Int!) {
removeItemFromCart(input: { cart_id: $cartId, cart_item_id: $itemId }) {
cart {
total_quantity
items { id product { name } quantity }
}
}
}
Variables: {"itemId": 977835}
View the cart first, then remove each item by ID.
query($pageSize: Int!) {
customer {
orders(pageSize: $pageSize) {
items {
order_number
order_date
status
total { grand_total { value currency } }
items {
product_name
product_sku
quantity_ordered
product_sale_price { value }
}
}
}
}
}
Variables: {"pageSize": 10}
query($sku: String!) {
products(filter: { sku: { eq: $sku } }) {
items {
name
sku
description { html }
stock_status
categories { name }
price_range {
maximum_price {
regular_price { value currency }
}
}
}
}
}
Variables: {"sku": "115091"}
price_range.maximum_price.regular_price.valuestock_status is IN_STOCK or OUT_OF_STOCKid (Int) is different from product sku (String)references/schema.md