check_variable_name
Pre-check whether a variable name is available under a product.
Pre-check whether a variable name is available under a product.
Read-only · Calls external systems. Safe to call: this tool does not modify data.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Variable name to check |
product_id | number | Yes | Product numeric id (from list_products id field, NOT the slug) |
Example arguments
Illustrative arguments an agent supplies when calling this tool:
{
"product_id": 0,
"name": "string"
}
Description
Returns {available: true|false} — call this before create_variable to surface name conflicts client-side instead of seeing an HTTP 400.
Related
What's next?
Last updated on