Manage saved environment variables
saved_env_varsList, create, update, enable, disable, or delete saved environment variables (one variable per record). Raw values are never returned. Names BotSpot sets for its own runs, such as LUMIBOT_SCHEDULED_*, cannot be saved here.
Set "action" to choose the operation. Only send the fields listed for that action.
action="list": List saved environment variables
No other fields required. Lists saved environment variable metadata for the authenticated user. Raw values are never returned. Each item should normally represent one saved variable. Use returned ids as start_deployment.envVarSetIds, update_deployment_revision.envVarSetIds or start_backtest.envVarSetIds. Returned metadata includes displayName, keyNames, status, and timestamps only; it never includes raw values or Vault secret ids. Reserved runtime names and prefixes are rejected: AWS_*, BOTSPOT_*, BOT_MANAGER_*, DEPLOY_*, MCP_*, AUTH0_*, DB_*, DATABASE_*, CUSTOM_JWT_*, AI_SERVICE_*, PYTHON*, LD_*, DYLD_*, PIP_*, UV_*, ECS_*, NODE_API_*, LUMIBOT_SCHEDULED_*, LUMIBOT_LIVE_ARTIFACTS_*, BACKTEST_CACHE_*, plus PATH, PYTHONPATH, NODE_ENV, PORT, HOME, LD_PRELOAD and other interpreter controls. LUMIBOT_SCHEDULED_* and LUMIBOT_LIVE_ARTIFACTS_* values are set only by BotSpot for its own scheduled runs; never tell a user to save them or pass them through envVarSetIds, because BotSpot rejects them and the runtime ignores them.
action="create": Create saved environment variable
Required fields: variableName, value. Stores one environment variable value in Vault and returns only metadata for the authenticated user. Use this for non-broker runtime secrets such as data-provider API keys. Do not store broker credentials here when a saved broker credential can represent the broker connection. Reserved runtime names and prefixes are rejected: AWS_*, BOTSPOT_*, BOT_MANAGER_*, DEPLOY_*, MCP_*, AUTH0_*, DB_*, DATABASE_*, CUSTOM_JWT_*, AI_SERVICE_*, PYTHON*, LD_*, DYLD_*, PIP_*, UV_*, ECS_*, NODE_API_*, LUMIBOT_SCHEDULED_*, LUMIBOT_LIVE_ARTIFACTS_*, BACKTEST_CACHE_*, plus PATH, PYTHONPATH, NODE_ENV, PORT, HOME, LD_PRELOAD and other interpreter controls. LUMIBOT_SCHEDULED_* and LUMIBOT_LIVE_ARTIFACTS_* values are set only by BotSpot for its own scheduled runs; never tell a user to save them or pass them through envVarSetIds, because BotSpot rejects them and the runtime ignores them.
action="update": Update saved environment variable
Required fields: id. Updates saved variable metadata and optionally replaces its Vault value. Values are encrypted at rest and never returned to MCP. If variableName is omitted when replacing a value, the existing single key name is reused.
action="enable": Enable saved environment variable
Required fields: id. Re-enables a disabled saved environment variable record for the authenticated user. Enabled records can be used for future backtest/deployment secret injection. Raw values are never returned.
action="disable": Disable saved environment variable
Required fields: id. Reversibly disables a saved environment variable record for the authenticated user. Disabled records are not eligible for backtest/deployment secret injection or automatic selection, but metadata remains visible and can be re-enabled. Raw values are never returned.
action="delete": Delete saved environment variable
Required fields: id. Deletes saved variable material from Vault and marks the authenticated user's metadata row deleted. Deletion is rejected while any saved runtime preference still references the variable; detach every reference first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Used with action="update", action="enable", action="disable", action="delete". Required for action="update", action="enable", action="disable", action="delete". | |
| value | No | Used with action="create", action="update". Required for action="create". | |
| action | Yes | Which operation to run: "list", "create", "update", "enable", "disable", "delete". See the tool description for each one. | |
| displayName | No | Used with action="create", action="update". | |
| variableName | No | Used with action="create", action="update". Required for action="create". |