# models.py
from pydantic import BaseModel, HttpUrl
from typing import Optional, Union
class SearchResultItem(BaseModel):
"""
Defines the structure for a single search result item scraped from AustLII.
"""
title: str
url: Union[HttpUrl, str] # Accept both HttpUrl and string
metadata: Optional[str] = None # e.g., "Relevance: 100%"
## Legacy ChatResponse removed (non-MCP design). Use tools outputs instead.
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/mickey-mikey/olexi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server