Skip to main content
Glama
dictionary_tool.py529 B
import requests def define_word(word: str): url = f"https://api.dictionaryapi.dev/api/v2/entries/en/{word}" resp = requests.get(url).json() if isinstance(resp, dict) and "title" in resp: return {"error": "Word not found"} entry = resp[0] meanings = entry["meanings"][0] return { "word": entry["word"], "part_of_speech": meanings["partOfSpeech"], "definition": meanings["definitions"][0]["definition"], "example": meanings["definitions"][0].get("example") }

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/jamalexfo/mcp-api-tools'

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