get_articles_by_tag
Fetch Dev.to articles filtered by specific tags to find relevant content quickly. Specify a tag to retrieve matching articles from the platform.
Instructions
Get articles by tag from Dev.to
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes |
Implementation Reference
- server.py:34-38 (handler)The main handler function for the 'get_articles_by_tag' tool. It fetches articles from the Dev.to API using the provided tag as a parameter and formats the first 10 results for output. Registered via @mcp.tool() decorator.
@mcp.tool() async def get_articles_by_tag(tag: str) -> str: """Get articles by tag from Dev.to""" articles = await fetch_from_api("/articles", params={"tag": tag}) return format_articles(articles[:10]) # Limiting to 10 for readability