Set a secret
set_secretCreate or update a secret (an env var, key → value) on the account. One secret per key; setting an existing key updates its value. Values are write-only: never returned by any tool. Use attach_secret to bind it to a server or project.
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": {
"key": "<key>",
"value": "<value>"
},
"name": "set_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Env var name (letters, digits, underscore). | |
| value | Yes | The secret value. Write-only. | |
| description | No | Optional note about what it's for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Secret id. Pass it to delete_secret. | |
| key | Yes | Env var name. | |
| masked | No | A masked hint of the value. The value itself is never returned. | |
| created_at | No | ISO 8601 timestamp. | |
| server_ids | No | Servers it is bound to. | |
| updated_at | No | ISO 8601 timestamp. | |
| description | No | Note about what it is for. | |
| project_ids | No | Projects it is bound to. |