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
| Name | Required | Description | Default |
|---|---|---|---|
| genome | Yes | Genome assembly name | |
| track | Yes | Track name | |
| hub_url | No | URL of track/assembly hub (optional) |
Implementation Reference
- ucsc-genome-mcp.py:402-409 (handler)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)
- ucsc-genome-mcp.py:214-230 (schema)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"]
- ucsc-genome-mcp.py:211-232 (registration)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"] } ),