Home / Servers / DigitalOcean API / genai_create_agent

Create an Agent

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

Create an Agent To create a new agent, send a POST request to /v2/gen-ai/agents. The response body contains a JSON object with the newly created agent object. [POST /v2/gen-ai/agents]

Name on the gateway: digitalocean_api__genai_create_agent · may change things.

Parameters

NameTypeDescription
anthropic_key_uuidstringOptional Anthropic API key ID to use with Anthropic models
descriptionstringA text description of the agent, not used in inference
instructionstringAgent instruction. Instructions help your agent to perform its job…
knowledge_base_uuidarrayIds of the knowledge base(s) to attach to the agent
mcp_serversarrayMCP (Model Context Protocol) servers to attach to the agent
model_provider_key_uuidstring
model_router_uuidstring
model_uuidstringIdentifier for the foundation model.
namestringAgent name
open_ai_key_uuidstringOptional OpenAI API key ID to use with OpenAI models
project_idstringThe id of the DigitalOcean project this agent will belong to
reasoning_effortstring
regionstringThe DigitalOcean region to deploy your agent in
router_preset_slugstring
tagsarrayAgent tag to organize related resources
thinking_token_budgetinteger
web_fetch_enabledbooleanWhether the agent can use the built-in web_fetch tool to retrieve content from…
web_search_enabledbooleanWhether the agent can use the built-in web_search tool to search the public…
workspace_uuidstringIdentifier for the workspace

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

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 tool with anthropic_key_uuid set to ….

More from DigitalOcean API