Home / Servers / DigitalOcean API / genai_create_knowledge_base
Create a Knowledge Base
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Create a Knowledge Base To create a knowledge base, send a POST request to /v2/gen-ai/knowledge_bases. [POST /v2/gen-ai/knowledge_bases]
Name on the gateway: digitalocean_api__genai_create_knowledge_base · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
database_id | string | Identifier of the DigitalOcean OpenSearch database this knowledge base will… |
datasources | array | Optional data sources to attach at creation. Omit or use an empty list to… |
embedding_model_uuid | string | Identifier for the embedding model. |
name | string | Name of the knowledge base. |
project_id | string | Identifier of the DigitalOcean project this knowledge base will belong to. |
region | string | The datacenter region to deploy the knowledge base in. |
reranking_config | object | Configuration for cross-encoder reranking during retrieval. |
size | OPEN_SEARCH_PLAN_SIZE_UNSPECIFIED | OPEN_SEARCH_PLAN_SIZE_SMALL | OPEN_SEARCH_PLAN_SIZE_MEDIUM | OPEN_SEARCH_PLAN_SIZE_LARGE | OPEN_SEARCH_PLAN_SIZE_EXTRA_LARGE | |
tags | array | Tags to organize your knowledge base. |
vpc_uuid | string | The VPC to deploy the knowledge base database in |
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_create_knowledge_base",
"arguments": {}
}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 create a knowledge base tool with database_id set to ….