Tool reference
Every tool TendMyStore gives your assistant: 99 in all. You never call these yourself. Your assistant picks them from what you ask; this page shows what each one is allowed to do.
How to read this page
Read only 38 tools only look. Applies at once 27 tools make a change straight away and return a change id you can undo. Asks first 34 tools first return a preview and a one-time confirm_token; nothing changes until you agree and your assistant repeats the same call with that token.
One store per call
Store tools work on one store of your account. With one store, they use it. With several, your assistant passes the store_id from list_stores, or gets choose_store and asks you which one. A store_id that is not in your account returns store_not_found. See tool examples for what success, an empty result and each kind of error look like.
Your stores
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
connect_store | Connect a store | Applies at once | store_url |
list_stores | List connected stores | Read only | nothing |
disconnect_store | Disconnect a store | Applies at once | store_id |
get_store_overview | Store overview | Read only | store_id |
connect_store adds a store to your account or reconnects one already in it: it gives you a link to your store's own approval screen. disconnect_store cannot be undone.
History and undo
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
list_changes | Change history | Read only | store_id |
undo_change | Undo a change | Asks first | store_id change_id |
Products and variations
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
find_products | Find products | Read only | store_id |
get_product | Product details | Read only | store_id product_id |
create_product | Create a product | Applies at once | store_id name |
update_product | Change a product | Applies at once | store_id product_id |
duplicate_product | Duplicate a product | Applies at once | store_id product_id |
delete_product | Delete a product | Asks first | store_id product_id |
bulk_update_products | Change many products | Asks first | store_id product_ids |
list_variations | List variations | Read only | store_id product_id |
create_variation | Add a variation | Applies at once | store_id product_id attributes |
update_variation | Change a variation | Applies at once | store_id product_id variation_id |
delete_variation | Delete a variation | Asks first | store_id product_id variation_id |
generate_variations | Generate all variations | Asks first | store_id product_id |
bulk_update_variations | Change many variations | Asks first | store_id product_id |
Categories, tags, brands and attributes
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
list_product_terms | List categories, tags, brands or shipping classes | Read only | store_id taxonomy |
create_product_term | Create a category, tag, brand or shipping class | Applies at once | store_id taxonomy name |
update_product_term | Change a category, tag, brand or shipping class | Applies at once | store_id taxonomy term_id |
delete_product_term | Delete a category, tag, brand or shipping class | Asks first | store_id taxonomy term_id |
list_attributes | List global attributes | Read only | store_id |
create_attribute | Create a global attribute | Applies at once | store_id name |
update_attribute | Change a global attribute | Applies at once | store_id attribute_id |
delete_attribute | Delete a global attribute | Asks first | store_id attribute_id |
list_attribute_values | List an attribute's values | Read only | store_id attribute_id |
create_attribute_value | Add an attribute value | Applies at once | store_id attribute_id name |
update_attribute_value | Change an attribute value | Applies at once | store_id attribute_id value_id |
delete_attribute_value | Delete an attribute value | Asks first | store_id attribute_id value_id |
Reviews
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
find_reviews | Find product reviews | Read only | store_id |
update_review | Moderate or edit a review | Applies at once | store_id review_id |
delete_review | Delete a review | Asks first | store_id review_id |
Stock
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
list_stock_alerts | Stock alerts | Read only | store_id |
update_stock | Change stock | Applies at once | store_id product_id |
bulk_update_stock | Change stock of many items | Asks first | store_id items |
Orders, notes and order emails
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
find_orders | Find orders | Read only | store_id |
list_order_statuses | Order statuses | Read only | store_id |
get_order | Order details | Read only | store_id order_id |
create_order | Create an order | Asks first | store_id line_items |
set_order_status | Change an order's status | Asks first | store_id order_id status |
update_order | Change an order | Applies at once | store_id order_id |
edit_order_items | Edit an order's items | Asks first | store_id order_id |
bulk_update_order_status | Change many orders' status | Asks first | store_id order_ids status |
delete_order | Delete an order | Asks first | store_id order_id |
list_order_notes | Order notes | Read only | store_id order_id |
add_order_note | Add a private order note | Applies at once | store_id order_id note |
add_customer_note | Send a note to the customer | Asks first | store_id order_id note |
delete_order_note | Delete an order note | Asks first | store_id order_id note_id |
list_order_email_templates | Order emails available | Read only | store_id order_id |
send_order_email | Email an order | Asks first | store_id order_id template |
Refunds, recorded
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
list_refunds | An order's refunds | Read only | store_id order_id |
record_refund | Record a refund | Asks first | store_id order_id amount |
prepare_gateway_refund | Prepare a payment refund | Read only | store_id order_id |
No tool moves money. record_refund records the refund in WooCommerce; prepare_gateway_refund gives you the link to your payment provider's own refund button.
Customers
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
find_customers | Find customers | Read only | store_id |
get_customer | Customer details | Read only | store_id customer_id |
get_customer_downloads | Customer downloads | Read only | store_id customer_id |
create_customer | Create a customer | Asks first | store_id email |
update_customer | Change a customer | Applies at once | store_id customer_id |
change_customer_email | Change a customer's email | Asks first | store_id customer_id email |
delete_customer | Delete a customer | Asks first | store_id customer_id |
Coupons
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
find_coupons | Find coupons | Read only | store_id |
get_coupon | Coupon details | Read only | store_id coupon_id |
create_coupon | Create a coupon | Applies at once | store_id code discount_type amount |
update_coupon | Change a coupon | Applies at once | store_id coupon_id |
delete_coupon | Delete a coupon | Asks first | store_id coupon_id |
Reports
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
get_sales_report | Sales report | Read only | store_id |
get_top_products | Best sellers | Read only | store_id |
get_report | Analytics report | Read only | store_id report |
get_performance_indicators | Key figures | Read only | store_id |
get_leaderboards | Leaderboards | Read only | store_id |
Shipping
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
list_shipping_zones | Shipping zones and methods | Read only | store_id |
create_shipping_zone | Create a shipping zone | Applies at once | store_id name |
update_shipping_zone | Change a shipping zone | Applies at once | store_id zone_id |
delete_shipping_zone | Delete a shipping zone | Asks first | store_id zone_id |
add_shipping_method | Add a shipping method | Applies at once | store_id zone_id method_id |
update_shipping_method | Change a shipping method | Applies at once | store_id zone_id instance_id |
delete_shipping_method | Remove a shipping method | Asks first | store_id zone_id instance_id |
Taxes
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
list_tax_rates | Tax rates and classes | Read only | store_id |
create_tax_rate | Create a tax rate | Applies at once | store_id rate |
update_tax_rate | Change a tax rate | Applies at once | store_id rate_id |
delete_tax_rate | Delete a tax rate | Asks first | store_id rate_id |
create_tax_class | Create a tax class | Applies at once | store_id name |
delete_tax_class | Delete a tax class | Asks first | store_id slug |
Settings, payment methods, webhooks and store health
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
get_settings | Store settings | Read only | store_id |
update_settings | Change store settings | Asks first | store_id group values |
list_payment_gateways | Payment methods | Read only | store_id |
update_payment_gateway | Change a payment method | Asks first | store_id gateway_id |
list_webhooks | Webhooks | Read only | store_id |
create_webhook | Create a webhook | Asks first | store_id name topic delivery_url |
update_webhook | Change a webhook | Asks first | store_id webhook_id |
delete_webhook | Delete a webhook | Asks first | store_id webhook_id |
get_system_status | Store health | Read only | store_id |
Files: CSV, invoices and packing slips
| Tool | What it does | How it behaves | Needs |
|---|---|---|---|
export_products | Export products (CSV) | Read only | store_id |
export_orders | Export orders (CSV) | Read only | store_id |
import_products | Import products (CSV) | Asks first | store_id |
create_invoice | Invoice for an order | Read only | store_id order_id |
create_packing_slip | Packing slip for an order | Read only | store_id order_id |