uploadContentUrlAboutOrganization
Upload URLs containing organizational information to store content about companies or institutions. Specify user roles for access control.
Instructions
Upload content url about the organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to upload | |
| role | No | The roles of the user |
Implementation Reference
- rag_tools.py:66-78 (handler)The core handler function that performs the URL upload by delegating to rag_service.upload_url and returns a success message.def upload_content_url_about_organization(self, url: str, role: str = "") -> list[str]: """ Upload content url about the organization. Args: url: The URL to upload role: The roles of the user Returns: Success message """ self.rag_service.upload_url(url, role, self.user_id_from_environment) return ["URL uploaded successfully"]
- mcp_server.py:111-129 (schema)The MCP tool schema definition including input schema, properties, required fields, and description.types.Tool( name="uploadContentUrlAboutOrganization", description="Upload content url about the organization", inputSchema={ "type": "object", "properties": { "url": { "type": "string", "description": "The URL to upload" }, "role": { "type": "string", "description": "The roles of the user" } }, "required": ["url"], "additionalProperties": False } )
- mcp_server.py:175-183 (registration)The dispatch logic in the MCP call_tool handler that validates arguments and invokes the tool handler.elif name == "uploadContentUrlAboutOrganization": if "url" not in arguments: raise ValueError("url parameter is required") result = rag_tools.upload_content_url_about_organization( arguments["url"], arguments.get("role", "") ) logger.debug(f"Tool {name} executed successfully") return [types.TextContent(type="text", text=str(result))]