Skip to main content
Glama

magic_word

Generate random words for creative writing, brainstorming, or vocabulary building using this MCP server tool.

Instructions

Return a random word from the list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:32-34 (handler)
    The handler function for the 'magic_word' tool, which selects and returns a random word from the predefined magic_words list.
    def magic_word() -> str: """Return a random word from the list""" return random.choice(magic_words)
  • main.py:31-31 (registration)
    Registers the magic_word tool with the FastMCP server using the @mcp.tool decorator.
    @mcp.tool
  • main.py:5-5 (helper)
    Predefined list of magic words used by the magic_word tool handler.
    magic_words = ["consistent", "honor", "attitude", "motivation", "perseverance", "integrity", "optimistic", "never giving up"]
Install Server

Other Tools

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/Joseph19820124/joseph_mcp_server'

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