from datetime import datetime, timezone
def get_time_impl(fmt: str | None = None) -> dict:
now = datetime.now(timezone.utc)
iso = now.isoformat().replace("+00:00", "Z")
data = {"iso": iso}
if fmt:
try:
data["formatted"] = now.strftime(fmt)
except Exception:
# If format is invalid, just omit formatted (schema does not require it)
pass
return data
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/bankszach/fastapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server