wegene-get-report-info
Retrieve comprehensive genetic testing report data for analysis and management using custom URI schemes and OAuth authentication.
Instructions
Get all available report information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/wegene_assistant/server.py:236-242 (handler)The handler within the MCP call_tool function that executes the wegene-get-report-info tool by calling the get_report_info helper and returning the result as text content.elif name == "wegene-get-report-info": return [ types.TextContent( type="text", text=get_report_info() ) ]
- Core implementation that loads genetic report metadata from a local JSON config file 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)Registers the wegene-get-report-info tool in the server's list_tools method, defining its name, description, and empty input schema.types.Tool( name="wegene-get-report-info", description="Get all available report information", inputSchema={ "type": "object", "properties": {} }, ),