Skip to main content
Glama
xraywu

Wegene Assistant MCP Server

by xraywu

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)
  • 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": {} },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xraywu/mcp-wegene-assistant'

If you have feedback or need assistance with the MCP directory API, please join our Discord server