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

NameTypeDescription
knowledge_base_uuid requiredstringKnowledge base id
aws_data_sourceobjectAWS S3 Data Source
chunking_algorithmCHUNKING_ALGORITHM_UNKNOWN | CHUNKING_ALGORITHM_SECTION_BASED | CHUNKING_ALGORITHM_HIERARCHICAL | CHUNKING_ALGORITHM_SEMANTIC | CHUNKING_ALGORITHM_FIXED_LENGTH
chunking_optionsobject
body_knowledge_base_uuidstringKnowledge base id
spaces_data_sourceobjectSpaces Bucket Data Source
web_crawler_data_sourceobjectWebCrawlerDataSource

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_knowledge_base_data_source",
  "arguments": {
    "knowledge_base_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 add data source to a knowledge base tool with knowledge_base_uuid set to ….

More from DigitalOcean API