ecommerce_createAProductVariantV1
Add a variant to a product along one or more option dimensions (e.g. Size, Color). Options missing from the product are created automatically; provide a value for every option the product already has. Prices are integers in the smallest currency unit and default to the store currency. Returns the...
This record as markdown: /tools/io-github-hostinger-hostinger-api-mcp/ecommerce-createaproductvariantv1.md
What ecommerce_createAProductVariantV1 does on Hostinger Api
AI agents use ecommerce_createAProductVariantV1 to create or update resources in Hostinger Api, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Hostinger Api environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
sku | string | — | The variant SKU. |
title | string | — | The variant title. Defaults to the option values joined with ' / ' (e.g. 'Red / L'). |
prices | array | — | Prices per currency. Amounts are integers in the smallest currency unit. A free item is amount: 0. |
options | array | Yes | Option name/value pairs that distinguish this variant, e.g. [{name: Size, value: M}]. Options missing from the product are created; provide a value for every op |
store_id | string | Yes | The ID of the store that owns the product. |
product_id | string | Yes | The ID of the product to add the variant to. |
manage_inventory | boolean | — | Whether stock is tracked for this variant. Defaults to false. |
inventory_quantity | integer | — | Units in stock. Defaults to 0. |
Parameters from the server's own tool schema.
Why ecommerce_createAProductVariantV1 is rated Medium
Creates new product variant data reversibly; affects store inventory and product catalog.
From the tool's definition Add a variant to a product; Returns the created variant.
Risk signalsHigh parameter count (13 properties) · Bulk/mass operation — affects multiple targets
Attacks that exploit this kind of access
The rule that runs ecommerce_createAProductVariantV1 safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Hostinger Api, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For ecommerce_createAProductVariantV1, this is the rule to start with:
ecommerce_createAProductVariantV1 stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Hostinger Api, apply this rule, and every ecommerce_createAProductVariantV1 call is checked against it from then on.
Questions about ecommerce_createAProductVariantV1
Add a variant to a product along one or more option dimensions (e.g. Size, Color). Options missing from the product are created automatically; provide a value for every option the product already has. Prices are integers in the smallest currency unit and default to the store currency. Returns the created variant. It is categorised as a Write tool in the Hostinger Api MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
ecommerce_createAProductVariantV1 accepts 8 parameters: sku, title, prices, options, store_id, product_id, manage_inventory, inventory_quantity. Required: options, store_id, product_id. The full parameter table on this page comes from the server's own tool schema.
Register the Hostinger Api MCP server in PolicyLayer and add a rule for ecommerce_createAProductVariantV1: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Hostinger Api. Nothing to install.
ecommerce_createAProductVariantV1 is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the ecommerce_createAProductVariantV1 rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for ecommerce_createAProductVariantV1. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
ecommerce_createAProductVariantV1 is provided by the Hostinger Api MCP server (hostinger-api-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Hostinger Api, and thousands of servers like it.
This server
Across the catalogue