Store secret
tzcloud_store_secretStore a named secret, or replace it with replace: true. value must already be in this chat. Your host may record arguments. Without value or generate, nothing is stored. You get state: awaiting_value and four commands. Run command_npx (command_npx_windows on Windows) or installed command (command_windows) once as given before expires_at. Send an on-disk value with value_file, keeping it out of chat.
No tool reads stored values. Replace an existing secret without generate. Apply a replaced bound setting by deploy, promote or the tzcloud_restart_application in next. Check tzcloud_read_status for rotated_since_read.
For outside API keys, use tzcloud_declare_outbound_api's gateway. Use sdk_settings for an unchanged SDK. Bind in manifest settings only when your user requires the client's fixed host unchanged, or library source fixes it with no configurable gateway address. For that binding, declare no upstream and list its host in manifest egress.
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>"
},
"name": "tzcloud_store_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name to store under; it keeps the scope it was first stored with, though it may exist at both environment scopes of one application, and another scope is refused `scope_fixed`. | |
| value | No | The secret value, sent once and never read back. Through the MCP tool, pass it only for a value the person already put in the conversation, since a value on disk goes through the command, which never shows it to the assistant. | |
| replace | No | `true` replaces the value of a name already in custody at this scope, and refuses a name that was never stored. `generate` is refused with it. | |
| generate | No | The platform creates the value, one nobody chooses, such as a session signing secret. A value a sender must also hold, such as a webhook's signing secret, is never generated. A stored name refuses `secret_exists`; beside `value_file` or a value, or without `application`, `invalid_request`. | |
| value_file | No | On a call with no value, the local file holding the secret. Keep it outside the application's folder; delete it after the command exits 0 unless a sender needs it. Pass it because a tool cannot type into the command's prompt. `~` or a path the pattern refuses is refused `invalid_request`. | |
| application | No | An application id, to hold the secret at that application's scope; omitted, the secret is held at the account scope. | |
| environment | No | With `application`, the environment whose scope of that application holds the secret; absent, `production`. Refused if given without `application`. |