Skip to main content
Glama
lalrow

AI Makerspace MCP Demo Server

by lalrow

science_term

Explain science terms using Wikipedia summaries to clarify complex concepts for educational purposes.

Instructions

Explain a science term using Wikipedia summaries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • server.py:80-91 (handler)
    The handler function for the 'science_term' tool, decorated with @mcp.tool() for registration. It fetches a Wikipedia summary for the input term and returns a formatted response or appropriate error message.
    @mcp.tool()
    def science_term(term: str) -> str:
        """Explain a science term using Wikipedia summaries."""
        try:
            url = f"https://en.wikipedia.org/api/rest_v1/page/summary/{term}"
            r = requests.get(url)
            if r.status_code == 200:
                data = r.json()
                return f"🔬 {data.get('extract', 'No summary found.')}"
            return f"⚠️ Wikipedia error: {r.status_code}"
        except Exception as e:
            return f"❌ Something went wrong: {e}"        

Tool Definition Quality

Score is being calculated. Check back soon.

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/lalrow/AIE8-MCP-Session'

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