Home / Servers / DigitalOcean API / genai_create_knowledge_base_data_source
Add Data Source to a Knowledge Base
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Add Data Source to a Knowledge Base To add a data source to a knowledge base, send a POST request to /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources. [POST /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources]
Name on the gateway: digitalocean_api__genai_create_knowledge_base_data_source · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
knowledge_base_uuid required | string | Knowledge base id |
aws_data_source | object | AWS S3 Data Source |
chunking_algorithm | CHUNKING_ALGORITHM_UNKNOWN | CHUNKING_ALGORITHM_SECTION_BASED | CHUNKING_ALGORITHM_HIERARCHICAL | CHUNKING_ALGORITHM_SEMANTIC | CHUNKING_ALGORITHM_FIXED_LENGTH | |
chunking_options | object | |
body_knowledge_base_uuid | string | Knowledge base id |
spaces_data_source | object | Spaces Bucket Data Source |
web_crawler_data_source | object | WebCrawlerDataSource |
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_data_source",
"arguments": {
"knowledge_base_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 add data source to a knowledge base tool with knowledge_base_uuid set to ….