Search and retrieve academic papers from the PubMed database with enhanced tools. Utilize features like MeSH term lookup, publication statistics, and structured PICO-based evidence searches to streamline your research process.
Tools
search_pubmed
Search the PubMed database using specified keywords and optional journal name. This function allows users to search the PubMed database by providing keywords and an optional journal name. It returns a specified number of results in a formatted dictionary. Parameters: - keywords (List[str]): Keywords to search for in PubMed without field restrictions. - journal (Optional[str]): Journal name to limit the search to a specific journal. - num_results (int): Maximum number of results to return. Default is 10. - sort_by (str): Sort order for results. Options: "relevance" (default), "date_desc" (newest first), "date_asc" (oldest first). Returns: - Dict[str, Any]: A dictionary containing the success status, a list of results with PubMed IDs, links, abstracts, and the total number of results found.
get_mesh_terms
Get MeSH (Medical Subject Headings) terms related to a search word. This function queries the PubMed MeSH database to find relevant medical terminology that matches the provided search term. Useful for finding standardized medical terms. Parameters: - search_word (str): The word or phrase to search for in the MeSH database. Returns: - Dict[str, Any]: A dictionary containing success status and a list of MeSH terms.
get_pubmed_count
Get the number of PubMed results for multiple search terms. This function queries PubMed and returns the count of results for each provided search term. Useful for comparing the prevalence of different medical terms or concepts in the literature. Parameters: - search_terms (List[str]): List of search terms to query in PubMed. Returns: - Dict[str, Any]: A dictionary containing success status and counts for each search term.
format_paper_details
Fetch and format details of multiple PubMed articles. This function retrieves details for a list of PubMed IDs and formats them into a list of dictionaries containing article information. Parameters: - pubmed_ids (List[str]): A list of PubMed IDs to fetch details for. Returns: - List[Dict[str, Any]]: A list of dictionaries, each containing details of a PubMed article.