list_chromosomes
Retrieve chromosome lists from UCSC Genome Browser assemblies, hubs, or databases, with optional filtering by specific tracks for targeted genomic analysis.
Instructions
List chromosomes in an assembly hub, track hub, or UCSC database genome. Optionally filter by specific track.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| genome | Yes | Genome assembly name | |
| hub_url | No | URL of track/assembly hub (optional) | |
| track | No | Specific track name to list chromosomes from (optional) |
Implementation Reference
- ucsc-genome-mcp.py:189-210 (registration)Registration of the 'list_chromosomes' tool, including its input schema definition.Tool( name="list_chromosomes", description="List chromosomes in an assembly hub, track hub, or UCSC database genome. Optionally filter by specific track.", inputSchema={ "type": "object", "properties": { "genome": { "type": "string", "description": "Genome assembly name" }, "hub_url": { "type": "string", "description": "URL of track/assembly hub (optional)" }, "track": { "type": "string", "description": "Specific track name to list chromosomes from (optional)" } }, "required": ["genome"] } ),
- ucsc-genome-mcp.py:393-400 (handler)Handler implementation for 'list_chromosomes': constructs parameters (genome, hubUrl, track) and calls the UCSC Genome API endpoint /list/chromosomes.elif name == "list_chromosomes": params = { "genome": arguments["genome"], "hubUrl": arguments.get("hub_url"), "track": arguments.get("track") } url = build_api_url("/list/chromosomes", params) result = await make_api_request(url)