Tools Catalog / WooCommerce tools / wc_get_variation

wc_get_variation tool reference for StifLi Flex MCP

Read-only
Group Products and variationsCapability edit_products

gets one variation by `product_id` and `variation_id` with ownership validation.

Description

gets one variation by `product_id` and `variation_id` with ownership validation.

What it is for

  • Inspecting one variation quickly without listing all variations.
  • Verifying that a variation belongs to the expected variable product.

Example use case

single variation validation.

Sample prompt

Get variation ID 9901 for product ID 410 and confirm its parent, attributes, price, and stock status.

Sample response

{
  "tool": "wc_get_variation",
  "status": "ok",
  "items": []
}

What does wc_get_variation do?

gets one variation by `product_id` and `variation_id` with ownership validation.

Does wc_get_variation modify store data?

No. It is a read-only operation and does not modify commerce data or settings.

Which capability is commonly required?

It usually runs under controls compatible with edit_products and the active MCP profile.

How should wc_get_variation be used safely?

Limit scope with filters and pagination to reduce overexposure of data.