uploadContentUrlAboutOrganization
Submit a URL to store organizational content on the Content Server. Specify the user role to manage access and permissions effectively.
Instructions
Upload content url about the organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | The roles of the user | |
| url | Yes | The URL to upload |
Implementation Reference
- rag_tools.py:66-78 (handler)The handler function implementing the 'uploadContentUrlAboutOrganization' tool. It calls RagService.upload_url with the provided URL and role, then 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 (registration)Registration of the 'uploadContentUrlAboutOrganization' tool in the list_tools handler, including its JSON input schema, description, and name.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 (handler)Dispatch logic in the MCP server's call_tool handler that invokes the tool's implementation in rag_tools when the tool name matches.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))]
- mcp_server.py:114-129 (schema)JSON input schema defining the parameters for the 'uploadContentUrlAboutOrganization' tool (embedded in registration).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 } )