Skip to main content
Glama
dynamed-mcp-server

dynamed-mcp-server

Search DynaMed

dynamed_search
Read-onlyIdempotent

Search DynaMed clinical reference content by keyword to find topics, drug monographs, images, and videos, returning article IDs and slugs for full article retrieval.

Instructions

Search DynaMed clinical reference content (topics, drug monographs, images, videos) by keyword.

This is the entry point for almost every DynaMed workflow: it returns article ids and slugs that dynamed_get_article / dynamed_get_article_by_slug then use to fetch full content. It only reads content; it never modifies anything.

Args:

  • query (string, required): clinical search term, e.g. "community acquired pneumonia treatment"

  • page (number): 1-based page number (default 1)

  • page_size (number): results per page, 1-50 (default 10)

  • fields (string[]): any of title, pubType, description, sections, metadata, toc (default ["title","description","pubType"]). 'sections'/'toc' return large text blocks.

  • filters (object[]): [{ field: "pubTypeId"|"pubTypeGroup"|"pubTypePretty", values: string[] }]

  • aggregations (string[]): any of "pubType.group", "pubType.id", "pubType.pretty" — returns result counts per publication type, which is how you discover valid filter values

  • response_format ('markdown'|'json'): output format (default 'markdown')

Returns (json format): { "query": string, "query_used": string, "page": number, "page_size": number, "total_items": number, "total_pages": number, "count": number, "has_more": boolean, "next_page": number, "items": [{ "id": string, "title": string, "slug": string, "description": string, "pub_type": string, "exact_match": boolean, "media_type": string }], "aggregations": [{ "field": string, "counts": { "": number } }] }

Examples:

  • "What does DynaMed say about heart failure?" -> query="heart failure"

  • "Only drug monographs about metformin" -> query="metformin", aggregations=["pubType.pretty"] to see available types, then re-run with the matching filter

  • Don't use when: you already have an article id -> use dynamed_get_article instead

Error handling:

  • "No results found for ''" when the search returns nothing — try broader terms

  • HTTP 403 means your EBSCO subscription does not cover the configured product

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": {
      "query": "<query>"
    },
    "name": "dynamed_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number
queryYesClinical search term, e.g. 'atrial fibrillation anticoagulation'
fieldsNoFields to return per result. 'sections' and 'toc' add a lot of text — request them only when needed.
filtersNoNarrow results by publication type. Discover valid values via 'aggregations' first.
page_sizeNoResults per page (1-50)
aggregationsNoReturn result counts grouped by publication type, useful for discovering filters
response_formatNo'markdown' for human-readable output, 'json' for machine-readablemarkdown

Output Schema

NameRequiredDescriptionDefault
pageYes
countYes
itemsYes
queryYes
has_moreYes
next_pageNo
page_sizeYes
query_usedNo
total_itemsYes
total_pagesYes
aggregationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, and the sentence 'It only reads content; it never modifies anything' largely restates that. The description does add real value beyond annotations through error behavior ('No results found for <query>', HTTP 403 meaning the EBSCO subscription lacks the configured product) and the warning that 'sections'/'toc' return large text blocks.

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?

Front-loaded with purpose and workflow position, then args, returns, examples, and errors in scannable blocks. It loses a point for a verbose 'Returns (json format)' block that restates a structured output schema and for the read-only sentence duplicating readOnlyHint.

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 7-parameter search tool with pagination, filters, aggregations and field selection, the description covers arguments, pagination/next_page semantics, error states, a stop-rule pointing at dynamed_get_article, and worked examples. Nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further by tying parameters together: aggregations exist to discover valid filter values, and filters use a {field, values} shape keyed to pubTypeId/pubTypeGroup/pubTypePretty. The worked example ('Only drug monographs about metformin') shows the aggregate-then-filter sequence that the schema alone does not make obvious.

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 ('Search DynaMed clinical reference content (topics, drug monographs, images, videos)') and positions itself precisely in the workflow: it returns ids and slugs that dynamed_get_article / dynamed_get_article_by_slug consume. An agent can distinguish it from its siblings without opening any schema.

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?

Explicitly says it is 'the entry point for almost every DynaMed workflow' and gives a stated exclusion: 'Don't use when: you already have an article id -> use dynamed_get_article instead.' It also explains the two-step aggregation-to-filter discovery pattern, which is guidance no schema conveys.

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