Skip to main content
Glama
hlydecker

UCSC Genome Browser MCP Server

by hlydecker

list_schema

Retrieve field definitions for a specific UCSC Genome Browser data track to understand its structure and available annotations.

Instructions

List the schema (field definitions) for a specified data track.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
genomeYesGenome assembly name
trackYesTrack name
hub_urlNoURL of track/assembly hub (optional)

Implementation Reference

  • Handler logic for the 'list_schema' tool: constructs parameters from arguments (genome, track, optional hubUrl) and makes an API request to the UCSC Genome Browser's /list/schema endpoint.
    elif name == "list_schema":
        params = {
            "genome": arguments["genome"],
            "track": arguments["track"],
            "hubUrl": arguments.get("hub_url")
        }
        url = build_api_url("/list/schema", params)
        result = await make_api_request(url)
  • Input schema defining the parameters for the list_schema tool: required genome and track strings, optional hub_url.
    inputSchema={
        "type": "object",
        "properties": {
            "genome": {
                "type": "string",
                "description": "Genome assembly name"
            },
            "track": {
                "type": "string",
                "description": "Track name"
            },
            "hub_url": {
                "type": "string",
                "description": "URL of track/assembly hub (optional)"
            }
        },
        "required": ["genome", "track"]
  • Registration of the 'list_schema' tool in the MCP server's list_tools() function, including name, description, and input schema.
    Tool(
        name="list_schema",
        description="List the schema (field definitions) for a specified data track.",
        inputSchema={
            "type": "object",
            "properties": {
                "genome": {
                    "type": "string",
                    "description": "Genome assembly name"
                },
                "track": {
                    "type": "string",
                    "description": "Track name"
                },
                "hub_url": {
                    "type": "string",
                    "description": "URL of track/assembly hub (optional)"
                }
            },
            "required": ["genome", "track"]
        }
    ),

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/hlydecker/ucsc-genome-mcp'

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