agentsclimarketplace

Medlineplus

Skill BioTender-max/awesome-bio-agent-skills/skills/drugclaw/medlineplus

Query MedlinePlus for consumer-oriented drug and health-topic information. Accepts drug names, RxCUI codes, NDC codes, or ICD-10-CM diagnosis codes. Uses two free, keyless NLM APIs: the Web Service (keyword search) and MedlinePlus Connect (code-based lookup).From its SKILL.md

Install
npx -y skills add BioTender-max/awesome-bio-agent-skills --skill medlineplus

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.7 KB, 714 tokens by cl100k_base, as published. Nobody here has run it

MedlinePlus Drug Info Skill

Search MedlinePlus drug / health-topic pages. Auto-detects input type:

Input PatternDetected AsExampleEndpoint Used
0069-3060-30NDC codeNDC → drug pageConnect (NDC)
637188 (5-7 digits)RxCUIRxNorm conceptConnect (RxCUI)
E11.9, J45.20ICD-10-CMDiagnosis code → topicConnect (ICD-10)
anything elsefree textmetformin, aspirinConnect (name) + wsearch

Both APIs are free, require no API key, and are rate-limited to 85 req/min.

API

FunctionInputReturns
search(query, max_results=10)single entity stringdict with connect_results, wsearch_results
search_batch(queries, max_results=10)list of entity stringsdict[str, dict]
summarize(result)one search() result dictcompact text for LLM
to_json(result)one search() result dictlist[dict] flat records

Result dict structure

{
    "query": "metformin",
    "input_type": "text",          # ndc | rxcui | icd10 | text
    "connect_results": [           # from MedlinePlus Connect
        {"title": "...", "url": "...", "summary": "...", "source": "..."},
    ],
    "wsearch_results": [           # from keyword web service
        {"title": "...", "url": "...", "snippet": "...", "rank": "..."},
    ],
    "errors": [],
}

Usage

See if __name__ == "__main__" block in 57_MEDLINEPLUS_DRUG_INFO.py for runnable examples covering: drug name, RxCUI, NDC, ICD-10, batch search, summarize, and JSON output.

Key Fields

FieldSourceDescription
titleConnect / wsearchMedlinePlus page title
urlConnect / wsearchDirect link to MedlinePlus page
summaryConnectHTML-stripped page summary (≤400 chars)
snippetwsearchKeyword-in-context excerpt (≤300 chars)
sourceConnectContent attribution (e.g., AHFS, ASHP)
rankwsearchRelevance rank returned by NLM

Data Source

  • Provider: U.S. National Library of Medicine (NLM)
  • Web Service: https://wsearch.nlm.nih.gov/ws/query (XML, keyword search)
  • Connect API: https://connect.medlineplus.gov/service (JSON, code-based)
  • Rate limit: 85 requests / minute / IP
  • Update frequency: daily (Tue–Sat)
  • License: Public domain (U.S. Government work); attribution to MedlinePlus.gov requested

What ships with it: 5 files

23.7 KB alongside SKILL.md, 4 of them executable

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.