get_article_by_id
Fetch a specific article from Dev.to using its unique ID, enabling direct access to targeted content for analysis or integration.
Instructions
Get a specific article by ID from Dev.to
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"id": {
"title": "Id",
"type": "string"
}
},
"required": [
"id"
],
"title": "get_article_by_idArguments",
"type": "object"
}
Implementation Reference
- server.py:40-44 (handler)The main handler function for the 'get_article_by_id' tool. It is registered via the @mcp.tool() decorator. The function fetches the article details from the Dev.to API using the provided ID and formats the output using format_article_details helper.@mcp.tool() async def get_article_by_id(id: str) -> str: """Get a specific article by ID from Dev.to""" article = await fetch_from_api(f"/articles/{id}") return format_article_details(article)