We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/deepset-ai/hayhooks'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
utils.py•577 B
"""
Utility functions for the pipeline wrapper.
This module demonstrates how to organize helper functions in a separate file
and import them using relative imports.
"""
def greet(name: str) -> str:
"""Generate a greeting message."""
return f"Hello, {name}!"
def calculate_sum(numbers: list[int]) -> int:
"""Calculate the sum of a list of numbers."""
return sum(numbers)
def calculate_average(numbers: list[int]) -> float:
"""Calculate the average of a list of numbers."""
if not numbers:
return 0.0
return sum(numbers) / len(numbers)