Home / Servers / DigitalOcean API / databases_update_eviction_policy
Configure the Eviction Policy for a Caching or Valkey Cluster
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Configure the Eviction Policy for a Caching or Valkey Cluster To configure an eviction policy for an existing Caching or Valkey cluster, send a PUT request to /v2/databases/$DATABASE_ID/eviction_policy specifying the desired policy. [PUT /v2/databases/{database_cluster_uuid}/eviction_policy]
Name on the gateway: digitalocean_api__databases_update_eviction_policy · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
database_cluster_uuid required | string | A unique identifier for a database cluster. |
eviction_policy required | noeviction | allkeys_lru | allkeys_random | volatile_lru | volatile_random | volatile_ttl | A string specifying the desired eviction policy for a Caching or Valkey… |
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:
{
"name": "digitalocean_api__databases_update_eviction_policy",
"arguments": {
"database_cluster_uuid": "…",
"eviction_policy": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
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 configure the eviction policy for a caching or valkey cluster tool with database_cluster_uuid set to ….