Skip to main content
Glama

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
NameRequiredDescriptionDefault
contentIdYesThe ID of the content to delete

Implementation Reference

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

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