Skip to main content
Glama
helper.py681 B
"""Helper utility module with base functionality.""" class Logger: """Simple logger class for demonstration.""" def __init__(self, name): self.name = name self.enabled = True def log(self, message): """Log a message if enabled.""" if self.enabled: print(f"[{self.name}] {message}") def disable(self): """Disable logging.""" self.enabled = False def validate_input(data): """Validate input data.""" if data is None: raise ValueError("Data cannot be None") return True def format_output(value): """Format output value as string.""" return str(value).upper()

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/y3i12/nabu_nisaba'

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