Home / Servers / DigitalOcean API / genai_create_agent_api_key

Create an Agent API Key

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

Create an Agent API Key To create an agent API key, send a POST request to /v2/gen-ai/agents/{agent_uuid}/api_keys. [POST /v2/gen-ai/agents/{agent_uuid}/api_keys]

Name on the gateway: digitalocean_api__genai_create_agent_api_key · may change things.

Parameters

NameTypeDescription
agent_uuid requiredstringAgent id
body_agent_uuidstringAgent id
namestringA human friendly name to identify the key

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__genai_create_agent_api_key",
  "arguments": {
    "agent_uuid": "…"
  }
}

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 create an agent api key tool with agent_uuid set to ….

More from DigitalOcean API