We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gianlucamazza/mcp-duckduckgo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
"""
MCP prompt definitions for the DuckDuckGo search plugin.
"""
from pydantic import Field
from .server import mcp
@mcp.prompt() # noqa: F401 # pragma: no cover
def search_assistant(topic: str = Field(..., description="The topic to search for")) -> str: # vulture: ignore
"""
Creates a prompt to help formulate an effective search query for the given topic.
"""
return f"""
I need to search for information about {topic}.
Please help me formulate an effective search query that will:
1. Be specific and focused
2. Use relevant keywords
3. Avoid unnecessary words
4. Be under 400 characters
Then, use the duckduckgo_web_search tool with this query to find the most relevant information.
"""