Skip to main content
Glama

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
NameRequiredDescriptionDefault
roleNoThe roles of the user
urlYesThe URL to upload

Implementation Reference

  • 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 } )
  • 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))]
  • 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 } )

Other Tools

Related Tools

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/yogeshkulkarni553/rag-mcp-py'

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