Skip to main content
Glama
dynamed-mcp-server

dynamed-mcp-server

Suggest DynaMed Topics

dynamed_suggest
Read-onlyIdempotent

Autocompletes DynaMed topic titles and index terms from partial queries, resolving vague or misspelled clinical phrasing into exact titles for accurate searching.

Instructions

Autocomplete DynaMed topic titles and index terms from a partial query.

Use this to resolve vague, abbreviated, or misspelled clinical phrasing into the exact topic titles DynaMed uses, before running dynamed_search. Matched title suggestions also carry the article id and slug, so a confident match can go straight to dynamed_get_article. Read-only.

Args:

  • query (string, required): partial term, e.g. "atrial fib"

  • suggestion_types (string[]): any of "title", "term" (default: both)

  • max_per_type (number): maximum suggestions per type, 1-50 (default 10)

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

Returns (json format): { "query": string, "total_items": number, "groups": [{ "suggestion_type": string, "suggestions": [{ "phrase": string, "id": string, "slug": string, "title": string }] }] }

Examples:

  • "What's the DynaMed topic for AF?" -> query="atrial fib"

  • "Fix my spelling of pneumothorax" -> query="pneumothorx"

  • Don't use when: you want article content -> use dynamed_search or dynamed_get_article

Error handling:

  • "No suggestions found for ''" when nothing matches — try a shorter prefix

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_suggest"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesPartial term to autocomplete, e.g. 'atrial fib'
max_per_typeNoMaximum suggestions per type (default 10)
response_formatNo'markdown' for human-readable output, 'json' for machine-readablemarkdown
suggestion_typesNoLimit to 'title' (topic titles) and/or 'term' (index terms). Default: both.

Output Schema

NameRequiredDescriptionDefault
queryYes
groupsYes
total_itemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the description correctly does not re-litigate safety. It adds behavior the annotations cannot: that title suggestions carry article id and slug, enabling a direct jump to dynamed_get_article, and it discloses the exact no-match error string plus a recovery tactic ('try a shorter prefix'). Missing only limits/truncation behavior when max_per_type is hit.

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 purpose, then Args/Returns/Examples/Error handling in a predictable shape, ending with the negative case. The Returns block duplicates the published output schema and the Args block replays schema defaults, costing some length without new information.

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?

With annotations, full schema coverage, and an output schema present, the description covers the remaining burden: when to call it, what suggestions contain, how to chain into search/get_article, and what happens on no match. Nothing an agent needs to invoke it correctly is absent.

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; the description earns an extra point by illustrating query semantics with 'atrial fib' and the misspelled 'pneumothorx', which tells the agent that fuzzy/partial input is expected. The enumeration of max_per_type and response_format largely restates schema defaults and enums rather than adding meaning.

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?

Opens with a specific verb+resource: autocomplete DynaMed topic titles and index terms from a partial query. It immediately distinguishes the tool from the retrieval siblings by framing it as a resolver that feeds dynamed_search and dynamed_get_article, so an agent can place it in the workflow without opening another 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?

Gives the triggering condition ('resolve vague, abbreviated, or misspelled clinical phrasing ... before running dynamed_search') and an explicit exclusion ('Don't use when: you want article content -> use dynamed_search or dynamed_get_article'). The two example utterances map real user phrasing onto concrete query values.

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