wegene-get-report-info
Retrieve comprehensive genetic report data from WeGene to analyze health insights and ancestry information through API integration.
Instructions
Get all available report information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/wegene_assistant/server.py:236-242 (handler)The specific handler branch in handle_call_tool() that executes the 'wegene-get-report-info' tool by calling get_report_info() and wrapping the result in TextContent.elif name == "wegene-get-report-info": return [ types.TextContent( type="text", text=get_report_info() ) ]
- Core implementation logic of the tool: loads the static reports configuration from config/reports.json and returns it as a JSON string.def get_report_info() -> str: """ Retrieve all report info. Since WeGene does not have a report list API, prebuild with config file. :return: JSON string of all reports """ # Read config file reports_path = "config/reports.json" with open(reports_path, "r", encoding="utf-8") as f: reports = json.load(f) return json.dumps(reports, ensure_ascii=False)
- src/wegene_assistant/server.py:155-162 (registration)Registration of the 'wegene-get-report-info' tool in the list_tools() function, including name, description, and schema.types.Tool( name="wegene-get-report-info", description="Get all available report information", inputSchema={ "type": "object", "properties": {} }, ),
- Input schema for the tool: an object with no properties (no input parameters required)."type": "object", "properties": {} },