Set an environment variable or secret
set_envStores an app's environment variable or secret server-side and restarts the app so the new value takes effect without writing it into code.
Instructions
Sets an environment variable / secret of the app (e.g. an API key or a database password) and restarts it. The value is stored on the server, never in the code, and is never shown back. Ask the user for the value; do not write it in any file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"key": "<key>",
"value": "<value>"
},
"name": "set_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | UPPER_CASE name, e.g. OPENAI_API_KEY | |
| name | Yes | App name = sub-domain, e.g. "my-notes" (lowercase letters, digits, dashes) | |
| value | Yes | ||
| restart | No |