deleteOrganizationContent
Remove specific content from an organization's database by providing the content's unique ID using the Content Server's tool.
Instructions
Delete specific content from the organization's database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentId | Yes | The ID of the content to delete |
Implementation Reference
- rag_tools.py:38-49 (handler)The main handler function that performs the deletion by calling rag_service.delete_content and returns a success message.def delete_organization_content(self, content_id: str) -> list[str]: """ Delete specific content from the organization's database. Args: content_id: The ID of the content to delete (required) Returns: Success message """ self.rag_service.delete_content(content_id, self.user_id_from_environment) return ["Content deleted successfully"]
- mcp_server.py:73-87 (schema)Tool schema definition including name, description, and input validation schema requiring 'contentId' string.types.Tool( name="deleteOrganizationContent", description="Delete specific content from the organization's database", inputSchema={ "type": "object", "properties": { "contentId": { "type": "string", "description": "The ID of the content to delete" } }, "required": ["contentId"], "additionalProperties": False } ),
- mcp_server.py:157-162 (registration)Dispatch logic in call_tool handler that routes 'deleteOrganizationContent' calls to the rag_tools handler after argument validation.elif name == "deleteOrganizationContent": if "contentId" not in arguments: raise ValueError("contentId parameter is required") result = rag_tools.delete_organization_content(arguments["contentId"]) logger.debug(f"Tool {name} executed successfully") return [types.TextContent(type="text", text=str(result))]