vault_send_secret
Sets encrypted Cloudflare Worker secrets from a vault, so agents can deploy Workers needing API keys or connection strings without seeing plaintext.
Instructions
Put secrets from the owner's vault into a Cloudflare Worker's settings (as encrypted Worker secrets), without you ever seeing them. Use it when a Worker you build or deploy needs keys: a database connection string, a Stripe key, a webhook secret, another API key. The helper app reads each value and sends it straight to Cloudflare.
Give: using (the vault entry of a Cloudflare API token allowed to edit Workers), account (the Cloudflare account id), and items, a list of {secret (vault entry id), worker (the Worker's name), name (what its code reads, e.g. STRIPE_KEY for env.STRIPE_KEY)}. One call can set several secrets in one Worker, or one secret in several Workers. Find the secrets with vault_entries_list; if one the Worker needs is not there, ask the owner to add it to the vault (never to paste it here).
The owner approves the list ONCE (each pairing is shown); sending the same pairing again later asks nothing, except a secret the owner set to "Ask me first", which asks on every send (all of them on one card). Only plain text secrets can be sent. Plain settings that are not secret (URLs, ids, a Stripe publishable key) do not need this: put them in the Worker's config yourself. You get back, for each item, whether it was set.
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": {
"using": "<using>",
"account": "<account>",
"items": "<items>",
"purpose": "<purpose>"
},
"name": "vault_send_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| using | Yes | Vault entry id of the Cloudflare API token (permission: Workers Scripts Edit). | |
| account | Yes | Cloudflare account id (32 characters). | |
| purpose | Yes | Why (shown to the owner on the approval card). |