Install
openclaw skills install clarity-literatureSearch research papers and get publication details from Clarity Protocol. Use when the user asks to search research papers, find publications, PubMed referen...
openclaw skills install clarity-literatureSearch and retrieve research papers from Clarity Protocol's curated literature database, sourced from PubMed and enriched with citation metrics from Semantic Scholar.
List all papers in the database:
python scripts/search_papers.py
Get details for a specific paper by PMID:
python scripts/get_paper.py --pmid 12345678
Get paper details in readable format:
python scripts/get_paper.py --pmid 12345678 --format summary
Each paper includes:
pmid: PubMed identifierdoi: Digital Object Identifiertitle: Paper titlefirst_author: First author namepublication_year: Year publishedjournal: Journal nameabstract: Paper abstract (when available)citation_count: Number of citations (from Semantic Scholar)influential_citations: Number of highly influential citationshas_fulltext: Whether full text is available in PubMed CentralTo use an API key, set the CLARITY_API_KEY environment variable:
export CLARITY_API_KEY=your_key_here
python scripts/search_papers.py
Get your API key at https://clarityprotocol.io
404 Not Found: The paper with the specified PMID does not exist in the database.
429 Rate Limit: You've exceeded the rate limit. The script will display how long to wait.
500 Server Error: The API server encountered an error. Try again later.
Timeout: The request took longer than 30 seconds.
Paper lists are paginated. The API returns a next_cursor field if more results are available.