Skip to main content
Glama
helpers.rego433 B
package utils # User validation is_valid_user(user) if { user.id != "" user.email != "" } # Email validation is_valid_email(email) if { contains(email, "@") contains(email, ".") } # Username validation is_valid_username(username) if { count(username) >= 3 count(username) <= 32 } # Check if string is empty is_empty(str) if { str == "" } # Check if array contains element array_contains(arr, elem) if { arr[_] == elem }

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