Skip to main content
Glama

retell_add_knowledge_base_sources

Add documentation sources like URLs or text content to enhance a knowledge base for AI agents.

Instructions

Add documentation sources (URLs or text) to a knowledge base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
knowledge_base_idYesThe knowledge base ID
sourcesYesArray of source configurations

Implementation Reference

  • Handler implementation that extracts knowledge_base_id and sources from input args and sends a POST request to the Retell API to add sources to the knowledge base.
    case "retell_add_knowledge_base_sources": {
      const { knowledge_base_id, sources } = args;
      return retellRequest(`/add-knowledge-base-sources/${knowledge_base_id}`, "POST", { sources });
    }
  • Tool schema definition including name, description, and detailed inputSchema for validating knowledge_base_id and sources array.
    {
      name: "retell_add_knowledge_base_sources",
      description: "Add documentation sources (URLs or text) to a knowledge base.",
      inputSchema: {
        type: "object",
        properties: {
          knowledge_base_id: {
            type: "string",
            description: "The knowledge base ID"
          },
          sources: {
            type: "array",
            description: "Array of source configurations",
            items: {
              type: "object",
              properties: {
                type: {
                  type: "string",
                  enum: ["url", "text", "document"],
                  description: "Source type"
                },
                url: {
                  type: "string",
                  description: "URL for url type sources"
                },
                content: {
                  type: "string",
                  description: "Text content for text type sources"
                },
                title: {
                  type: "string",
                  description: "Title for the source"
                }
              }
            }
          }
        },
        required: ["knowledge_base_id", "sources"]
      }
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itsanamune/retellsimp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server