Skip to main content
Glama
greet.py644 B
"""Example tool for testing strands-mcp-server CLI.""" from strands import tool @tool def greet(name: str, style: str = "friendly") -> str: """Greet someone with different styles. Args: name: The name of the person to greet style: Greeting style - "friendly", "formal", or "enthusiastic" Returns: str: A greeting message """ styles = { "friendly": f"Hey {name}! Great to see you! 👋", "formal": f"Good day, {name}. It is a pleasure to meet you.", "enthusiastic": f"🎉 {name}!!! SO excited to see you! 🚀✨", } return styles.get(style, styles["friendly"])

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/cagataycali/strands-mcp-server'

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