tm_delete_variables_set
Delete a variables set; fails immediately if attached to profiles, listing them for detaching before retry.
Instructions
Delete a variables set. Fails fast (HTTP 400) if the set is still attached to any profile — the server does NOT auto-detach.
The server-side error message names the referencing profile(s)
so the caller can detach them first. The MCP layer preserves
that message verbatim in the typed ToolError so the AI
host can read it back to the user. Example error text::
Can't delete 'users-fixture' — still attached to profiles:
loadtest-api.example.com, smoke-test. Detach it from those
profiles first.To delete an attached set, the typical recovery is to call
:func:tm_update_profile on each referencing profile with an
updated variables-set attachment list that omits this set's
id, then retry the delete. (The variables-set attachment is
a property of the profile, not of the set — managed via the
profile's update path, not via a separate endpoint here.)
Returns {"variables_set_id": <id>, "deleted": True} on
success. A 400 / "Variables set not found" or
"still attached" surfaces as a typed :class:ToolError —
caller can react without parsing message text beyond the
error string itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables_set_id | Yes |