Get DynaMed Article by Slug
dynamed_get_article_by_slugRetrieve a full DynaMed article by slug as readable text, and optionally return only its table of contents or selected sections to focus on relevant clinical content.
Instructions
Retrieve a full DynaMed article by its slug, converted from HTML to readable text.
DynaMed topics are long. The recommended workflow is: dynamed_search to get the slug -> call this tool with toc_only=true to see the section list -> call again with section_anchors for the sections you actually need. Read-only; nothing is modified.
Args:
slug (string, required): e.g. "/condition/acute-heart-failure"
section_anchors (string[]): return only these sections (anchors come from the table of contents)
toc_only (boolean): return metadata + table of contents only, no body text (default false)
response_format ('markdown'|'json'): output format (default 'markdown')
Returns (json format): { "id": string, "title": string, "slug": string, "metadata": object, "toc": string[], "sections": [{ "anchor": string, "title": string, "text": string }], "total_sections": number, "returned_sections": number, "truncated": boolean }
Examples:
"Summarize the treatment section of this topic" -> toc_only=true, then section_anchors=["treatment"]
"Give me the whole topic" -> call with no section_anchors (may be truncated)
Don't use when: you don't have an slug yet -> use dynamed_search first
Error handling:
HTTP 404 means the slug is wrong — take slugs from dynamed_search results, never guess them
If requested anchors match nothing, the response lists the available anchors
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>"
},
"name": "dynamed_get_article_by_slug"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | URL-friendly topic slug from dynamed_search results, e.g. '/condition/acute-heart-failure' | |
| toc_only | No | Return only metadata and the table of contents, with no section body text | |
| response_format | No | 'markdown' for human-readable output, 'json' for machine-readable | markdown |
| section_anchors | No | Return only these sections, by anchor. Get anchors from the table of contents (call once with toc_only=true first). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| toc | Yes | ||
| slug | No | ||
| title | No | ||
| metadata | No | ||
| sections | Yes | ||
| truncated | Yes | ||
| total_sections | Yes | ||
| returned_sections | Yes |