extract_claims
Extract key claims and findings from research paper abstracts to identify core contributions and evidence. Use OpenAlex paper IDs to retrieve structured claim summaries for academic analysis.
Instructions
Extract key claims and findings from a paper's abstract.
Args: paper_id: The OpenAlex paper ID
Returns: Structured list of claims extracted from the paper
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paper_id | Yes |
Implementation Reference
- src/server.py:73-105 (handler)The core handler function for the 'extract_claims' tool. It fetches the paper by ID, retrieves the abstract, formats the paper info and abstract, and provides instructions for extracting key claims, hypothesis, methodology, findings, and conclusions. The @mcp.tool() decorator also registers it as an MCP tool.@mcp.tool() def extract_claims(paper_id: str) -> str: """ Extract key claims and findings from a paper's abstract. Args: paper_id: The OpenAlex paper ID Returns: Structured list of claims extracted from the paper """ paper = fetcher.fetch_paper_by_id(paper_id) if "error" in paper: return paper["error"] abstract_text = fetcher.get_paper_abstract(paper) if abstract_text == "No abstract available": return "Cannot extract claims: No abstract available for this paper" result = f"**Paper:** {paper['title']}\n" result += f"**Authors:** {paper['authors']}\n" result += f"**Year:** {paper['publication_year']}\n\n" result += f"**Abstract:**\n{abstract_text}\n\n" result += f"**Instructions for claim extraction:**\n" result += f"Please analyze the abstract above and extract:\n" result += f"1. Main research question or hypothesis\n" result += f"2. Key methodology or approach\n" result += f"3. Primary findings or results\n" result += f"4. Main conclusions or implications\n" return result