Skip to main content
Glama
Person.fs910 B
namespace Models /// Person record type type Person = { Name: string Age: int Email: string option } module PersonModule = /// Create a new person let createPerson name age email = { Name = name; Age = age; Email = email } /// Check if person is an adult let isAdult person = person.Age >= 18 /// Get display name let getDisplayName person = match person.Email with | Some email -> $"{person.Name} ({email})" | None -> person.Name /// Update person age let updateAge newAge person = { person with Age = newAge } /// Address type type Address = { Street: string City: string ZipCode: string Country: string } /// Employee type that extends Person concept type Employee = { Person: Person EmployeeId: int Department: string Salary: decimal Address: Address option }

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/ryota-murakami/serena'

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