Skip to main content
Glama

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

NameRequiredDescriptionDefault
idYes

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)

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/Arindam200/devto-mcp'

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