Skip to main content
Glama

AI Tutoring RAG System

users.pyโ€ข1.31 kB
from pydantic import BaseModel, Field, ConfigDict from uuid import UUID from datetime import time, datetime from typing import Optional class UserCreate(BaseModel): name: str = Field(..., description="The name of the user") email: Optional[str] = Field(default=None, description="The email of the user") phone_number: str = Field(..., description="The phone number of the user") password: str = Field( ..., description="The password for the user" ) # NEW: Added password field class UserResponse(BaseModel): id: UUID = Field(..., description="The ID of the user") name: str = Field(..., description="The name of the user") email: Optional[str] = Field(default=None, description="The email of the user") phone_number: str = Field(..., description="The phone number of the user") created_at: Optional[datetime] = Field( default=None, description="The creation date of the user" ) updated_at: Optional[datetime] = Field( default=None, description="The last update date of the user" ) model_config = ConfigDict(from_attributes=True) class UserUpdate(BaseModel): name: Optional[str] = Field(default=None, description="The name of the user") email: Optional[str] = Field(default=None, description="The email of the user")

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/Chukwuebuka-2003/ebuka_mcps'

If you have feedback or need assistance with the MCP directory API, please join our Discord server