Skip to main content
Glama
dynamed-mcp-server

dynamed-mcp-server

Get DynaMed Article by ID

dynamed_get_article
Read-onlyIdempotent

Retrieve a full DynaMed article by ID as readable text; return only its table of contents or selected sections to focus on needed clinical content.

Instructions

Retrieve a full DynaMed article by its id, converted from HTML to readable text.

DynaMed topics are long. The recommended workflow is: dynamed_search to get the id -> 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:

  • article_id (string, required): e.g. "T116814"

  • 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 id yet -> use dynamed_search first

Error handling:

  • HTTP 404 means the id is wrong — take ids 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": {
      "article_id": "<article_id>"
    },
    "name": "dynamed_get_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
toc_onlyNoReturn only metadata and the table of contents, with no section body text
article_idYesDynaMed article id from dynamed_search results, e.g. 'T116814'
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.9/5.0
Behavior5/5

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

Annotations already establish that the tool is read-only, idempotent, and non-destructive. Beyond that, the description discloses that DynaMed topics are long, that full-topic calls may be truncated, that toc_only avoids body text, and how HTTP 404 and unmatched anchors behave.

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 front-loaded: purpose, workflow, parameters, examples, then errors. It is somewhat verbose because the full JSON return shape is repeated even though an output schema exists, but the rest of the content is useful and logically ordered.

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 tool with four parameters, an output schema, and rich annotations, the description supplies everything an agent needs to call it correctly. It covers workflow, parameter intent, truncation risk, examples, and error recovery.

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

Parameters5/5

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

Schema coverage is 100%, so the structured fields already document each parameter. The description nevertheless adds useful meaning by explaining the intended sequence for toc_only and section_anchors and by giving examples that show how to choose parameters for common requests.

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?

The description states a specific verb and resource: retrieve a full DynaMed article by id, converted from HTML to readable text. It clearly scopes the tool and separates it from dynamed_search by explaining that search is used first to obtain the id.

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?

It gives an explicit recommended workflow: search first, call with toc_only=true to inspect sections, then call again with section_anchors for only the needed sections. It also includes a 'Don't use when' condition and concrete examples mapping user requests to parameter choices.

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