Home / Servers / DigitalOcean API / security_revert_secret

Revert Secret

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Revert Secret To revert a secret to a prior version, send a POST request to /v2/security/secrets/{secret}/versions/{version}/revert. region is required. current_version must be the secret's current version. If it… [POST /v2/security/secrets/{secret}/versions/{version}/revert]

Name on the gateway: digitalocean_api__security_revert_secret · may change things.

Parameters

NameTypeDescription
secret requiredstringThe name of the secret.
version requiredintegerThe target version to revert to. Reverting creates a new…
region requiredstringThe region where the secret is stored.
current_version requiredintegerThe current version of the secret. Used to reject the request if the secret…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__security_revert_secret",
  "arguments": {
    "secret": "…",
    "version": 0,
    "region": "…",
    "current_version": 0
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the revert secret tool with secret set to ….

More from DigitalOcean API