Home / Servers / DigitalOcean API / genai_update_agent_api_key
Update API Key for an Agent
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Update API Key for an Agent To update an agent API key, send a PUT request to /v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}. [PUT /v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}]
Name on the gateway: digitalocean_api__genai_update_agent_api_key · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
agent_uuid required | string | Agent id |
api_key_uuid required | string | API key ID |
body_agent_uuid | string | Agent id |
body_api_key_uuid | string | API key ID |
name | string | Name |
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__genai_update_agent_api_key",
"arguments": {
"agent_uuid": "…",
"api_key_uuid": "…"
}
}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 update api key for an agent tool with agent_uuid set to ….