searchOrganizationContents
Search through your organization's content database using semantic queries to find relevant information quickly.
Instructions
Search through the organization's content database using semantic search
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "searchOrganizationContents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query |
Implementation Reference
- rag_tools.py:26-36 (handler)The handler function implementing the tool logic, performing semantic search via RagService.
def search_organization_contents(self, query: str) -> list[str]: """ Search through the organization's content database using semantic search. Args: query: The search query (required) Returns: List of search results """ return self.rag_service.search_contents(query, self.user_id_from_environment) - mcp_server.py:61-71 (schema)Input schema defining the required 'query' parameter for the tool.
inputSchema={ "type": "object", "properties": { "query": { "type": "string", "description": "The search query" } }, "required": ["query"], "additionalProperties": False } - mcp_server.py:58-72 (registration)Registers the tool in the MCP server's list_tools handler with name, description, and schema.
types.Tool( name="searchOrganizationContents", description="Search through the organization's content database using semantic search", inputSchema={ "type": "object", "properties": { "query": { "type": "string", "description": "The search query" } }, "required": ["query"], "additionalProperties": False } ), - mcp_server.py:150-155 (registration)Handles tool calls by dispatching to the rag_tools.search_organization_contents method.
elif name == "searchOrganizationContents": if "query" not in arguments: raise ValueError("Query parameter is required") result = rag_tools.search_organization_contents(arguments["query"]) logger.debug(f"Tool {name} executed successfully") return [types.TextContent(type="text", text=str(result))]