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