Skip to main content
Glama
dynamed-mcp-server

dynamed-mcp-server

Get DynaMed Article by Slug

dynamed_get_article_by_slug
Read-onlyIdempotent

Retrieve 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

NameRequiredDescriptionDefault
slugYesURL-friendly topic slug from dynamed_search results, e.g. '/condition/acute-heart-failure'
toc_onlyNoReturn only metadata and the table of contents, with no section body text
response_formatNo'markdown' for human-readable output, 'json' for machine-readablemarkdown
section_anchorsNoReturn only these sections, by anchor. Get anchors from the table of contents (call once with toc_only=true first).

Output Schema

NameRequiredDescriptionDefault
idYes
tocYes
slugNo
titleNo
metadataNo
sectionsYes
truncatedYes
total_sectionsYes
returned_sectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds valuable context beyond annotations: articles are long, whole-topic calls may be truncated, 404s indicate a bad slug, and unmatched anchors cause the response to list available anchors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded with purpose and workflow, and the examples and error handling earn their place. However, it includes a full JSON return shape even though an output schema exists, which is redundant and adds unnecessary length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter read-only article retrieval tool with an output schema, the description covers the essential workflow, truncation behavior, error handling, and usage exclusions. An agent has everything needed to call it correctly despite the redundant return-shape section.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents slug, toc_only, response_format, and section_anchors thoroughly. The description largely restates those meanings; its workflow hint about getting anchors from the table of contents adds some value but not meaning beyond the schema's own descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Retrieve a full DynaMed article by its slug, converted from HTML to readable text.' This clearly distinguishes it from a search or by-ID retrieval, and the slug-based scope is stated up front.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit multi-step workflow (dynamed_search → toc_only=true → section_anchors), a 'Don't use when' exclusion pointing to dynamed_search, and examples mapping user intent to parameter choices. An agent can select and sequence the tool correctly without inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.