Skip to main content
Glama

uploadContentFileAboutOrganization

Upload organizational content files to the Content Server for storage and management.

Instructions

Upload content file about the organization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesThe file content to upload
fileNameYesThe file name
roleNoThe roles of the user

Implementation Reference

  • The core handler function for the MCP tool 'uploadContentFileAboutOrganization'. It receives file content, name, and optional role, delegates the upload to RagService.upload_file using the user ID from environment, and returns a success message.
    def upload_content_file_about_organization(self, file: str, file_name: str, role: str = "") -> list[str]: """ Upload content file about the organization. Args: file: The file content to upload file_name: The file name (required) role: The roles of the user Returns: Success message """ self.rag_service.upload_file(file, file_name, role, self.user_id_from_environment) return ["File uploaded successfully"]
  • mcp_server.py:88-110 (registration)
    Tool registration in the MCP server's list_tools handler, defining the tool name, description, and input schema with required 'file' and 'fileName' parameters.
    types.Tool( name="uploadContentFileAboutOrganization", description="Upload content file about the organization", inputSchema={ "type": "object", "properties": { "file": { "type": "string", "description": "The file content to upload" }, "fileName": { "type": "string", "description": "The file name" }, "role": { "type": "string", "description": "The roles of the user" } }, "required": ["file", "fileName"], "additionalProperties": False } ),
  • Input schema definition for the tool, specifying properties and requirements for file content, fileName, and optional role.
    inputSchema={ "type": "object", "properties": { "file": { "type": "string", "description": "The file content to upload" }, "fileName": { "type": "string", "description": "The file name" }, "role": { "type": "string", "description": "The roles of the user" } }, "required": ["file", "fileName"], "additionalProperties": False }
  • mcp_server.py:164-173 (registration)
    Dispatch/execution logic in the MCP server's call_tool handler, validating arguments, calling the rag_tools handler, and returning the result as TextContent.
    elif name == "uploadContentFileAboutOrganization": if "file" not in arguments or "fileName" not in arguments: raise ValueError("file and fileName parameters are required") result = rag_tools.upload_content_file_about_organization( arguments["file"], arguments["fileName"], arguments.get("role", "") ) logger.debug(f"Tool {name} executed successfully") return [types.TextContent(type="text", text=str(result))]

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